com.partnersoft.maps.translator
Class FilterByGraphicType

java.lang.Object
  extended by com.partnersoft.maps.translator.MapDataCollector
      extended by com.partnersoft.maps.translator.MapDataFilter
          extended by com.partnersoft.maps.translator.FilterByGraphicType
Direct Known Subclasses:
MapDataDeriver, MapDataPreprocessor, MapDataStylist

public class FilterByGraphicType
extends MapDataFilter

A MapDataFilter 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.MapDataFilter
nextCollector
 
Fields inherited from class com.partnersoft.maps.translator.MapDataCollector
name, pipeline
 
Constructor Summary
FilterByGraphicType(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 collectList(MapDataGraphicList list)
          Does nothing by default; override for your own use.
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.MapDataFilter
discard, flush, getNextCollector, pass, setNextCollector
 
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

FilterByGraphicType

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

collect

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

Specified by:
collect in class MapDataFilter
Throws:
java.io.IOException

collectPoint

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

Throws:
java.io.IOException

collectText

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

Throws:
java.io.IOException

collectPolyline

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

Throws:
java.io.IOException

collectPolygon

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

Throws:
java.io.IOException

collectList

protected void collectList(MapDataGraphicList list)
                    throws java.io.IOException
Does nothing by default; override for your own use.

Throws:
java.io.IOException