|
||||||||||
| 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.LineWidget
public class LineWidget
A LineWidget is a very simple Widget just drawing a line on the HUD.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
LineWidget(org.openmali.vecmath2.Vector2f vec,
org.openmali.vecmath2.Colorf color)
Creates a new LineWidget along the given vector (and with it's length). |
|
LineWidget(org.openmali.vecmath2.Vector2f vec,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new LineWidget along the given vector (and with it's length). |
|
LineWidget(org.openmali.vecmath2.Vector2f vec,
float lineWidth,
org.openmali.vecmath2.Colorf color)
Creates a new LineWidget along the given vector (and with it's length). |
|
LineWidget(org.openmali.vecmath2.Vector2f vec,
float lineWidth,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new LineWidget along the given vector (and with it's length). |
|
LineWidget(org.openmali.vecmath2.Vector2f vec,
int zIndex,
org.openmali.vecmath2.Colorf color)
Creates a new LineWidget along the given vector (and with it's length). |
|
LineWidget(org.openmali.vecmath2.Vector2f vec,
int zIndex,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new LineWidget along the given vector (and with it's length). |
|
LineWidget(org.openmali.vecmath2.Vector2f vec,
int zIndex,
float lineWidth,
org.openmali.vecmath2.Colorf color)
Creates a new LineWidget along the given vector (and with it's length). |
|
LineWidget(org.openmali.vecmath2.Vector2f vec,
int zIndex,
float lineWidth,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new LineWidget along the given vector (and with it's length). |
|
| Method Summary | |
|---|---|
Line |
getLine()
|
org.openmali.vecmath2.Vector2f |
getLineVector()
|
float |
getLineWidth()
|
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. |
boolean |
setSize(float width,
float height,
boolean forced)
|
void |
setTransparency(float transparency)
Sets the whole Widget's Transparency. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LineWidget(org.openmali.vecmath2.Vector2f vec,
int zIndex,
float lineWidth,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
vec - the vector carrying the direction and length informationzIndex - the Widget's z-indexlineWidth - the line's widthcolor - the line's colorlinePattern - the LinePattern to use for the Line
public LineWidget(org.openmali.vecmath2.Vector2f vec,
int zIndex,
float lineWidth,
org.openmali.vecmath2.Colorf color)
vec - the vector carrying the direction and length informationzIndex - the Widget's z-indexlineWidth - the line's widthcolor - the line's color
public LineWidget(org.openmali.vecmath2.Vector2f vec,
int zIndex,
org.openmali.vecmath2.Colorf color)
vec - the vector carrying the direction and length informationzIndex - the Widget's z-indexcolor - the line's color
public LineWidget(org.openmali.vecmath2.Vector2f vec,
int zIndex,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
vec - the vector carrying the direction and length informationzIndex - the Widget's z-indexcolor - the line's colorlinePattern - the LinePattern to use for the Line
public LineWidget(org.openmali.vecmath2.Vector2f vec,
float lineWidth,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
vec - the vector carrying the direction and length informationlineWidth - the line's widthcolor - the line's colorlinePattern - the LinePattern to use for the Line
public LineWidget(org.openmali.vecmath2.Vector2f vec,
float lineWidth,
org.openmali.vecmath2.Colorf color)
vec - the vector carrying the direction and length informationlineWidth - the line's widthcolor - the line's color
public LineWidget(org.openmali.vecmath2.Vector2f vec,
org.openmali.vecmath2.Colorf color)
vec - the vector carrying the direction and length informationcolor - the line's color
public LineWidget(org.openmali.vecmath2.Vector2f vec,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
vec - the vector carrying the direction and length informationcolor - the line's colorlinePattern - the LinePattern to use for the Line| Method Detail |
|---|
public Line getLine()
public void setTransparency(float transparency)
setTransparency in interface WidgetsetTransparency in class WidgetBasepublic float getTransparency()
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)
public org.openmali.vecmath2.Vector2f getLineVector()
public float getLineWidth()
public boolean setSize(float width,
float height,
boolean forced)
setSize in class WidgetBaseprotected void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||