protected class IconRenderer.OrderedText extends java.lang.Object implements OrderedRenderable
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
color |
protected double |
eyeDistance |
protected java.awt.Font |
font |
protected Layer |
layer |
protected java.awt.Point |
pickPoint |
protected Vec4 |
point |
protected java.lang.String |
text |
Constructor and Description |
---|
OrderedText(java.lang.String text,
java.awt.Font font,
Vec4 point,
java.awt.Color color,
double eyeDistance) |
OrderedText(java.lang.String text,
java.awt.Font font,
Vec4 point,
java.awt.Point pickPoint,
Layer layer,
double eyeDistance) |
Modifier and Type | Method and Description |
---|---|
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
protected ToolTipRenderer |
getToolTipRenderer(DrawContext dc) |
void |
pick(DrawContext dc,
java.awt.Point pickPoint)
Executes a pick of the ordered renderable.
|
void |
render(DrawContext dc)
Causes this
Renderable to render itself using the provided draw context. |
protected java.awt.Color color
protected double eyeDistance
protected java.awt.Font font
protected Layer layer
protected java.awt.Point pickPoint
protected Vec4 point
protected java.lang.String text
public OrderedText(java.lang.String text, java.awt.Font font, Vec4 point, java.awt.Color color, double eyeDistance)
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye
in interface OrderedRenderable
protected ToolTipRenderer getToolTipRenderer(DrawContext dc)
public void pick(DrawContext dc, java.awt.Point pickPoint)
OrderedRenderable
pick
in interface OrderedRenderable
dc
- the current draw context.pickPoint
- the pick point.public void render(DrawContext dc)
Renderable
Renderable
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext