|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.WidgetBase
org.xith3d.ui.hud.base.RectangularWidget
org.xith3d.ui.hud.base.RectangularContentPaneWrapper
org.xith3d.ui.hud.widgets.ScrollPane
public class ScrollPane
A ScrollPane can be used to scroll the content of a WidgetContainer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
ScrollPane(WidgetContainer contentPane)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
int zIndex)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
int zIndex,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
int zIndex,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical,
java.lang.String spacerTex)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
int zIndex,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical,
Texture spacerTex)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
int zIndex,
java.lang.String spacerTex)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
int zIndex,
Texture spacerTex)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical,
java.lang.String spacerTex)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical,
Texture spacerTex)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
java.lang.String spacerTex)
Creates a new ScrollPane. |
|
ScrollPane(WidgetContainer contentPane,
Texture spacerTex)
Creates a new ScrollPane. |
|
| Method Summary | |
|---|---|
WidgetContainer |
getContentPane()
|
ContentPaneWrapper |
getContentPaneWrapper()
|
float |
getTransparency()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
void |
onMouseButtonPressed(org.jagatoo.input.devices.components.MouseButton button,
int x,
int y,
long when,
long lastWhen,
boolean isTopMost,
boolean hasFocus)
This event is fired, when a mouse button is pressed on a focused Widget. |
void |
onMouseButtonReleased(org.jagatoo.input.devices.components.MouseButton button,
int x,
int y,
long when,
long lastWhen,
boolean isTopMost,
boolean hasFocus)
This event is fired, when a mouse button is released on a focused Widget. |
void |
onMouseMoved(int x,
int y,
int buttonsState,
long when,
boolean isTopMost,
boolean hasFocus)
This event is fired, when the mouse is moved on a Widget. |
void |
onMouseUnbound()
This event is fired, when the mouse is released. |
void |
onMouseWheelMoved(int delta,
boolean isPageMove,
int x,
int y,
long when,
boolean isTopMost)
This event is fired, when the mouse wheel is moved on a Widget. |
void |
recalcScrollArea()
Recalculates the place needed by the children on the content pane. |
| Methods inherited from class org.xith3d.ui.hud.base.RectangularContentPaneWrapper |
|---|
pick |
| Methods inherited from class org.xith3d.ui.hud.base.RectangularWidget |
|---|
getPickHeight, getPickSGZPosition, getPickWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmali.types.twodee.Sized2f |
|---|
setHeight, setWidth |
| Constructor Detail |
|---|
public ScrollPane(WidgetContainer contentPane,
int zIndex,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical,
Texture spacerTex)
contentPane - the WidgetContainer to scrollzIndex - the z-indexsbDescHorizontal - the Scrollbar.Description for the horizontal ScrollbarsbDescVertical - the Scrollbar.Description for the vertical ScrollbarspacerTex - the texture to place between the two Scrollbars
public ScrollPane(WidgetContainer contentPane,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical,
Texture spacerTex)
contentPane - the WidgetContainer to scrollsbDescHorizontal - the Scrollbar.Description for the horizontal ScrollbarsbDescVertical - the Scrollbar.Description for the vertical ScrollbarspacerTex - the texture to place between the two Scrollbars
public ScrollPane(WidgetContainer contentPane,
int zIndex,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical,
java.lang.String spacerTex)
contentPane - the WidgetContainer to scrollzIndex - the z-indexsbDescHorizontal - the Scrollbar.Description for the horizontal ScrollbarsbDescVertical - the Scrollbar.Description for the vertical ScrollbarspacerTex - the texture to place between the two Scrollbars
public ScrollPane(WidgetContainer contentPane,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical,
java.lang.String spacerTex)
contentPane - the WidgetContainer to scrollsbDescHorizontal - the Scrollbar.Description for the horizontal ScrollbarsbDescVertical - the Scrollbar.Description for the vertical ScrollbarspacerTex - the texture to place between the two Scrollbars
public ScrollPane(WidgetContainer contentPane,
int zIndex,
Scrollbar.Description sbDescHorizontal,
Scrollbar.Description sbDescVertical)
contentPane - the WidgetContainer to scrollzIndex - the z-indexsbDescHorizontal - the Scrollbar.Description for the horizontal ScrollbarsbDescVertical - the Scrollbar.Description for the vertical Scrollbar
public ScrollPane(WidgetContainer contentPane,
int zIndex,
Texture spacerTex)
contentPane - the WidgetContainer to scrollzIndex - the z-indexspacerTex - the texture to place between the two Scrollbars
public ScrollPane(WidgetContainer contentPane,
Texture spacerTex)
contentPane - the WidgetContainer to scrollspacerTex - the texture to place between the two Scrollbars
public ScrollPane(WidgetContainer contentPane,
int zIndex,
java.lang.String spacerTex)
contentPane - the WidgetContainer to scrollzIndex - the z-indexspacerTex - the texture to place between the two Scrollbars
public ScrollPane(WidgetContainer contentPane,
java.lang.String spacerTex)
contentPane - the WidgetContainer to scrollspacerTex - the texture to place between the two Scrollbars
public ScrollPane(WidgetContainer contentPane,
int zIndex)
contentPane - the WidgetContainer to scrollzIndex - the z-indexpublic ScrollPane(WidgetContainer contentPane)
contentPane - the WidgetContainer to scroll| Method Detail |
|---|
public float getTransparency()
public void onMouseButtonPressed(org.jagatoo.input.devices.components.MouseButton button,
int x,
int y,
long when,
long lastWhen,
boolean isTopMost,
boolean hasFocus)
onMouseButtonPressed in interface WidgetonMouseButtonPressed in class WidgetBasebutton - the button that was pressedx - the current mouse x positiony - the current mouse y positionisTopMost - is this Widget topMosthasFocus - is this Widget focusednet.jtank.input.MouseCode
public void onMouseButtonReleased(org.jagatoo.input.devices.components.MouseButton button,
int x,
int y,
long when,
long lastWhen,
boolean isTopMost,
boolean hasFocus)
onMouseButtonReleased in interface WidgetonMouseButtonReleased in class WidgetBasebutton - the button that was releasedx - the current mouse x positiony - the current mouse y positionisTopMost - is this Widget topMosthasFocus - is this Widget focusednet.jtank.input.MouseCodepublic void onMouseUnbound()
onMouseUnbound in interface WidgetonMouseUnbound in class WidgetBase
public void onMouseMoved(int x,
int y,
int buttonsState,
long when,
boolean isTopMost,
boolean hasFocus)
onMouseMoved in interface WidgetonMouseMoved in class WidgetBasex - the new X coordinatey - the new Y coordinateisTopMost - is this Widget topMosthasFocus - is this Widget focused
public void onMouseWheelMoved(int delta,
boolean isPageMove,
int x,
int y,
long when,
boolean isTopMost)
onMouseWheelMoved in interface WidgetonMouseWheelMoved in class WidgetBasedelta - a positive value when the wheel was moved upx - the current mouse x positiony - the current mouse y positionisTopMost - is this Widget topMostpublic final ContentPaneWrapper getContentPaneWrapper()
public final WidgetContainer getContentPane()
public void recalcScrollArea()
protected void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||