com.metsci.glimpse.charts.vector.display
Interface BasicSkinHelper<V extends GeoObject>

All Known Implementing Classes:
DNCBasicSkinHelper, ENCBasicSkinHelper

public interface BasicSkinHelper<V extends GeoObject>

Most of the vector chart classes work on generalized GeoObjects. This is helper class for functionality that is not offered via the GeoObject interface and whose implementation differs among chart types (enc, dnc).

Author:
Cunningham

Method Summary
 java.util.List<? extends GeoFeatureType> convertGeoFeatureType(java.util.List<java.lang.String> featureTypeList)
          Given a list of strings from a skin xml file that specify feature types, this method will return a parallel list of feature types specified by the list of strings.
 GeoFeatureType convertGeoFeatureType(java.lang.String type)
          Given a string from a skin xml file describing a feature type from a skin xml file, this method will return the feature type the string is describing.
 ContentHandler<V> createAnnotationPainterSpec(AnnotationPainterSpec annotationSpec)
          Returns a ContentHandler
 Skin<V> createDefaultHardCodedSkin()
          Returns a simple, default, hardcoded skin for the given chart type
 Skin<V> createDefaultHardCodedSkin(ColorPalette colorPalette)
          Returns a simple, default, hardcoded skin with the givne color palette for the given chart type
 StreamToGeoObjectConverter<V> createGeoObjectLoader()
          Returns a StreamToGeoObjectConverter capable of reading objects of type V out of a given DataInputStream.
 java.lang.String geoName()
          Returns a String describing the chart type, "ENC", "DNC", etc
 javax.xml.validation.Schema getXsdSchema()
          Returns the skin schema, or null if no validation needs to be performed
 boolean isBestBoundaryType(V feature)
          Returns true if the given feature's vertices make up the coverage of the map
 boolean isSecondBestBoundaryType(V feature)
          Returns true if the given feature's vertices should make up the coverage of the map
 

Method Detail

getXsdSchema

javax.xml.validation.Schema getXsdSchema()
                                         throws org.xml.sax.SAXException
Returns the skin schema, or null if no validation needs to be performed

Returns:
Throws:
org.xml.sax.SAXException

createDefaultHardCodedSkin

Skin<V> createDefaultHardCodedSkin()
Returns a simple, default, hardcoded skin for the given chart type


createDefaultHardCodedSkin

Skin<V> createDefaultHardCodedSkin(ColorPalette colorPalette)
Returns a simple, default, hardcoded skin with the givne color palette for the given chart type


createAnnotationPainterSpec

ContentHandler<V> createAnnotationPainterSpec(AnnotationPainterSpec annotationSpec)
Returns a ContentHandler

Parameters:
annotationSpec -
Returns:

isBestBoundaryType

boolean isBestBoundaryType(V feature)
Returns true if the given feature's vertices make up the coverage of the map


isSecondBestBoundaryType

boolean isSecondBestBoundaryType(V feature)
Returns true if the given feature's vertices should make up the coverage of the map


createGeoObjectLoader

StreamToGeoObjectConverter<V> createGeoObjectLoader()
Returns a StreamToGeoObjectConverter capable of reading objects of type V out of a given DataInputStream.


convertGeoFeatureType

GeoFeatureType convertGeoFeatureType(java.lang.String type)
Given a string from a skin xml file describing a feature type from a skin xml file, this method will return the feature type the string is describing.

Parameters:
type - string describing a feature type from a skin xml file
Returns:
the feature type the string is describing

convertGeoFeatureType

java.util.List<? extends GeoFeatureType> convertGeoFeatureType(java.util.List<java.lang.String> featureTypeList)
Given a list of strings from a skin xml file that specify feature types, this method will return a parallel list of feature types specified by the list of strings.


geoName

java.lang.String geoName()
Returns a String describing the chart type, "ENC", "DNC", etc



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