|
||||||||||
| 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.QuadDivider
public class QuadDivider
The QuadDivider is used to resize four Widgets in north-west, north-east, south-west and south-east.
| Nested Class Summary | |
|---|---|
static class |
QuadDivider.QuadPanels
|
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary | |
|---|---|
static float |
DIVIDER_WIDTH
|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
QuadDivider(float width,
float height)
|
|
QuadDivider(float width,
float height,
org.openmali.vecmath2.Colorf dividerColor)
|
|
| Method Summary | |
|---|---|
void |
addQuadDividerListener(QuadDividerListener l)
Adds a new QuadDividerListener. |
float |
getBottomHeight()
|
float |
getBottomTop()
|
float |
getLeftWidth()
|
QuadDivider.QuadPanels |
getPanelUnderMouse(int canvasX,
int canvasY)
Returns a constant indicating the "panel" under the mouse cursor. |
float |
getRightLeft()
|
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. |
void |
removeQuadDividerListener(QuadDividerListener l)
Removes a QuadDividerListener. |
void |
setDividerColor(org.openmali.vecmath2.Colorf color)
|
void |
setHorizontalDividerTop(float horizTop)
Sets the top-position of the horizontal divider. |
void |
setVerticalDividerLeft(float vertLeft)
Sets the left-position of the vertical diviver. |
protected void |
updatePanelSizes()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final float DIVIDER_WIDTH
| Constructor Detail |
|---|
public QuadDivider(float width,
float height,
org.openmali.vecmath2.Colorf dividerColor)
public QuadDivider(float width,
float height)
| Method Detail |
|---|
protected void updatePanelSizes()
public void setDividerColor(org.openmali.vecmath2.Colorf color)
public void setVerticalDividerLeft(float vertLeft)
vertLeft - public void setHorizontalDividerTop(float horizTop)
horizTop - public final float getLeftWidth()
public final float getRightWidth()
public final float getTopHeight()
public final float getBottomHeight()
public final float getRightLeft()
public final float getBottomTop()
public QuadDivider.QuadPanels getPanelUnderMouse(int canvasX,
int canvasY)
canvasX - canvasY -
public float getTransparency()
public void addQuadDividerListener(QuadDividerListener l)
l - public void removeQuadDividerListener(QuadDividerListener l)
l -
public HUDPickResult pick(int canvasX,
int canvasY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button,
long when,
long meta,
int flags)
canvasX - 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 void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||