org.squigle.layers
Class PolygonLabelMetaDataHandler

java.lang.Object
  |
  +--org.squigle.layers.MetaDataHandler
        |
        +--org.squigle.layers.PolygonLabelMetaDataHandler

public class PolygonLabelMetaDataHandler
extends MetaDataHandler

As a subclass of MetaDataHandler, PolygonLabelMetaDataHandler is registered to a PolygonLayer and is responsible for properly the labeling polygons of that layer It does so by averaging the midpoint of each polygon evaluated that has the same metadata, thus finding the centeral common points among the related polygons. The process step expects a Graphics object, and plots to the layer the "Label" column at the average points.


Constructor Summary
PolygonLabelMetaDataHandler(java.awt.Color fontColor)
           
 
Method Summary
 void evaluatePolygon(float[][] pg, int metaDataPointer)
          store polygon data and a pointer to its metaData for later evaluation
 
Methods inherited from class org.squigle.layers.MetaDataHandler
evaluateLine, evaluatePoint, evaluatePolygon, process, reset, setLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonLabelMetaDataHandler

public PolygonLabelMetaDataHandler(java.awt.Color fontColor)
Method Detail

evaluatePolygon

public void evaluatePolygon(float[][] pg,
                            int metaDataPointer)
store polygon data and a pointer to its metaData for later evaluation

Parameters:
pg - polygon to be evaluated
metaDataPointer - the offset in the layers metaData ByteBuffer for this polygon