public class DeclutterableText extends java.lang.Object implements Declutterable
GeographicText
that allows provides participation in global text decluttering.Modifier and Type | Field and Description |
---|---|
protected java.awt.Font |
boundsFont |
protected boolean |
enableDecluttering |
protected double |
eyeDistance |
protected Vec4 |
point |
protected GeographicText |
text |
protected java.awt.geom.Rectangle2D |
textBounds |
protected DeclutteringTextRenderer |
textRenderer |
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds(DrawContext dc) |
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
Vec4 |
getPoint() |
GeographicText |
getText() |
boolean |
isEnableDecluttering()
Indicates whether this text should participate in decluttering.
|
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.Font boundsFont
protected boolean enableDecluttering
protected double eyeDistance
protected Vec4 point
protected GeographicText text
protected java.awt.geom.Rectangle2D textBounds
protected DeclutteringTextRenderer textRenderer
public java.awt.geom.Rectangle2D getBounds(DrawContext dc)
getBounds
in interface Declutterable
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye
in interface OrderedRenderable
public Vec4 getPoint()
public GeographicText getText()
public boolean isEnableDecluttering()
isEnableDecluttering
in interface Declutterable
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
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext