protected class TacticalGraphicLabel.OrderedLabel extends java.lang.Object implements OrderedRenderable
Modifier and Type | Field and Description |
---|---|
protected double |
eyeDistance
Distance from the eye point to the label's geographic location.
|
protected Vec4 |
placePoint
Geographic position in cartesian coordinates.
|
protected Angle |
rotation
Rotation applied to the label.
|
protected java.awt.Rectangle |
screenExtent
Extent of the label on the screen.
|
protected Vec4 |
screenPlacePoint
Location of the place point projected onto the screen.
|
protected java.awt.Point |
screenPoint
Location of the upper left corner of the text measured from the lower left corner of the viewport.
|
Modifier | Constructor and Description |
---|---|
protected |
OrderedLabel() |
Modifier and Type | Method and Description |
---|---|
protected void |
doDrawOrderedRenderable(DrawContext dc,
PickSupport pickCandidates) |
protected void |
doDrawText(TextRenderer textRenderer) |
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
protected java.awt.Font |
getFont() |
Layer |
getPickLayer() |
protected boolean |
isDrawInterior() |
boolean |
isEnableBatchPicking() |
boolean |
isEnableBatchRendering() |
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 double eyeDistance
protected Vec4 placePoint
protected Angle rotation
protected java.awt.Rectangle screenExtent
protected Vec4 screenPlacePoint
protected java.awt.Point screenPoint
protected void doDrawOrderedRenderable(DrawContext dc, PickSupport pickCandidates)
protected void doDrawText(TextRenderer textRenderer)
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye
in interface OrderedRenderable
protected java.awt.Font getFont()
public Layer getPickLayer()
protected boolean isDrawInterior()
public boolean isEnableBatchPicking()
public boolean isEnableBatchRendering()
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