public class StateController
extends java.lang.Object
Settings object and controls some aspects of view
State, such as movement bounds restrictions
(see getMovementArea(State, RectF)) and dynamic min / max zoom levels
(see getMinZoom(State) and getMaxZoom(State)).| Modifier and Type | Method and Description |
|---|---|
float |
applyZoomPatch(float zoom) |
void |
applyZoomPatch(State state) |
float |
getEffectiveMaxZoom()
Deprecated.
Use
getMaxZoom(State) instead. |
float |
getEffectiveMinZoom()
Deprecated.
Use
getMinZoom(State) instead. |
void |
getEffectiveMovementArea(android.graphics.RectF out,
State state)
Deprecated.
User
getMovementArea(State, RectF) instead. |
float |
getMaxZoom(State state) |
float |
getMinZoom(State state) |
void |
getMovementArea(State state,
android.graphics.RectF out)
Calculates area in which
State.getX() & State.getY() values can change. |
static float |
interpolate(float start,
float end,
float factor)
Deprecated.
|
static void |
interpolate(android.graphics.RectF out,
android.graphics.RectF start,
android.graphics.RectF end,
float factor)
Deprecated.
|
static void |
interpolate(State out,
State start,
float startPivotX,
float startPivotY,
State end,
float endPivotX,
float endPivotY,
float factor)
|
static void |
interpolate(State out,
State start,
State end,
float factor)
Deprecated.
|
static float |
restrict(float value,
float minValue,
float maxValue)
Deprecated.
|
void |
setTempZoomPatch(float factor) |
public void setTempZoomPatch(float factor)
public void applyZoomPatch(State state)
public float applyZoomPatch(float zoom)
public float getMinZoom(State state)
state - Current statepublic float getMaxZoom(State state)
state - Current stateSettings.getMaxZoom().public void getMovementArea(State state, android.graphics.RectF out)
State.getX() & State.getY() values can change.
Note, that this is different from Settings.setMovementArea(int, int) which defines
part of the viewport in which image can move.state - Current stateout - Output movement area rectangle@Deprecated public float getEffectiveMinZoom()
getMinZoom(State) instead.@Deprecated public float getEffectiveMaxZoom()
getMaxZoom(State) instead.@Deprecated
public void getEffectiveMovementArea(android.graphics.RectF out,
State state)
getMovementArea(State, RectF) instead.out - Output movement area rectanglestate - Current state@Deprecated
public static float restrict(float value,
float minValue,
float maxValue)
MathUtils.restrict(float, float, float).value - Value to be restrictedminValue - Min valuemaxValue - Max value@Deprecated public static void interpolate(State out, State start, State end, float factor)
MathUtils.interpolate(State, State, State, float).out - Interpolated state (output)start - Start stateend - End statefactor - Factor@Deprecated public static void interpolate(State out, State start, float startPivotX, float startPivotY, State end, float endPivotX, float endPivotY, float factor)
out - Interpolated state (output)start - Start statestartPivotX - Pivot point's X coordinate in start state coordinatesstartPivotY - Pivot point's Y coordinate in start state coordinatesend - End stateendPivotX - Pivot point's X coordinate in end state coordinatesendPivotY - Pivot point's Y coordinate in end state coordinatesfactor - Factor@Deprecated
public static float interpolate(float start,
float end,
float factor)
MathUtils.interpolate(float, float, float).start - Start valueend - End valuefactor - Factor@Deprecated
public static void interpolate(android.graphics.RectF out,
android.graphics.RectF start,
android.graphics.RectF end,
float factor)
MathUtils.interpolate(RectF, RectF, RectF, float),out - Interpolated rectangle (output)start - Start rectangleend - End rectanglefactor - Factor