com.metsci.glimpse.charts.vector.display
Class AnnotationHandler<V extends GeoObject>
java.lang.Object
com.metsci.glimpse.charts.vector.display.AnnotationHandler<V>
- All Implemented Interfaces:
- ContentHandler<V>
- Direct Known Subclasses:
- DNCAnnotationHandler, ENCAnnotationHandler
public abstract class AnnotationHandler<V extends GeoObject>
- extends java.lang.Object
- implements ContentHandler<V>
This content handler renders text attributes from the GeoObjects. It
delegates the text painting to the
com.metsci.glimpse.painter.info.AnnotationPainter. The font and text
characteristics of the text are determined by the AnnotationPainterSpec
passed in at the constructor. The specific text attribute being rendered is
delegated to the super class via the getAttributeTypeToAnnotate() abstract
method.
This is a crude first cut. Currently text is placed at the center point. No
effort is done to eliminate text overlap.
- Author:
- Cunningham
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationHandler
public AnnotationHandler()
AnnotationHandler
public AnnotationHandler(AnnotationPainterSpec spec)
getAttributeTypeToAnnotate
public abstract GeoAttributeType getAttributeTypeToAnnotate()
reset
public void reset()
- Specified by:
reset
in interface ContentHandler<V extends GeoObject>
paintEnc
public void paintEnc(GeoContext geoContext,
V object)
- Specified by:
paintEnc
in interface ContentHandler<V extends GeoObject>
getScaleMin
public java.lang.Integer getScaleMin(V object)
- Specified by:
getScaleMin
in interface ContentHandler<V extends GeoObject>
Copyright © 2012 Metron, Inc.. All Rights Reserved.