public class DeclutterableText extends Object implements Declutterable
GeographicText that allows provides participation in global text decluttering.| Modifier and Type | Field and Description | 
|---|---|
| protected Font | boundsFont | 
| protected boolean | enableDecluttering | 
| protected double | eyeDistance | 
| protected Vec4 | point | 
| protected GeographicText | text | 
| protected Rectangle2D | textBounds | 
| protected DeclutteringTextRenderer | textRenderer | 
| Modifier and Type | Method and Description | 
|---|---|
| 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,
    Point pickPoint)Executes a pick of the ordered renderable. | 
| void | render(DrawContext dc)Causes this  Renderableto render itself using the provided draw context. | 
protected Font boundsFont
protected boolean enableDecluttering
protected double eyeDistance
protected Vec4 point
protected GeographicText text
protected Rectangle2D textBounds
protected DeclutteringTextRenderer textRenderer
public Rectangle2D getBounds(DrawContext dc)
getBounds in interface Declutterablepublic double getDistanceFromEye()
OrderedRenderablegetDistanceFromEye in interface OrderedRenderablepublic Vec4 getPoint()
public GeographicText getText()
public boolean isEnableDecluttering()
isEnableDecluttering in interface Declutterablepublic void pick(DrawContext dc, Point pickPoint)
OrderedRenderablepick in interface OrderedRenderabledc - 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 Renderabledc - the DrawContext to be usedDrawContext