|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget
org.xith3d.ui.hud.base.BackgroundSettableWidget
org.xith3d.ui.hud.base.WidgetContainer
org.xith3d.ui.hud.widgets.Panel
public class Panel
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget |
|---|
BackgroundSettableWidget.BackgroundSettableDescriptionBase |
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary | |
|---|---|
protected static boolean |
DEFAULT_HEAVYWEIGHT
|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetContainer |
|---|
childrenOffset_HUD, childrenOffset_PX |
| Fields inherited from class org.xith3d.ui.hud.base.Widget |
|---|
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD |
| Constructor Summary | |
|---|---|
protected |
Panel(boolean isHeavyWeight,
boolean hasWidgetAssembler,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTex,
TileMode backgroundTileMode)
Creates a new Panel with the given width and height. |
|
Panel(boolean isHeavyWeight,
float width,
float height)
Creates a new Panel with the given width and height. |
|
Panel(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor)
Creates a new Panel with the given width and height. |
|
Panel(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTex,
TileMode backgroundTileMode)
Creates a new Panel with the given width and height. |
|
Panel(boolean isHeavyWeight,
float width,
float height,
java.lang.String backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(boolean isHeavyWeight,
float width,
float height,
Texture2D backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(float width,
float height)
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,
org.openmali.vecmath2.Colorf backgroundColor,
java.lang.String backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(float width,
float height,
java.lang.String backgroundTex)
Creates a new Panel with the given width and height. |
|
Panel(float width,
float height,
Texture2D backgroundTex)
Creates a new Panel with the given width and height. |
| Method Summary | |
|---|---|
static Panel |
createContentPane(float width,
float height)
Creates a new non scrollable Panel with the given width and height. |
static Panel |
createContentPane(float width,
float height,
boolean scrollable)
Creates a new Panel with the given width and height. |
protected void |
drawForeground(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height)
|
protected void |
drawWidget(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
boolean drawsSelf)
|
Texture2D |
getForegroundTexture()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
void |
setForegroundTexture(java.lang.String texture)
Sets the foreground texture of the WidgetContainer. |
void |
setForegroundTexture(Texture2D texture)
Sets the foreground texture of the WidgetContainer. |
| Methods inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget |
|---|
drawBackground, getBackgroundColor, getBackgroundTexture, getBackgroundTileMode, setBackground, setBackground, setBackground, setBackgroundColor, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTileMode, setNoBackground |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final boolean DEFAULT_HEAVYWEIGHT
| Constructor Detail |
|---|
protected Panel(boolean isHeavyWeight,
boolean hasWidgetAssembler,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTex,
TileMode backgroundTileMode)
isHeavyWeight - hasWidgetAssembler - width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background colorbackgroundTex - the background texture
public Panel(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTex,
TileMode backgroundTileMode)
isHeavyWeight - hasWidgetAssembler - width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background colorbackgroundTex - the background texture
public Panel(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTex)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background colorbackgroundTex - the background texture
public Panel(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background color
public Panel(boolean isHeavyWeight,
float width,
float height,
Texture2D backgroundTex)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this WidgetbackgroundTex - the background texture
public Panel(boolean isHeavyWeight,
float width,
float height,
java.lang.String backgroundTex)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this WidgetbackgroundTex - the background texture
public Panel(boolean isHeavyWeight,
float width,
float height)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background color
public Panel(float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
Texture2D backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background colorbackgroundTex - the background texture
public Panel(float width,
float height,
org.openmali.vecmath2.Colorf backgroundColor,
java.lang.String backgroundTex)
width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background colorbackgroundTex - the background texture
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(float width,
float height,
Texture2D backgroundTex)
width - the new width of this Widgetheight - the new height 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(float width,
float height)
width - the new width of this Widgetheight - the new height of this WidgetbackgroundColor - the background color| Method Detail |
|---|
public void setForegroundTexture(Texture2D texture)
texture - the texture resource to usepublic final void setForegroundTexture(java.lang.String texture)
texture - the texture resource to usepublic final Texture2D getForegroundTexture()
protected void drawForeground(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height)
protected void drawWidget(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
boolean drawsSelf)
drawWidget in class WidgetContainerprotected void init()
init in class Widget
public static final Panel createContentPane(float width,
float height,
boolean scrollable)
ScrollPanel will be created and returned.
width - the new width of this Widgetheight - the new height of this Widgetscrollable - if true, a ScrollPanel will be created and returned
Panel or ScrollPanel (depending on the scrollable parameter).
public static Panel createContentPane(float width,
float height)
width - the new width of this Widgetheight - the new height of this Widget
Panel.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||