com.metsci.glimpse.charts.vector.display
Class TrackHandler<V extends GeoObject>

java.lang.Object
  extended by com.metsci.glimpse.charts.vector.display.TrackHandler<V>
All Implemented Interfaces:
ContentHandler<V>

public class TrackHandler<V extends GeoObject>
extends java.lang.Object
implements ContentHandler<V>

This content handler renders GeoObjects by drawing points and lines. It delegates the painting of the geo objects to the com.metsci.glimpse.painter.track.TrackPainter. The drawing characteristics of the rendered points and lines are determined by the feature type of the geoobject being rendered and the TrackPainterSpec passed to this class in the constructor. The values in the TrackPainterSpec are determined by the skin xml config file. In a nutshell, this class gets a GeoObject to render, looks up the drawing specs from the TrackPainterSpec, configures the TrackPainter to those specs, and invokes the TrackPainter to render the geoobject.

Author:
Cunningham

Constructor Summary
TrackHandler()
           
TrackHandler(TrackPainterSpec spec)
           
 
Method Summary
 java.lang.Integer getScaleMin(V object)
           
 void paintEnc(GeoContext geoContext, V object)
           
 void reset()
           
 void setDotted(boolean activate)
           
 void setDotted(int stippleFactor, short stipplePattern)
           
 void setHeadPointColor(float r, float g, float b, float a)
           
 void setHeadPointSize(float size)
           
 void setLabel(java.lang.String label)
           
 void setLabelColor(float r, float g, float b, float a)
           
 void setLabelLineColor(float r, float g, float b, float a)
           
 void setLineColor(float[] color)
           
 void setLineColor(float r, float g, float b, float a)
           
 void setLineWidth(float width)
           
 void setPointColor(float[] color)
           
 void setPointColor(float r, float g, float b, float a)
           
 void setPointSize(float size)
           
 void setShowHeadPoint(boolean show)
           
 void setShowLabel(boolean show)
           
 void setShowLabelLine(boolean show)
           
 void setShowLines(boolean show)
           
 void setShowPoints(boolean show)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackHandler

public TrackHandler()

TrackHandler

public TrackHandler(TrackPainterSpec spec)
Method Detail

getScaleMin

public java.lang.Integer getScaleMin(V object)
Specified by:
getScaleMin in interface ContentHandler<V extends GeoObject>

paintEnc

public void paintEnc(GeoContext geoContext,
                     V object)
Specified by:
paintEnc in interface ContentHandler<V extends GeoObject>

reset

public void reset()
Specified by:
reset in interface ContentHandler<V extends GeoObject>

setHeadPointColor

public void setHeadPointColor(float r,
                              float g,
                              float b,
                              float a)

setHeadPointSize

public void setHeadPointSize(float size)

setShowHeadPoint

public void setShowHeadPoint(boolean show)

setPointColor

public void setPointColor(float r,
                          float g,
                          float b,
                          float a)

setPointColor

public void setPointColor(float[] color)

setPointSize

public void setPointSize(float size)

setShowPoints

public void setShowPoints(boolean show)

setLineColor

public void setLineColor(float r,
                         float g,
                         float b,
                         float a)

setLineColor

public void setLineColor(float[] color)

setLineWidth

public void setLineWidth(float width)

setShowLines

public void setShowLines(boolean show)

setDotted

public void setDotted(boolean activate)

setDotted

public void setDotted(int stippleFactor,
                      short stipplePattern)

setLabelColor

public void setLabelColor(float r,
                          float g,
                          float b,
                          float a)

setLabelLineColor

public void setLabelLineColor(float r,
                              float g,
                              float b,
                              float a)

setShowLabelLine

public void setShowLabelLine(boolean show)

setLabel

public void setLabel(java.lang.String label)

setShowLabel

public void setShowLabel(boolean show)


Copyright © 2012 Metron, Inc.. All Rights Reserved.