org.xith3d.ui.hud.base
Class __HUD_base_PrivilegedAccess
java.lang.Object
org.xith3d.ui.hud.base.__HUD_base_PrivilegedAccess
public class __HUD_base_PrivilegedAccess
- extends java.lang.Object
Since java doesn't correctly implement the protected modifier
and also doesn't provide necessary other modifiers, we need this class
to avoid exposing some internal methods to the Widgets' public APIs.
|
Method Summary |
static Widget |
getAssembly(Widget widget)
|
static void |
getBorderAndPaddingSizeInHUDSpace(Widget widget,
org.openmali.types.twodee.Dim2f buffer)
|
static void |
getBorderSizeInHUDSpace(Widget widget,
org.openmali.types.twodee.Dim2f leftTop,
org.openmali.types.twodee.Dim2f rightBottom)
|
static Widget |
getCachedToolTipWidget(Widget widget)
|
static
<Dim2f_ extends org.openmali.types.twodee.Dim2f>
Dim2f_ |
|
getContentOffset(Widget widget,
Dim2f_ buffer)
|
static int |
getHeightPX(Widget widget)
|
static
<Tuple2f_ extends org.openmali.vecmath2.Tuple2f>
Tuple2f_ |
|
getLocationPixels2HUD_(Widget widget,
int x,
int y,
Tuple2f_ buffer)
|
static GroupNode |
getSGGroup(WidgetContainer container)
|
static Node |
getSGNode(Widget widget)
|
static int |
getWidthPX(Widget widget)
|
static boolean |
isMouseOverStateImage(LabeledStateButton sb,
float mouseX,
float mouseY)
|
static Widget |
moveFocus(WidgetContainer container,
HUD.FocusMoveDirection direction)
|
static void |
onControllerAxisChanged(Widget widget,
org.jagatoo.input.devices.components.ControllerAxis axis,
int axisDelta,
long when)
|
static void |
onControllerButtonPressed(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
|
static void |
onControllerButtonReleased(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
|
static void |
onFocusGained(Widget widget)
|
static void |
onFocusLost(Widget widget)
|
static void |
onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
|
static void |
onKeyPressed(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
|
static void |
onKeyReleased(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
|
static void |
onKeyTyped(Widget widget,
char ch,
int modifierMask,
long when)
|
static void |
onMouseButtonPressed(Widget widget,
org.jagatoo.input.devices.components.MouseButton button,
float x,
float y,
long when,
long lastWhen,
boolean isTopMost,
boolean hasFocus)
|
static void |
onMouseButtonReleased(Widget widget,
org.jagatoo.input.devices.components.MouseButton button,
float x,
float y,
long when,
long lastWhen,
boolean isTopMost,
boolean hasFocus)
|
static void |
onMouseEntered(Widget widget,
boolean isTopMost,
boolean hasFocus)
|
static void |
onMouseExited(Widget widget,
boolean isTopMost,
boolean hasFocus)
|
static void |
onMouseMoved(Widget widget,
float x,
float y,
int buttonsState,
long when,
boolean isTopMost,
boolean hasFocus)
|
static void |
onMouseStopped(Widget widget,
float x,
float y,
long when,
boolean isTopMost,
boolean hasFocus)
|
static void |
onMouseWheelMoved(Widget widget,
int delta,
boolean isPageMove,
float x,
float y,
long when,
boolean isTopMost)
|
static HUDPickResult |
pick(Widget widget,
int canvasX,
int canvasY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button,
long when,
long meta,
int flags)
|
static void |
setCachedToolTipWidget(Widget widget,
Widget tooltipWidget)
|
static void |
setHUD(HUD hud,
Widget widget)
|
static void |
setTextureDirty(Widget widget)
|
static boolean |
widgetBlocksFocusMoveDeviceComponent(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent dc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__HUD_base_PrivilegedAccess
public __HUD_base_PrivilegedAccess()
getSGNode
public static final Node getSGNode(Widget widget)
getSGGroup
public static final GroupNode getSGGroup(WidgetContainer container)
setHUD
public static final void setHUD(HUD hud,
Widget widget)
getAssembly
public static final Widget getAssembly(Widget widget)
setTextureDirty
public static final void setTextureDirty(Widget widget)
getBorderSizeInHUDSpace
public static final void getBorderSizeInHUDSpace(Widget widget,
org.openmali.types.twodee.Dim2f leftTop,
org.openmali.types.twodee.Dim2f rightBottom)
getBorderAndPaddingSizeInHUDSpace
public static final void getBorderAndPaddingSizeInHUDSpace(Widget widget,
org.openmali.types.twodee.Dim2f buffer)
moveFocus
public static final Widget moveFocus(WidgetContainer container,
HUD.FocusMoveDirection direction)
widgetBlocksFocusMoveDeviceComponent
public static final boolean widgetBlocksFocusMoveDeviceComponent(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent dc)
pick
public static final HUDPickResult pick(Widget widget,
int canvasX,
int canvasY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button,
long when,
long meta,
int flags)
onFocusLost
public static final void onFocusLost(Widget widget)
onFocusGained
public static final void onFocusGained(Widget widget)
setCachedToolTipWidget
public static final void setCachedToolTipWidget(Widget widget,
Widget tooltipWidget)
getCachedToolTipWidget
public static final Widget getCachedToolTipWidget(Widget widget)
onMouseEntered
public static final void onMouseEntered(Widget widget,
boolean isTopMost,
boolean hasFocus)
onMouseExited
public static final void onMouseExited(Widget widget,
boolean isTopMost,
boolean hasFocus)
onMouseButtonPressed
public static final void onMouseButtonPressed(Widget widget,
org.jagatoo.input.devices.components.MouseButton button,
float x,
float y,
long when,
long lastWhen,
boolean isTopMost,
boolean hasFocus)
onMouseButtonReleased
public static final void onMouseButtonReleased(Widget widget,
org.jagatoo.input.devices.components.MouseButton button,
float x,
float y,
long when,
long lastWhen,
boolean isTopMost,
boolean hasFocus)
onMouseMoved
public static final void onMouseMoved(Widget widget,
float x,
float y,
int buttonsState,
long when,
boolean isTopMost,
boolean hasFocus)
onMouseStopped
public static final void onMouseStopped(Widget widget,
float x,
float y,
long when,
boolean isTopMost,
boolean hasFocus)
onMouseWheelMoved
public static final void onMouseWheelMoved(Widget widget,
int delta,
boolean isPageMove,
float x,
float y,
long when,
boolean isTopMost)
onKeyPressed
public static final void onKeyPressed(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
onKeyReleased
public static final void onKeyReleased(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
onKeyTyped
public static final void onKeyTyped(Widget widget,
char ch,
int modifierMask,
long when)
onControllerButtonPressed
public static final void onControllerButtonPressed(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
onControllerButtonReleased
public static final void onControllerButtonReleased(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
onControllerAxisChanged
public static final void onControllerAxisChanged(Widget widget,
org.jagatoo.input.devices.components.ControllerAxis axis,
int axisDelta,
long when)
onInputStateChanged
public static final void onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
isMouseOverStateImage
public static final boolean isMouseOverStateImage(LabeledStateButton sb,
float mouseX,
float mouseY)
getWidthPX
public static final int getWidthPX(Widget widget)
getHeightPX
public static final int getHeightPX(Widget widget)
getContentOffset
public static final <Dim2f_ extends org.openmali.types.twodee.Dim2f> Dim2f_ getContentOffset(Widget widget,
Dim2f_ buffer)
getLocationPixels2HUD_
public static final <Tuple2f_ extends org.openmali.vecmath2.Tuple2f> Tuple2f_ getLocationPixels2HUD_(Widget widget,
int x,
int y,
Tuple2f_ buffer)