com.partnersoft.maps.translator
Class CollectByGraphicType

java.lang.Object
  extended by com.partnersoft.maps.translator.MapDataCollector
      extended by com.partnersoft.maps.translator.CollectByGraphicType

public class CollectByGraphicType
extends MapDataCollector

A MapDataCollector that sorts them by type for you. Does nothing by default so you can only operate on a single type if you like.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Field Summary
 
Fields inherited from class com.partnersoft.maps.translator.MapDataCollector
name, pipeline
 
Constructor Summary
CollectByGraphicType(java.lang.String name, TranslationPipeline pipeline)
           
 
Method Summary
 void collect(MapDataGraphic graphic)
          Implements the collect by sorting by graphic type and calling collectPoint, collectText, etc.
protected  void collectPoint(MapDataPoint point)
          Does nothing by default; override for your own use.
protected  void collectPolygon(MapDataPolygon polygon)
          Does nothing by default; override for your own use.
protected  void collectPolyline(MapDataPolyline polyline)
          Does nothing by default; override for your own use.
protected  void collectText(MapDataText text)
          Does nothing by default; override for your own use.
 
Methods inherited from class com.partnersoft.maps.translator.MapDataCollector
close, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectByGraphicType

public CollectByGraphicType(java.lang.String name,
                            TranslationPipeline pipeline)
Method Detail

collect

public void collect(MapDataGraphic graphic)
Implements the collect by sorting by graphic type and calling collectPoint, collectText, etc. as appropriate.

Specified by:
collect in class MapDataCollector

collectPoint

protected void collectPoint(MapDataPoint point)
Does nothing by default; override for your own use.


collectText

protected void collectText(MapDataText text)
Does nothing by default; override for your own use.


collectPolyline

protected void collectPolyline(MapDataPolyline polyline)
Does nothing by default; override for your own use.


collectPolygon

protected void collectPolygon(MapDataPolygon polygon)
Does nothing by default; override for your own use.