|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.utils.HUDPickResult
public class HUDPickResult
An instance of this class is returned by an pick method call of a Widget, if the picking was successful.
| Nested Class Summary | |
|---|---|
static class |
HUDPickResult.HUDPickReason
|
| Field Summary | |
|---|---|
static int |
HUD_PICK_FLAG_EVENTS_SUPPRESSED
|
static int |
HUD_PICK_FLAG_IS_INTERNAL
|
static int |
HUD_PICK_FLAG_JUST_TEST_AND_DO_NOTHING
|
| Constructor Summary | |
|---|---|
HUDPickResult()
Constructs a new WidgetPickResult. |
|
HUDPickResult(Widget widget,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
float relPosX,
float relPosY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
Constructs a new WidgetPickResult. |
|
| Method Summary | |
|---|---|
int |
compareTo(HUDPickResult hpr2)
|
static HUDPickResult |
fromPool()
|
org.openmali.vecmath2.Tuple2f |
getAbsPos()
|
org.jagatoo.input.devices.components.MouseButton |
getButton()
|
Cursor.Type |
getInheritedCursorType()
|
HUDPickResult |
getLeafResult()
|
HUDPickResult.HUDPickReason |
getPickReason()
|
org.openmali.vecmath2.Tuple2f |
getRelPos()
|
HUDPickResult |
getSubResult()
|
Widget |
getWidget()
|
boolean |
isLeafResult()
|
HUDPickResult |
set(Widget widget,
Cursor.Type cursor,
float absPosX,
float absPosY,
float relPosX,
float relPosY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
Fills this WidgetPickResult. |
void |
setSubResult(HUDPickResult subResult)
Sets the HUDPickResult of the picked child Widget, if any and if this is a result of a WidgetContainer picking |
static void |
toPool(HUDPickResult hpr)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HUD_PICK_FLAG_IS_INTERNAL
public static final int HUD_PICK_FLAG_EVENTS_SUPPRESSED
public static final int HUD_PICK_FLAG_JUST_TEST_AND_DO_NOTHING
| Constructor Detail |
|---|
public HUDPickResult(Widget widget,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
float relPosX,
float relPosY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
widget - the picked Widgetcursor - absPos - the absolute position of the pickingrelPosX - the relative position of the picking (relative to the (0, 0) position of the Widget. For rectangular Widgets this is the upper-left corner.)relPosY - the relative position of the picking (relative to the (0, 0) position of the Widget. For rectangular Widgets this is the upper-left corner.)pickReason - the action which caused this pick operationbutton - the mouse-button, that caused the pickingpublic HUDPickResult()
| Method Detail |
|---|
public final Widget getWidget()
public final org.openmali.vecmath2.Tuple2f getAbsPos()
public final org.openmali.vecmath2.Tuple2f getRelPos()
public final HUDPickResult.HUDPickReason getPickReason()
public final org.jagatoo.input.devices.components.MouseButton getButton()
public int compareTo(HUDPickResult hpr2)
compareTo in interface java.lang.Comparable<HUDPickResult>public void setSubResult(HUDPickResult subResult)
public HUDPickResult getSubResult()
public HUDPickResult getLeafResult()
public boolean isLeafResult()
public final Cursor.Type getInheritedCursorType()
public java.lang.String toString()
toString in class java.lang.Object
public HUDPickResult set(Widget widget,
Cursor.Type cursor,
float absPosX,
float absPosY,
float relPosX,
float relPosY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
widget - the picked Widgetcursor - absPosX - the absolute position of the pickingabsPosY - the absolute position of the pickingrelPosX - the relative position of the picking (relative to the (0, 0) position of the Widget. For rectangular Widgets this is the upper-left corner.)relPosY - the relative position of the picking (relative to the (0, 0) position of the Widget. For rectangular Widgets this is the upper-left corner.)pickReason - the action which caused this pick operationbutton - the mouse-button, that caused the pickingpublic static final HUDPickResult fromPool()
public static final void toPool(HUDPickResult hpr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||