|
||||||||||
| 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,
org.openmali.vecmath2.Tuple2f relPos,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
Constructs a new WidgetPickResult. |
|
HUDPickResult(Widget widget,
float sgZPosition,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
org.openmali.vecmath2.Tuple2f relPos,
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()
|
float |
getSGZPosition()
|
HUDPickResult |
getSubResult()
|
Widget |
getWidget()
|
HUDPickResult |
set(Widget widget,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
org.openmali.vecmath2.Tuple2f relPos,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
Fills this WidgetPickResult. |
HUDPickResult |
set(Widget widget,
float sgZPosition,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
org.openmali.vecmath2.Tuple2f relPos,
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,
float sgZPosition,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
org.openmali.vecmath2.Tuple2f relPos,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
widget - the picked WidgetsgZPosition - the scenegraph-z-position of the picked Widgetcursor - absPos - the absolute position of the pickingrelPos - 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 picking
public HUDPickResult(Widget widget,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
org.openmali.vecmath2.Tuple2f relPos,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
widget - the picked Widgetcursor - absPos - the absolute position of the pickingrelPos - 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 Widget getWidget()
public float getSGZPosition()
public org.openmali.vecmath2.Tuple2f getAbsPos()
public org.openmali.vecmath2.Tuple2f getRelPos()
public HUDPickResult.HUDPickReason getPickReason()
public 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 final Cursor.Type getInheritedCursorType()
public java.lang.String toString()
toString in class java.lang.Object
public HUDPickResult set(Widget widget,
float sgZPosition,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
org.openmali.vecmath2.Tuple2f relPos,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
widget - the picked WidgetsgZPosition - the scenegraph-z-position of the picked Widgetcursor - absPos - the absolute position of the pickingrelPos - 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 picking
public HUDPickResult set(Widget widget,
Cursor.Type cursor,
org.openmali.vecmath2.Tuple2f absPos,
org.openmali.vecmath2.Tuple2f relPos,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button)
widget - the picked Widgetcursor - absPos - the scenegraph-z-position of the picked WidgetrelPos - 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 | |||||||||