ilog.views.maps.format
Class IlvGeometryClassFilter

java.lang.Object
  extended by ilog.views.maps.format.IlvGeometryClassFilter

public class IlvGeometryClassFilter
extends Object

Class that stores a geometry filter that should be placed on a tiled layer.

Since:
JViews 8.0

Constructor Summary
IlvGeometryClassFilter(Class fclass, String name)
          Creates a new IlvGeometryClassFilter.
IlvGeometryClassFilter(Class fclass, String name, int order)
          Creates a new IlvGeometryClassFilter.
 
Method Summary
 boolean accept(Class geomClass)
          Checks if the geometry class passed is compatible with the internal class information.
 IlvMapStyle createDefaultFeatureStyle(String styleName)
          Creates a default map style for the internal geometry class.
 Class getFeatureClass()
          Returns the geometry class
 String getName()
          Returns the name attached to this geometry filter
 int getOrder()
          Returns the order attached to this geometry filter.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvGeometryClassFilter

public IlvGeometryClassFilter(Class fclass,
                              String name,
                              int order)
Creates a new IlvGeometryClassFilter.

Parameters:
fclass - subclassof IlvMapGeometry to filter for.
name - the name of this filter (this will appear in layer names)
order - preferred order of this geometry. A lower number indicates that this type of geometry should be on the back.
Since:
JViews 8.1

IlvGeometryClassFilter

public IlvGeometryClassFilter(Class fclass,
                              String name)
Creates a new IlvGeometryClassFilter.

Parameters:
fclass - subclassof IlvMapGeometry to filter for.
name - the name of this filter (this will appear in layer names)
Method Detail

accept

public boolean accept(Class geomClass)
Checks if the geometry class passed is compatible with the internal class information.

Parameters:
geomClass - geometry class to check
Returns:
true if the two classes are compatible.

createDefaultFeatureStyle

public IlvMapStyle createDefaultFeatureStyle(String styleName)
Creates a default map style for the internal geometry class.

Parameters:
styleName - name of the style
Returns:
a map style.
See Also:
IlvDataSourceStylingFactory.createDefaultFeatureStyle(Class, Object, boolean)

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()

getName

public String getName()
Returns the name attached to this geometry filter

Returns:
the name attached to this geometry filter

getOrder

public int getOrder()
Returns the order attached to this geometry filter.

Returns:
The order attached to this geometry filter.
Since:
JViews 8.1

getFeatureClass

public Class getFeatureClass()
Returns the geometry class

Returns:
the geometry class attached to this geometry filter


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