|
||||||||||
| 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.widgets.BorderWidget
public class BorderWidget
This is a general Border implementation for your HUD. Instantiate a Border.Description and pass is to the constructor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Border |
|---|
Border.Description |
| 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 | |
|---|---|
BorderWidget(Border.Description borderDesc)
Creates a new Border Widget. |
|
BorderWidget(Border.Description borderDesc,
int zIndex)
Creates a new Border Widget. |
|
BorderWidget(float width,
float height)
Creates a new Border Widget. |
|
BorderWidget(float width,
float height,
Border.Description borderDesc)
Creates a new Border Widget. |
|
BorderWidget(float width,
float height,
int zIndex)
Creates a new Border Widget. |
|
BorderWidget(float width,
float height,
int zIndex,
Border.Description borderDesc)
Creates a new Border Widget. |
|
BorderWidget(org.openmali.types.twodee.Sized2fRO size,
Border.Description borderDesc)
Creates a new Border Widget. |
|
BorderWidget(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Border.Description borderDesc)
Creates a new Border Widget. |
|
| Method Summary | |
|---|---|
float |
getBottomHeight()
|
Border.Description |
getDescription()
|
float |
getLeftWidth()
|
float |
getRightWidth()
|
float |
getTopHeight()
|
float |
getTransparency()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
HUDPickResult |
pick(int canvasX,
int canvasY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button,
long when,
long meta,
int flags)
Tests whether a Widget is under the cursor and runs the approriate methods if true. |
protected boolean |
setSize(float width,
float height,
boolean forced)
|
void |
setTransparency(float transparency)
Sets the whole Widget's Transparency. |
| 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 |
| Constructor Detail |
|---|
public BorderWidget(float width,
float height,
int zIndex,
Border.Description borderDesc)
width - height - zIndex - borderDesc -
public BorderWidget(float width,
float height,
Border.Description borderDesc)
width - height - borderDesc -
public BorderWidget(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Border.Description borderDesc)
size - zIndex - borderDesc -
public BorderWidget(org.openmali.types.twodee.Sized2fRO size,
Border.Description borderDesc)
size - borderDesc -
public BorderWidget(float width,
float height,
int zIndex)
width - height - zIndex -
public BorderWidget(float width,
float height)
width - height -
public BorderWidget(Border.Description borderDesc,
int zIndex)
borderDesc - zIndex - public BorderWidget(Border.Description borderDesc)
borderDesc - | Method Detail |
|---|
public void setTransparency(float transparency)
setTransparency in interface WidgetsetTransparency in class WidgetBasepublic float getTransparency()
getTransparency in interface Widgetpublic Border.Description getDescription()
public float getBottomHeight()
getBottomHeight in interface Borderpublic float getRightWidth()
getRightWidth in interface Borderpublic float getTopHeight()
getTopHeight in interface Borderpublic float getLeftWidth()
getLeftWidth in interface Border
public HUDPickResult pick(int canvasX,
int canvasY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button,
long when,
long meta,
int flags)
pick in interface Widgetpick in class RectangularWidgetcanvasX - the x position of the mouse on the Canvas3DcanvasY - the y position of the mouse on the Canvas3DpickReason - the action which caused this pick operationbutton - the mouse-button, that caused the pickingwhen - the timestamp of the pickingmeta - this could be either the lastPressTime, lastReleaseTime, buttonsState mask or the page-move-boolean. (depends on the pickReason)
protected boolean setSize(float width,
float height,
boolean forced)
setSize in class WidgetBaseprotected void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||