ilog.views.maps.datasource
Class IlvMIDMIFDataSource.MIDMIFFilter

java.lang.Object
  extended by ilog.views.maps.datasource.IlvHierarchicalDataSource.CriterionFilter
      extended by ilog.views.maps.datasource.IlvMIDMIFDataSource.MIDMIFFilter
All Implemented Interfaces:
IlvPersistentObject
Enclosing class:
IlvMIDMIFDataSource

public static class IlvMIDMIFDataSource.MIDMIFFilter
extends IlvHierarchicalDataSource.CriterionFilter

A specialized criterion filter that returns for a key identifying the specified map feature's geometry type as well as its style.

Since:
JViews 7.5

Constructor Summary
IlvMIDMIFDataSource.MIDMIFFilter(IlvInputStream stream)
          Constructs a MIDMIFFilter from an input stream.
IlvMIDMIFDataSource.MIDMIFFilter(String description)
          Creates a MIDMIFFilter instance.
 
Method Summary
 String getCriterionDescription()
          Returns a description for this filter
 Object getValue(IlvMapFeature feature)
          Returns a value for the specified map feature.
 void write(IlvOutputStream stream)
          Writes this MIDMIFFilter to an IlvOutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMIDMIFDataSource.MIDMIFFilter

public IlvMIDMIFDataSource.MIDMIFFilter(String description)
Creates a MIDMIFFilter instance.

Parameters:
description - a short description of this filter

IlvMIDMIFDataSource.MIDMIFFilter

public IlvMIDMIFDataSource.MIDMIFFilter(IlvInputStream stream)
                                 throws IlvReadFileException
Constructs a MIDMIFFilter from an input stream.

Parameters:
stream - the stream to read from.
Throws:
IlvReadFileException
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this MIDMIFFilter to an IlvOutputStream.

Parameters:
stream - The stream to write to.
Throws:
IOException

getValue

public Object getValue(IlvMapFeature feature)
Returns a value for the specified map feature. This value is used by the IlvHierarchicalDataSource to group map features of same value together into layers.

Specified by:
getValue in class IlvHierarchicalDataSource.CriterionFilter
Parameters:
feature - the specified map feature.
Returns:
the value for the specified map feature.

getCriterionDescription

public String getCriterionDescription()
Returns a description for this filter

Specified by:
getCriterionDescription in class IlvHierarchicalDataSource.CriterionFilter
Returns:
a string describing the filter


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.