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 |
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.
|
public float getMinZoom(State state)
public float getMaxZoom(State state)
Settings.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.@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.@Deprecated
public static float restrict(float value,
float minValue,
float maxValue)
MathUtils.restrict(float, float, float).@Deprecated public static void interpolate(State out, State start, State end, float factor)
MathUtils.interpolate(State, State, State, float).@Deprecated public static void interpolate(State out, State start, float startPivotX, float startPivotY, State end, float endPivotX, float endPivotY, float factor)
@Deprecated
public static float interpolate(float start,
float end,
float factor)
MathUtils.interpolate(float, float, float).@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),