public class WWOMeasureDisplay extends java.lang.Object implements WWOMeasureTool.MeasureDisplay
| Modifier and Type | Field and Description |
|---|---|
protected ScreenAnnotation |
annotation |
protected AnnotationAttributes |
annotationAttributes |
protected AVListImpl |
avList |
protected WWOMeasureTool |
measureTool |
protected UnitsFormat |
unitsFormat |
ACCUMULATED_LABEL, ANGLE_LABEL, AREA_LABEL, CENTER_LATITUDE_LABEL, CENTER_LONGITUDE_LABEL, HEADING_LABEL, HEIGHT_LABEL, LATITUDE_LABEL, LENGTH_LABEL, LONGITUDE_LABEL, MAJOR_AXIS_LABEL, MINOR_AXIS_LABEL, PERIMETER_LABEL, RADIUS_LABEL, WIDTH_LABEL| Constructor and Description |
|---|
WWOMeasureDisplay(WWOMeasureTool measureTool) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToLayer(RenderableLayer layer) |
protected boolean |
areLocationsRedundant(LatLon locA,
LatLon locB,
UnitsFormat units) |
protected java.lang.Double |
computeAccumulatedLength(LatLon pos,
WWOMeasureTool mt) |
protected Angle |
computeAngleBetween(LatLon a,
LatLon b,
LatLon c) |
protected Vec4 |
computeAnnotationPosition(Position pos,
WWOMeasureTool mt) |
protected double |
computePathLength(WWOMeasureTool mt) |
protected java.lang.String |
formatCircleMeasurements(Position pos,
WWOMeasureTool mt) |
protected void |
formatControlPoints(Position pos,
WWOMeasureTool mt,
java.lang.StringBuilder sb) |
protected java.lang.String |
formatEllipseMeasurements(Position pos,
WWOMeasureTool mt) |
protected java.lang.String |
formatLineMeasurements(Position pos,
WWOMeasureTool mt) |
protected java.lang.String |
formatPolygonMeasurements(Position pos,
WWOMeasureTool mt) |
protected java.lang.String |
formatQuadMeasurements(Position pos,
WWOMeasureTool mt) |
protected java.lang.String |
formatSquareMeasurements(Position pos,
WWOMeasureTool mt) |
protected java.lang.String |
getDisplayString(Position pos,
WWOMeasureTool mt) |
java.lang.String |
getLabel(java.lang.String labelName) |
boolean |
isAnnotation(java.lang.Object o) |
protected boolean |
lengthsEssentiallyEqual(double l1,
double l2) |
void |
removeFromLayer(RenderableLayer layer) |
protected void |
setInitialLabels() |
void |
setLabel(java.lang.String labelName,
java.lang.String label) |
void |
updateMeasureDisplay(Position position) |
protected ScreenAnnotation annotation
protected AnnotationAttributes annotationAttributes
protected AVListImpl avList
protected WWOMeasureTool measureTool
protected UnitsFormat unitsFormat
public WWOMeasureDisplay(WWOMeasureTool measureTool)
public void addToLayer(RenderableLayer layer)
addToLayer in interface WWOMeasureTool.MeasureDisplayprotected boolean areLocationsRedundant(LatLon locA, LatLon locB, UnitsFormat units)
protected java.lang.Double computeAccumulatedLength(LatLon pos, WWOMeasureTool mt)
protected Vec4 computeAnnotationPosition(Position pos, WWOMeasureTool mt)
protected double computePathLength(WWOMeasureTool mt)
protected java.lang.String formatCircleMeasurements(Position pos, WWOMeasureTool mt)
protected void formatControlPoints(Position pos, WWOMeasureTool mt, java.lang.StringBuilder sb)
protected java.lang.String formatEllipseMeasurements(Position pos, WWOMeasureTool mt)
protected java.lang.String formatLineMeasurements(Position pos, WWOMeasureTool mt)
protected java.lang.String formatPolygonMeasurements(Position pos, WWOMeasureTool mt)
protected java.lang.String formatQuadMeasurements(Position pos, WWOMeasureTool mt)
protected java.lang.String formatSquareMeasurements(Position pos, WWOMeasureTool mt)
protected java.lang.String getDisplayString(Position pos, WWOMeasureTool mt)
public java.lang.String getLabel(java.lang.String labelName)
getLabel in interface WWOMeasureTool.MeasureDisplaypublic boolean isAnnotation(java.lang.Object o)
isAnnotation in interface WWOMeasureTool.MeasureDisplayprotected boolean lengthsEssentiallyEqual(double l1,
double l2)
public void removeFromLayer(RenderableLayer layer)
removeFromLayer in interface WWOMeasureTool.MeasureDisplayprotected void setInitialLabels()
public void setLabel(java.lang.String labelName,
java.lang.String label)
setLabel in interface WWOMeasureTool.MeasureDisplaypublic void updateMeasureDisplay(Position position)
updateMeasureDisplay in interface WWOMeasureTool.MeasureDisplay