protected static class TrackSegmentInfo.OrderedText extends java.lang.Object implements OrderedRenderable
Constructor and Description |
---|
OrderedText(java.lang.String text,
int x,
int y,
java.awt.Font font,
java.awt.Color color,
double distanceFromEye) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawText(DrawContext dc,
java.lang.String text,
int x,
int y,
java.awt.Font font,
java.awt.Color color) |
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
protected MultiLineTextRenderer |
getTextRendererFor(DrawContext dc,
java.awt.Font font) |
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. |
public OrderedText(java.lang.String text, int x, int y, java.awt.Font font, java.awt.Color color, double distanceFromEye)
protected void drawText(DrawContext dc, java.lang.String text, int x, int y, java.awt.Font font, java.awt.Color color)
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye
in interface OrderedRenderable
protected MultiLineTextRenderer getTextRendererFor(DrawContext dc, java.awt.Font font)
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