protected static class SegmentPlaneRenderer.OrderedText extends java.lang.Object implements OrderedRenderable
Modifier and Type | Field and Description |
---|---|
protected SegmentPlaneAttributes.LabelAttributes |
attributes |
protected double |
distanceFromEye |
protected Position |
position |
protected SegmentPlane |
segmentPlane |
protected MultiLineTextRenderer |
textRenderer |
protected AVList |
values |
Constructor and Description |
---|
OrderedText(SegmentPlane segmentPlane,
Position position,
double distanceFromEye,
AVList values,
SegmentPlaneAttributes.LabelAttributes attributes,
MultiLineTextRenderer textRenderer) |
Modifier and Type | Method and Description |
---|---|
protected void |
begin(DrawContext dc,
OGLStackHandler ogsh) |
protected void |
draw(DrawContext dc) |
protected void |
drawText(java.lang.String text,
Vec4 screenPoint,
SegmentPlaneAttributes.LabelAttributes attributes,
MultiLineTextRenderer mltr) |
protected void |
end(DrawContext dc,
OGLStackHandler ogsh) |
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
Vec4 |
getScreenPoint(DrawContext dc) |
protected Vec4 |
getScreenPoint(DrawContext dc,
Position position) |
java.lang.String |
getText() |
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 SegmentPlaneAttributes.LabelAttributes attributes
protected final double distanceFromEye
protected final Position position
protected SegmentPlane segmentPlane
protected MultiLineTextRenderer textRenderer
protected AVList values
public OrderedText(SegmentPlane segmentPlane, Position position, double distanceFromEye, AVList values, SegmentPlaneAttributes.LabelAttributes attributes, MultiLineTextRenderer textRenderer)
protected void begin(DrawContext dc, OGLStackHandler ogsh)
protected void draw(DrawContext dc)
protected void drawText(java.lang.String text, Vec4 screenPoint, SegmentPlaneAttributes.LabelAttributes attributes, MultiLineTextRenderer mltr)
protected void end(DrawContext dc, OGLStackHandler ogsh)
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye
in interface OrderedRenderable
public Vec4 getScreenPoint(DrawContext dc)
protected Vec4 getScreenPoint(DrawContext dc, Position position)
public java.lang.String getText()
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