public class PtrIndicator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
mOffsetToRefresh |
static int |
POS_START |
| Constructor and Description |
|---|
PtrIndicator() |
public static final int POS_START
protected int mOffsetToRefresh
public boolean isUnderTouch()
public float getResistance()
public void setResistance(float resistance)
public void onRelease()
public void onUIRefreshComplete()
public boolean goDownCrossFinishPosition()
protected void processOnMove(float currentX,
float currentY,
float offsetX,
float offsetY)
public void setRatioOfHeaderHeightToRefresh(float ratio)
public float getRatioOfHeaderToHeightRefresh()
public int getOffsetToRefresh()
public void setOffsetToRefresh(int offset)
public void onPressDown(float x,
float y)
public final void onMove(float x,
float y)
protected void setOffset(float x,
float y)
public float getOffsetX()
public float getOffsetY()
public int getLastPosY()
public int getCurrentPosY()
public final void setCurrentPos(int current)
protected void onUpdatePos(int current,
int last)
public int getHeaderHeight()
public void setHeaderHeight(int height)
protected void updateHeight()
public void convertFrom(PtrIndicator ptrSlider)
public boolean hasLeftStartPosition()
public boolean hasJustLeftStartPosition()
public boolean hasJustBackToStartPosition()
public boolean isOverOffsetToRefresh()
public boolean hasMovedAfterPressedDown()
public boolean isInStartPosition()
public boolean crossRefreshLineFromTopToBottom()
public boolean hasJustReachedHeaderHeightFromTopToBottom()
public boolean isOverOffsetToKeepHeaderWhileLoading()
public void setOffsetToKeepHeaderWhileLoading(int offset)
public int getOffsetToKeepHeaderWhileLoading()
public boolean isAlreadyHere(int to)
public float getLastPercent()
public float getCurrentPercent()
public boolean willOverTop(int to)