|
||||||||||
| 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.widgets.ColoredBorder
public class ColoredBorder
A ColoredBorder is a Border implementation with no Textures but only a color.
| 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 | |
|---|---|
ColoredBorder(float width,
org.openmali.vecmath2.Colorf color)
Creates a new ColoredBorder with all sides of the same width. |
|
ColoredBorder(float bottomHeight,
float rightWidth,
float topHeight,
float leftWidth,
org.openmali.vecmath2.Colorf color)
Creates a new ColoredBorder with the given side widths. |
|
| Method Summary | |
|---|---|
float |
getBottomHeight()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColoredBorder(float bottomHeight,
float rightWidth,
float topHeight,
float leftWidth,
org.openmali.vecmath2.Colorf color)
bottomHeight - rightWidth - topHeight - leftWidth - color -
public ColoredBorder(float width,
org.openmali.vecmath2.Colorf color)
width - color - | Method Detail |
|---|
public float getTransparency()
getTransparency in interface Widgetpublic 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 WidgetcanvasX - 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 | |||||||||