|
||||||||||
| 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.WidgetContainerBase
org.xith3d.ui.hud.widgets.Panel
public class Panel
| Nested Class Summary | |
|---|---|
static class |
Panel.Description
This class is used to describe a Panel Widget. |
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.WidgetContainer |
|---|
WidgetContainer.FocusMoveDirection |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetContainerBase |
|---|
childrenTG |
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
Panel(float width,
float height)
Creates a new Panel with the given width and height |
|
Panel(float width,
float height,
boolean withDefaultBG)
Creates a new Panel with the given width and height |
|
Panel(float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height |
|
Panel(float width,
float height,
float resX,
float resY)
Creates a new Panel with the given width and height. |
|
Panel(float width,
float height,
float resX,
float resY,
boolean withDefaultBG)
Creates a new Panel with the given width and height. |
|
Panel(float width,
float height,
float resX,
float resY,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height |
|
Panel(float width,
float height,
float resX,
float resY,
int zIndex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(float width,
float height,
float resX,
float resY,
int zIndex,
boolean withDefaultBG)
Creates a new Panel with the given width, height and z-index. |
|
Panel(float width,
float height,
float resX,
float resY,
int zIndex,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height |
|
Panel(float width,
float height,
float resX,
float resY,
int zIndex,
java.lang.String backgroundTex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(float width,
float height,
float resX,
float resY,
int zIndex,
Texture backgroundTex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(float width,
float height,
float resX,
float resY,
java.lang.String backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(float width,
float height,
float resX,
float resY,
Texture backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(float width,
float height,
int zIndex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(float width,
float height,
int zIndex,
boolean withDefaultBG)
Creates a new Panel with the given width, height and z-index. |
|
Panel(float width,
float height,
int zIndex,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height |
|
Panel(float width,
float height,
int zIndex,
java.lang.String backgroundTex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(float width,
float height,
int zIndex,
Texture backgroundTex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(float width,
float height,
java.lang.String backgroundTex)
Creates a new WidgetContainer with the given width and height. |
|
Panel(float width,
float height,
Texture backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(org.openmali.types.twodee.Sized2fRO size)
Creates a new Panel with the given width and height |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
boolean withDefaultBG)
Creates a new Panel with the given width and height |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
boolean withDefaultBG)
Creates a new Panel with the given width, height and z-index. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String backgroundTex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Texture backgroundTex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String backgroundTex)
Creates a new WidgetContainer with the given width and height. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
Texture backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution)
Creates a new Panel with the given width and height. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
boolean withDefaultBG)
Creates a new Panel with the given width and height. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex,
boolean withDefaultBG)
Creates a new Panel with the given width, height and z-index. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex,
java.lang.String backgroundTex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex,
Texture backgroundTex)
Creates a new Panel with the given width, height and z-index. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
java.lang.String backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
Texture backgroundTex)
Creates a new Panel with the given width and height. |
|
| Method Summary | |
|---|---|
Texture |
getBackground()
|
org.openmali.vecmath2.Colorf |
getBackgroundColor()
|
float |
getBackgroundTileHeight()
|
org.openmali.types.twodee.Sized2fRO |
getBackgroundTileSize()
|
float |
getBackgroundTileWidth()
|
Border |
getBorder()
|
Texture |
getForeground()
|
float |
getTransparency()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
void |
setBackground(org.openmali.vecmath2.Colorf color)
Sets the background color of the Widget. |
void |
setBackground(java.lang.String texture)
Sets the background Texture of the Widget. |
void |
setBackground(Texture texture)
Sets the background texture of the Widget. |
void |
setBackgroundTileSize(float tileWidth,
float tileHeight)
Sets the background tile size. |
void |
setBackgroundTileSize(org.openmali.types.twodee.Sized2fRO tileSize)
Sets the background tile size. |
void |
setBorder(Border.Description borderDesc)
Creates a new Border from the given Border.Desctiption and invokes setBorder(Border). |
void |
setBorder(Border border)
Sets the Border to use for this BorderSettable Widget. |
void |
setForeground(java.lang.String texture)
Sets the foreground texture of the WidgetContainer. |
void |
setForeground(Texture texture)
Sets the foreground texture of the WidgetContainer. |
boolean |
setSize(float width,
float height,
boolean forced)
|
void |
update()
Updates the Widget's internals. |
| 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 Panel(float width,
float height,
float resX,
float resY,
int zIndex,
boolean withDefaultBG)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionzIndex - the z-index of this WidgetwithDefaultBG - apply (theme-)default background?
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex,
boolean withDefaultBG)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerzIndex - the z-index of this WidgetwithDefaultBG - apply (theme-)default background texture?
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerzIndex - the z-index of this Widget
public Panel(float width,
float height,
float resX,
float resY,
int zIndex)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionzIndex - the z-index of this Widget
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex,
java.lang.String backgroundTex)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerzIndex - the z-index of this WidgetbackgroundTex - the background texture
public Panel(float width,
float height,
float resX,
float resY,
int zIndex,
java.lang.String backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionzIndex - the z-index of this WidgetbackgroundTex - the background texture
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex,
Texture backgroundTex)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerzIndex - the z-index of this WidgetbackgroundTex - the background texture
public Panel(float width,
float height,
float resX,
float resY,
int zIndex,
Texture backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionzIndex - the z-index of this WidgetbackgroundTex - the background texture
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
boolean withDefaultBG)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerwithDefaultBG - apply (theme-)default background?
public Panel(float width,
float height,
float resX,
float resY,
boolean withDefaultBG)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionwithDefaultBG - apply (theme-)default background?
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution)
size - the new size of this Widgetresolution - the resolution of the WidgetContainer
public Panel(float width,
float height,
float resX,
float resY)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolution
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
java.lang.String backgroundTex)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerbackgroundTex - the background texture
public Panel(float width,
float height,
float resX,
float resY,
java.lang.String backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionbackgroundTex - the background texture
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
Texture backgroundTex)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerbackgroundTex - the background texture
public Panel(float width,
float height,
float resX,
float resY,
Texture backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionbackgroundTex - the background texture
public Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
boolean withDefaultBG)
size - the new size of this WidgetzIndex - the z-index of this WidgetwithDefaultBG - apply (theme-)default background?
public Panel(float width,
float height,
int zIndex,
boolean withDefaultBG)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this WidgetwithDefaultBG - apply (theme-)default background?
public Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
size - the new size of this WidgetzIndex - the z-index of this Widget
public Panel(float width,
float height,
int zIndex)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this Widget
public Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String backgroundTex)
size - the new size of this WidgetzIndex - the z-index of this WidgetbackgroundTex - the background texture
public Panel(float width,
float height,
int zIndex,
java.lang.String backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this WidgetbackgroundTex - the background texture
public Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Texture backgroundTex)
size - the new size of this WidgetzIndex - the z-index of this WidgetbackgroundTex - the background texture
public Panel(float width,
float height,
int zIndex,
Texture backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this WidgetbackgroundTex - the background texture
public Panel(org.openmali.types.twodee.Sized2fRO size,
boolean withDefaultBG)
size - the new size of this WidgetwithDefaultBG - apply (theme-)default background?
public Panel(float width,
float height,
boolean withDefaultBG)
width - the new width of this Widgetheight - the new height of this WidgetwithDefaultBG - apply (theme-)default background?public Panel(org.openmali.types.twodee.Sized2fRO size)
size - the new size of this Widget
public Panel(float width,
float height)
width - the new width of this Widgetheight - the new height of this Widget
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Colorf backgroundColor)
size - the new size of this WidgetbackgroundColor - the background color
public Panel(float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor)
width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background color
public Panel(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
org.openmali.vecmath2.Colorf backgroundColor)
size - the new size of this WidgetzIndex - the z-index of this WidgetbackgroundColor - the background color
public Panel(float width,
float height,
int zIndex,
org.openmali.vecmath2.Colorf backgroundColor)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the z-index of this WidgetbackgroundColor - the background color
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
org.openmali.vecmath2.Colorf backgroundColor)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerbackgroundColor - the background color
public Panel(float width,
float height,
float resX,
float resY,
org.openmali.vecmath2.Colorf backgroundColor)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionbackgroundColor - the background color
public Panel(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Tuple2f resolution,
int zIndex,
org.openmali.vecmath2.Colorf backgroundColor)
size - the new size of this Widgetresolution - the resolution of the WidgetContainerzIndex - the z-index of this WidgetbackgroundColor - the background color
public Panel(float width,
float height,
float resX,
float resY,
int zIndex,
org.openmali.vecmath2.Colorf backgroundColor)
width - the new width of this Widgetheight - the new height of this WidgetresX - the x-size of the WidgetContainer's resolutionresY - the y-size of the WidgetContainer's resolutionzIndex - the z-index of this WidgetbackgroundColor - the background color
public Panel(org.openmali.types.twodee.Sized2fRO size,
java.lang.String backgroundTex)
size - the new size of this WidgetbackgroundTex - the background texture
public Panel(float width,
float height,
java.lang.String backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetbackgroundTex - the background texture
public Panel(org.openmali.types.twodee.Sized2fRO size,
Texture backgroundTex)
size - the new size of this WidgetbackgroundTex - the background texture
public Panel(float width,
float height,
Texture backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetbackgroundTex - the background texture| Method Detail |
|---|
public float getTransparency()
getTransparency in interface Widget
public boolean setSize(float width,
float height,
boolean forced)
setSize in class WidgetContainerBasepublic void update()
update in interface Widgetupdate in class WidgetContainerBasepublic void setBorder(Border border)
setBorder in interface BorderSettableborder - the new Border (null for no border)public void setBorder(Border.Description borderDesc)
setBorder in interface BorderSettableborderDesc - the Border.Description to create the new Border from (null for no border)BorderSettable.setBorder(Border)public Border getBorder()
getBorder in interface BorderSettablepublic void setBackground(org.openmali.vecmath2.Colorf color)
setBackground in interface BackgroundSettablecolor - the color to usepublic void setBackground(Texture texture)
setBackground in interface BackgroundSettabletexture - the texture resource to usepublic void setBackground(java.lang.String texture)
setBackground in interface BackgroundSettabletexture - the texture resource to usepublic Texture getBackground()
getBackground in interface BackgroundSettablepublic org.openmali.vecmath2.Colorf getBackgroundColor()
getBackgroundColor in interface BackgroundSettable
public void setBackgroundTileSize(float tileWidth,
float tileHeight)
setBackgroundTileSize in interface BackgroundSettabletileWidth - the tile width (or negative for no tiling of width)tileHeight - the tile height (or negative for no tiling of height)public void setBackgroundTileSize(org.openmali.types.twodee.Sized2fRO tileSize)
setBackgroundTileSize in interface BackgroundSettabletileSize - the tile size (or null for no tiling)public org.openmali.types.twodee.Sized2fRO getBackgroundTileSize()
getBackgroundTileSize in interface BackgroundSettablepublic float getBackgroundTileWidth()
getBackgroundTileWidth in interface BackgroundSettablepublic float getBackgroundTileHeight()
getBackgroundTileHeight in interface BackgroundSettablepublic void setForeground(java.lang.String texture)
setForeground in interface WidgetContainertexture - the texture resource to usepublic void setForeground(Texture texture)
setForeground in interface WidgetContainertexture - the texture resource to usepublic Texture getForeground()
getForeground in interface WidgetContainerprotected void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||