Package com.massifmaps.components
Class PanningSpeedMode
java.lang.Object
com.massifmaps.components.PanningSpeedMode
How fast a one-finger pan moves the map on a TILTED view, where a touch near the horizon
corresponds to a point far away and a touch at the bottom of the screen to a near one.
corresponds to a point far away and a touch at the bottom of the screen to a near one.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceThe accepted values of this constant namespace. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe scale is measured where the pan STARTS and stays fixed for the whole gesture:
starting far away still pans fast and starting close still pans slowly, but the
speed never changes while the finger is down.static final intThe scale is measured at the centre of the screen, so it depends neither on where
the finger started nor on where it goes - every pan moves the map at the same rate.static final intThe map point under the finger follows it exactly, which is what a flat map does.
On a tilted view the speed then changes DURING the gesture: a drag that starts near
the camera and travels up the screen accelerates as the finger reaches parts of the
screen that are further away. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PANNING_SPEED_MODE_MAP
public static final int PANNING_SPEED_MODE_MAPThe map point under the finger follows it exactly, which is what a flat map does.
On a tilted view the speed then changes DURING the gesture: a drag that starts near
the camera and travels up the screen accelerates as the finger reaches parts of the
screen that are further away.- See Also:
-
PANNING_SPEED_MODE_ANCHORED
public static final int PANNING_SPEED_MODE_ANCHOREDThe scale is measured where the pan STARTS and stays fixed for the whole gesture:
starting far away still pans fast and starting close still pans slowly, but the
speed never changes while the finger is down. The default.- See Also:
-
PANNING_SPEED_MODE_CONSTANT
public static final int PANNING_SPEED_MODE_CONSTANTThe scale is measured at the centre of the screen, so it depends neither on where
the finger started nor on where it goes - every pan moves the map at the same rate.- See Also:
-
-
Constructor Details
-
PanningSpeedMode
public PanningSpeedMode()
-