|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WidgetContainer
A WidgetContainer is a Widget, that can hold arbitrary Widgets. It can have it's own coordinate system and the contained Widget's transformations are relative to it.
| Nested Class Summary | |
|---|---|
static class |
WidgetContainer.FocusMoveDirection
|
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Method Summary | |
|---|---|
Widget |
addWidget(Widget widget)
Adds a Widget to this container at the Widget's location. |
Widget |
addWidget(Widget widget,
float locX,
float locY)
Adds a Widget to this container at the given location. |
Widget |
addWidget(Widget widget,
float locX,
float locY,
int zIndex)
Adds a Widget to this container at the given location. |
Widget |
addWidget(Widget widget,
float locX,
float locY,
int zIndex,
java.lang.Object constraints)
Adds a Widget to this container at the given location. |
Widget |
addWidget(Widget widget,
float locX,
float locY,
java.lang.Object constraints)
Adds a Widget to this container at the given location. |
Widget |
addWidget(Widget widget,
java.lang.Object constraints)
Adds a Widget to this container at the Widget's location. |
Widget |
addWidget(Widget widget,
org.openmali.vecmath2.Tuple2f location)
Adds a Widget to this container at the given location. |
Widget |
addWidget(Widget widget,
org.openmali.vecmath2.Tuple2f location,
int zIndex)
Adds a Widget to this container at the given location. |
Widget |
addWidget(Widget widget,
org.openmali.vecmath2.Tuple2f location,
int zIndex,
java.lang.Object constraints)
Adds a Widget to this container at the given location. |
Widget |
addWidget(Widget widget,
org.openmali.vecmath2.Tuple2f location,
java.lang.Object constraints)
Adds a Widget to this container at the given location. |
Widget |
addWidgetCentered(Widget widget)
Adds a Widget to this container at the center. |
Widget |
addWidgetCentered(Widget widget,
int zIndex)
Adds a Widget to this container at the center. |
void |
clear()
Removes all Widgets from this WidgetContainer. |
Widget |
focus(Widget widget)
Focusses the given Widget (non thread-safe). |
org.openmali.vecmath2.Tuple2f |
getChildrenOffset()
|
float |
getChildrenOffsetX()
|
float |
getChildrenOffsetY()
|
Widget |
getCurrentFocusedWidget()
|
Widget |
getCurrentFocusedWidget(boolean getLeaf)
|
float |
getEqualHeight(float width)
Calculates a height that's visually equal to the given width. |
float |
getEqualWidth(float height)
|
Texture |
getForeground()
|
float |
getInnerAspect()
|
float |
getInnerHeight()
|
org.openmali.vecmath2.Tuple2f |
getInnerSize()
|
float |
getInnerWidth()
|
LayoutManager |
getLayout()
|
org.openmali.vecmath2.Tuple2f |
getLocationCanvas2HUD(int x,
int y,
org.openmali.vecmath2.Tuple2f buffer)
Calculates HUD location from these Canvas3D-values. |
org.openmali.vecmath2.Tuple2i |
getLocationHUD2Canvas(float x,
float y,
org.openmali.vecmath2.Tuple2i buffer)
Calculates Canvas3D location from these HUD-values. |
org.openmali.vecmath2.Tuple2f |
getLocationHUD2SG(float x,
float y,
org.openmali.vecmath2.Tuple2f buffer)
Calculates scenegraph location from these HUD-values. |
org.openmali.vecmath2.Tuple2f |
getLocationSG2HUD(float x,
float y,
org.openmali.vecmath2.Tuple2f buffer)
Calculates HUD location from these scenegraph-values. |
float |
getResAspect()
|
org.openmali.vecmath2.Tuple2f |
getResolution()
|
float |
getResX()
|
float |
getResY()
|
org.openmali.vecmath2.Tuple2f |
getScrollScale()
|
float |
getScrollScaleX()
|
float |
getScrollScaleY()
|
GroupNode |
getSGGroup()
|
float |
getSGPixelHeight()
|
org.openmali.types.twodee.Sized2fRO |
getSGPixelSize()
|
float |
getSGPixelWidth()
|
org.openmali.types.twodee.Dim2f |
getSizeCanvas2HUD(int x,
int y,
org.openmali.types.twodee.Dim2f buffer)
Calculates HUD size from these Canvas3D-values. |
org.openmali.types.twodee.Dim2i |
getSizeHUD2Canvas(float x,
float y,
org.openmali.types.twodee.Dim2i buffer)
Calculates Canvas3D size from these HUD-values. |
org.openmali.types.twodee.Dim2f |
getSizeHUD2SG(float x,
float y,
org.openmali.types.twodee.Dim2f buffer)
Calculates scenegraph width and height from these HUD-values. |
org.openmali.types.twodee.Dim2f |
getSizeOfPixels(int x,
int y,
org.openmali.types.twodee.Dim2f buffer)
Retrieves the size these pixels have on this WidgetContainer. |
org.openmali.types.twodee.Dim2f |
getSizeOnHUD(float x,
float y,
HUDUnitsMeasurement measure,
org.openmali.types.twodee.Dim2f buffer)
Calculates the HUD coordinates representation of the given size. |
org.openmali.types.twodee.Dim2f |
getSizeSG2HUD(float x,
float y,
org.openmali.types.twodee.Dim2f buffer)
Calculates HUD size from these scenegraph-values. |
java.util.List<Widget> |
getWidgets()
|
boolean |
isClippingEnbaled()
|
Widget |
moveFocus(WidgetContainer.FocusMoveDirection direction)
Moves the focus to the closest widget in the container in the given direction. |
void |
removeWidget(Widget widget)
Removes a Widget from this container. |
void |
setChildrenOffset(org.openmali.vecmath2.Tuple2f offset)
Sets the display offset for the child-Widgets. |
void |
setClippingEnabled(boolean clippingEnabled)
Enables or disables clipping for this WidgetContainer. |
void |
setForeground(java.lang.String texture)
Sets the foreground texture of the WidgetContainer. |
void |
setForeground(Texture texture)
Sets the foreground texture of the WidgetContainer. |
void |
setLayout(LayoutManager layout)
Sets which LayoutManager to use for the child Widgets of this Container. |
void |
setScrollScale(float scrollScaleX,
float scrollScaleY)
Sets how much the children will be moved, when the Scrollbar(s) are moved. |
void |
setScrollScale(org.openmali.vecmath2.Tuple2f scrollScale)
Sets how much the children will be moved, when the Scrollbar(s) are moved. |
void |
setTransparency(float transparency,
boolean childrenToo)
Sets the whole Widget's Transparency. |
| Methods inherited from interface org.openmali.types.twodee.Sized2f |
|---|
setHeight, setWidth |
| Methods inherited from interface org.xith3d.ui.hud.base.BackgroundSettable |
|---|
getBackground, getBackgroundColor, getBackgroundTileHeight, getBackgroundTileSize, getBackgroundTileWidth, setBackground, setBackground, setBackground, setBackgroundTileSize, setBackgroundTileSize |
| Methods inherited from interface org.xith3d.ui.hud.base.BorderSettable |
|---|
getBorder, setBorder, setBorder |
| Methods inherited from interface org.xith3d.ui.hud.base.PaddingSettable |
|---|
getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, setPadding, setPadding |
| Methods inherited from interface org.xith3d.ui.hud.listeners.ScrollbarListener |
|---|
onScrollbarValueChanged |
| Method Detail |
|---|
GroupNode getSGGroup()
org.openmali.vecmath2.Tuple2f getResolution()
float getResX()
float getResY()
float getResAspect()
float getSGPixelWidth()
float getSGPixelHeight()
org.openmali.types.twodee.Sized2fRO getSGPixelSize()
org.openmali.types.twodee.Dim2f getSizeOfPixels(int x,
int y,
org.openmali.types.twodee.Dim2f buffer)
x - the x-count of pixelsy - the y-count of pixelsbuffer - the buffer to write the values to
org.openmali.types.twodee.Dim2f getSizeHUD2SG(float x,
float y,
org.openmali.types.twodee.Dim2f buffer)
x - the HUD-x-value to transformy - the HUD-y-value to transformbuffer - the buffer to write the values to
org.openmali.vecmath2.Tuple2f getLocationHUD2SG(float x,
float y,
org.openmali.vecmath2.Tuple2f buffer)
x - the HUD-x-value to transformy - the HUD-y-value to transformbuffer - the buffer to write the values to
org.openmali.types.twodee.Dim2f getSizeSG2HUD(float x,
float y,
org.openmali.types.twodee.Dim2f buffer)
x - the scenegraph-x-value to transformy - the scenegraph-y-value to transformbuffer - the buffer to write the values to
org.openmali.vecmath2.Tuple2f getLocationSG2HUD(float x,
float y,
org.openmali.vecmath2.Tuple2f buffer)
x - the scenegraph-x-value to transformy - the scenegraph-y-value to transformbuffer - the buffer to write the values to
org.openmali.types.twodee.Dim2f getSizeCanvas2HUD(int x,
int y,
org.openmali.types.twodee.Dim2f buffer)
x - the canvas-x-value to transformy - the canvas-y-value to transformbuffer - the buffer to write the values to
org.openmali.types.twodee.Dim2i getSizeHUD2Canvas(float x,
float y,
org.openmali.types.twodee.Dim2i buffer)
x - the HUD-x-value to transformy - the HUD-y-value to transformbuffer - the buffer to write the values to
org.openmali.vecmath2.Tuple2f getLocationCanvas2HUD(int x,
int y,
org.openmali.vecmath2.Tuple2f buffer)
x - the canvas-x-value to transformy - the canvas-y-value to transformbuffer - the buffer to write the values to
org.openmali.vecmath2.Tuple2i getLocationHUD2Canvas(float x,
float y,
org.openmali.vecmath2.Tuple2i buffer)
x - the HUD-x-value to transformy - the HUD-y-value to transformbuffer - the buffer to write the values to
org.openmali.types.twodee.Dim2f getSizeOnHUD(float x,
float y,
HUDUnitsMeasurement measure,
org.openmali.types.twodee.Dim2f buffer)
x - the x-value to transformy - the y-value to transformmeasure - the source measurementbuffer - the buffer to write the values to
float getEqualHeight(float width)
width - the width to calculate a visually equal height
float getEqualWidth(float height)
height - the height to calculate a visually equal width
void setForeground(Texture texture)
texture - the texture resource to usevoid setForeground(java.lang.String texture)
texture - the texture resource to useTexture getForeground()
void setLayout(LayoutManager layout)
layout - the new LayoutManager to useLayoutManager getLayout()
void setTransparency(float transparency,
boolean childrenToo)
transparency - childrenToo -
Widget addWidget(Widget widget,
org.openmali.vecmath2.Tuple2f location,
java.lang.Object constraints)
widget - the Widget to addlocation - the location to add the Widget atconstraints - the contraints to use for this Widget in the LayoutManager
Widget addWidget(Widget widget,
org.openmali.vecmath2.Tuple2f location,
int zIndex,
java.lang.Object constraints)
widget - the Widget to addlocation - the location to add the Widget atzIndex - the new Widget's z-indexconstraints - the contraints to use for this Widget in the LayoutManager
Widget addWidget(Widget widget,
org.openmali.vecmath2.Tuple2f location)
widget - the Widget to addlocation - the location to add the Widget at
Widget addWidget(Widget widget,
org.openmali.vecmath2.Tuple2f location,
int zIndex)
widget - the Widget to addlocation - the location to add the Widget atzIndex - the new Widget's z-index
Widget addWidget(Widget widget,
float locX,
float locY,
java.lang.Object constraints)
widget - the Widget to addlocX - the x-location to add the Widget atlocY - the y-location to add the Widget atconstraints - the contraints to use for this Widget in the LayoutManager
Widget addWidget(Widget widget,
float locX,
float locY,
int zIndex,
java.lang.Object constraints)
widget - the Widget to addlocX - the x-location to add the Widget atlocY - the y-location to add the Widget atzIndex - the new Widget's z-indexconstraints - the contraints to use for this Widget in the LayoutManager
Widget addWidget(Widget widget,
float locX,
float locY)
widget - the Widget to addlocX - the x-location to add the widget atlocY - the y-location to add the widget at
Widget addWidget(Widget widget,
float locX,
float locY,
int zIndex)
widget - the Widget to addlocX - the x-location to add the widget atlocY - the y-location to add the widget atzIndex - the new Widget's z-index
Widget addWidget(Widget widget,
java.lang.Object constraints)
widget - the widget to addconstraints - the contraints to use for this Widget in the LayoutManagerWidget addWidget(Widget widget)
widget - the widget to addWidget addWidgetCentered(Widget widget)
widget - the widget to add (centered)
Widget addWidgetCentered(Widget widget,
int zIndex)
widget - the widget to add (centered)zIndex - the new Widget's z-indexvoid removeWidget(Widget widget)
widget - the widget to removevoid clear()
java.util.List<Widget> getWidgets()
void setScrollScale(org.openmali.vecmath2.Tuple2f scrollScale)
scrollScale - the new scroll scaleorg.openmali.vecmath2.Tuple2f getScrollScale()
void setScrollScale(float scrollScaleX,
float scrollScaleY)
scrollScaleX - the new scroll scale on the x axisscrollScaleY - the new scroll scale on the y axisfloat getScrollScaleX()
float getScrollScaleY()
void setChildrenOffset(org.openmali.vecmath2.Tuple2f offset)
offset - the new offsetfloat getChildrenOffsetX()
float getChildrenOffsetY()
org.openmali.vecmath2.Tuple2f getChildrenOffset()
org.openmali.vecmath2.Tuple2f getInnerSize()
float getInnerWidth()
float getInnerHeight()
float getInnerAspect()
getInnerSize()void setClippingEnabled(boolean clippingEnabled)
clippingEnabled - boolean isClippingEnbaled()
Widget focus(Widget widget)
widget -
Widget getCurrentFocusedWidget(boolean getLeaf)
getLeaf - recursively searches for the focused leaf (Widget), if true
Widget getCurrentFocusedWidget()
Widget moveFocus(WidgetContainer.FocusMoveDirection direction)
direction -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||