com.metsci.glimpse.charts.vector.display
Class ENCBasicSkinHelper

java.lang.Object
  extended by com.metsci.glimpse.charts.vector.display.ENCBasicSkinHelper
All Implemented Interfaces:
BasicSkinHelper<ENCObject>

public class ENCBasicSkinHelper
extends java.lang.Object
implements BasicSkinHelper<ENCObject>


Constructor Summary
ENCBasicSkinHelper()
           
 
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<ENCObject> createAnnotationPainterSpec(AnnotationPainterSpec annotationSpec)
          Returns a ContentHandler
 Skin<ENCObject> createDefaultHardCodedSkin()
          Returns a simple, default, hardcoded skin for the given chart type
 Skin<ENCObject> createDefaultHardCodedSkin(ColorPalette colorPalette)
          Returns a simple, default, hardcoded skin with the givne color palette for the given chart type
 StreamToGeoObjectConverter<ENCObject> 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(ENCObject enc)
          Returns true if the given feature's vertices make up the coverage of the map
 boolean isSecondBestBoundaryType(ENCObject enc)
          Returns true if the given feature's vertices should make up the coverage of the map
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ENCBasicSkinHelper

public ENCBasicSkinHelper()
Method Detail

getXsdSchema

public javax.xml.validation.Schema getXsdSchema()
                                         throws org.xml.sax.SAXException
Description copied from interface: BasicSkinHelper
Returns the skin schema, or null if no validation needs to be performed

Specified by:
getXsdSchema in interface BasicSkinHelper<ENCObject>
Returns:
Throws:
org.xml.sax.SAXException

createDefaultHardCodedSkin

public Skin<ENCObject> createDefaultHardCodedSkin()
Description copied from interface: BasicSkinHelper
Returns a simple, default, hardcoded skin for the given chart type

Specified by:
createDefaultHardCodedSkin in interface BasicSkinHelper<ENCObject>

createDefaultHardCodedSkin

public Skin<ENCObject> createDefaultHardCodedSkin(ColorPalette colorPalette)
Description copied from interface: BasicSkinHelper
Returns a simple, default, hardcoded skin with the givne color palette for the given chart type

Specified by:
createDefaultHardCodedSkin in interface BasicSkinHelper<ENCObject>

createAnnotationPainterSpec

public ContentHandler<ENCObject> createAnnotationPainterSpec(AnnotationPainterSpec annotationSpec)
Description copied from interface: BasicSkinHelper
Returns a ContentHandler

Specified by:
createAnnotationPainterSpec in interface BasicSkinHelper<ENCObject>
Returns:

isBestBoundaryType

public boolean isBestBoundaryType(ENCObject enc)
Description copied from interface: BasicSkinHelper
Returns true if the given feature's vertices make up the coverage of the map

Specified by:
isBestBoundaryType in interface BasicSkinHelper<ENCObject>

isSecondBestBoundaryType

public boolean isSecondBestBoundaryType(ENCObject enc)
Description copied from interface: BasicSkinHelper
Returns true if the given feature's vertices should make up the coverage of the map

Specified by:
isSecondBestBoundaryType in interface BasicSkinHelper<ENCObject>

createGeoObjectLoader

public StreamToGeoObjectConverter<ENCObject> createGeoObjectLoader()
Description copied from interface: BasicSkinHelper
Returns a StreamToGeoObjectConverter capable of reading objects of type V out of a given DataInputStream.

Specified by:
createGeoObjectLoader in interface BasicSkinHelper<ENCObject>

convertGeoFeatureType

public GeoFeatureType convertGeoFeatureType(java.lang.String type)
Description copied from interface: BasicSkinHelper
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.

Specified by:
convertGeoFeatureType in interface BasicSkinHelper<ENCObject>
Parameters:
type - string describing a feature type from a skin xml file
Returns:
the feature type the string is describing

convertGeoFeatureType

public java.util.List<? extends GeoFeatureType> convertGeoFeatureType(java.util.List<java.lang.String> featureTypeList)
Description copied from interface: BasicSkinHelper
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.

Specified by:
convertGeoFeatureType in interface BasicSkinHelper<ENCObject>

geoName

public java.lang.String geoName()
Description copied from interface: BasicSkinHelper
Returns a String describing the chart type, "ENC", "DNC", etc

Specified by:
geoName in interface BasicSkinHelper<ENCObject>


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