protected static class PlacemarkClutterFilter.DeclutteredLabel extends java.lang.Object implements OrderedRenderable
Modifier and Type | Field and Description |
---|---|
protected double |
angle |
protected PointPlacemark.OrderedPlacemark |
opm |
protected PickSupport |
pickSupport |
protected java.awt.geom.Rectangle2D |
region |
Constructor and Description |
---|
DeclutteredLabel(double angle,
PointPlacemark.OrderedPlacemark opm,
java.awt.geom.Rectangle2D region) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawDeclutterLabel(DrawContext dc,
java.awt.Font font,
Vec4 textPoint,
java.lang.String labelText) |
protected void |
drawDeclutterLine(DrawContext dc,
Vec4 startPoint,
Vec4 endPoint) |
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
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 angle
protected PointPlacemark.OrderedPlacemark opm
protected PickSupport pickSupport
protected java.awt.geom.Rectangle2D region
public DeclutteredLabel(double angle, PointPlacemark.OrderedPlacemark opm, java.awt.geom.Rectangle2D region)
protected void drawDeclutterLabel(DrawContext dc, java.awt.Font font, Vec4 textPoint, java.lang.String labelText)
protected void drawDeclutterLine(DrawContext dc, Vec4 startPoint, Vec4 endPoint)
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye
in interface OrderedRenderable
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