|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget
org.xith3d.ui.hud.base.BackgroundSettableWidget
org.xith3d.ui.hud.widgets.Label
org.xith3d.ui.hud.base.WindowHeaderWidget
public class WindowHeaderWidget
Represents a Window's header bar's Widget.
| Nested Class Summary | |
|---|---|
static class |
WindowHeaderWidget.Description
|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget |
|---|
BackgroundSettableWidget.BackgroundSettableDescriptionBase |
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary | |
|---|---|
static int |
FLAG_ONLY_WINDOW_HEADER_WIDGET
|
| Fields inherited from class org.xith3d.ui.hud.widgets.Label |
|---|
DEFAULT_HEAVYWEIGHT |
| Fields inherited from class org.xith3d.ui.hud.base.Widget |
|---|
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD |
| Constructor Summary | |
|---|---|
WindowHeaderWidget(float width,
java.lang.String title)
Creates a new WindowHeaderWidget. |
|
WindowHeaderWidget(float width,
java.lang.String title,
WindowHeaderWidget.Description desc)
Creates a new WindowHeaderWidget. |
|
| Method Summary | |
|---|---|
protected AbstractButton |
createCloseButton(WindowHeaderWidget.Description desc)
This method creates the close button for the Window. |
AbstractButton |
getCloseButton()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
boolean |
isMouseOverBar(float relX,
float relY)
Checks, if the mouse is over the bar (not over any Button, etc.). |
protected void |
onSizeChanged(float oldWidth,
float oldHeight,
float newWidth,
float newHeight)
|
protected 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 void |
setHostTextureDirty(int flags)
|
protected void |
setTextureDirty(int flags)
|
| Methods inherited from class org.xith3d.ui.hud.widgets.Label |
|---|
drawIcon, drawText, drawWidget, getAlignment, getDisplayedText, getFont, getFont, getFontColor, getFontColor, getFontColorDisabled, getFontDisabled, getIcon, getIconGap, getMinimalHeight, getMinimalSize, getMinimalWidth, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getText, getTextOffsetX, getTextOffsetY, initSize, isAutoSizeEnabled, isEnabled, onAttachedToHUD, prepareText, setAlignment, setAutoSizeEnabled, setEnabled, setEnabledImpl, setFont, setFontColor, setFontColorDisabled, setFontDisabled, setIcon, setIcon, setIconGap, setMinimalSize, setPadding, setPadding, setText, setText, setText, setTextOffset, updateText |
| Methods inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget |
|---|
drawBackground, getBackgroundColor, getBackgroundTexture, getBackgroundTileMode, setBackground, setBackground, setBackground, setBackgroundColor, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTexture, setBackgroundTileMode, setNoBackground |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FLAG_ONLY_WINDOW_HEADER_WIDGET
| Constructor Detail |
|---|
public WindowHeaderWidget(float width,
java.lang.String title,
WindowHeaderWidget.Description desc)
width - title - desc -
public WindowHeaderWidget(float width,
java.lang.String title)
| Method Detail |
|---|
public final AbstractButton getCloseButton()
public final boolean isMouseOverBar(float relX,
float relY)
relX - relY -
protected HUDPickResult pick(int canvasX,
int canvasY,
HUDPickResult.HUDPickReason pickReason,
org.jagatoo.input.devices.components.MouseButton button,
long when,
long meta,
int flags)
pick in class 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 void onSizeChanged(float oldWidth,
float oldHeight,
float newWidth,
float newHeight)
onSizeChanged in class Labelprotected void setHostTextureDirty(int flags)
setHostTextureDirty in class Widgetprotected void setTextureDirty(int flags)
setTextureDirty in class Widgetprotected void init()
init in class Labelprotected AbstractButton createCloseButton(WindowHeaderWidget.Description desc)
desc - the WindowHeaderWidget.Description
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||