return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET);\r
}\r
\r
- public void resetPosition () {\r
- renderedSeconds = 0;\r
+ public void setPosition (float position) {\r
+ renderedSeconds = position;\r
}\r
\r
public int getChannels () {\r
\r
protected boolean scrollX, scrollY;\r
protected float amountX, amountY;\r
- public float maxX, maxY;\r
+ protected float maxX, maxY;\r
protected float velocityX, velocityY;\r
protected float flingTimer;\r
\r
return amountY / maxY;\r
}\r
\r
+ public float getMaxX () {\r
+ return maxX;\r
+ }\r
+ \r
+ public float getMaxY () {\r
+ return maxX;\r
+ }\r
+\r
/** Sets the {@link Actor} embedded in this scroll pane.\r
* @param widget the Actor */\r
public void setWidget (Actor widget) {\r