public class IlvDataSourceStylingFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTETABLE_BACKGROUND
Name of the attribute defining the background color.
|
static String |
ATTRIBUTETABLE_FILL
Name of the attribute defining the filling status for areas.
|
static String |
ATTRIBUTETABLE_FOREGROUND
Name of the attribute defining the foreground color.
|
static String |
ATTRIBUTETABLE_ICON
Name of the attribute defining the icon for points.
|
static String |
ATTRIBUTETABLE_STROKE
Name of the attribute defining the stroking status for areas.
|
Modifier | Constructor and Description |
---|---|
protected |
IlvDataSourceStylingFactory() |
Modifier and Type | Method and Description |
---|---|
IlvMapStyle |
createDefaultFeatureStyle(Class<?> geometryClass,
Object styleKey,
boolean useGeneralPath)
Creates a map style designed to be applied to the specified geometry class.
|
IlvDefaultFeatureRenderer |
createDefaultRenderer(boolean useGeneralPath,
boolean useGeodeticComputation)
Creates and sets up a map renderer designed to create IlvMapGraphic
objects.
|
HashMap<?,?> |
getDefaultAttributeTable(String attributeName)
Returns a hash map containing the attribute values to use for each
particular style key.
|
HashMap<Object,IlvMapStyle> |
getDefaultStyleTable()
Returns a hash map containing the style to use for each particular key.
|
static IlvDataSourceStylingFactory |
getFactory()
Returns the default style factory.
|
boolean |
isShareDefaultStyles()
Indicates whether styles are shared between all feature layers with the
same key.
|
static void |
setFactory(IlvDataSourceStylingFactory factory)
Allows to change the default style factory, by overriding
createDefaultRenderer or createDefaultFeatureStyle in a subclass.
|
void |
setShareDefaultStyles(boolean shareDefaultStyles)
Determines whether styles are shared between all feature layers with the
same key.
|
public static final String ATTRIBUTETABLE_BACKGROUND
getDefaultAttributeTable(String)
for this name will contain
styleKey/Color pairs.public static final String ATTRIBUTETABLE_FILL
getDefaultAttributeTable(String)
for this name will contain
styleKey/Boolean pairs.public static final String ATTRIBUTETABLE_ICON
getDefaultAttributeTable(String)
for this name will contain
styleKey/String pairs.public static final String ATTRIBUTETABLE_FOREGROUND
getDefaultAttributeTable(String)
for this name will contain
styleKey/Color pairs.public static final String ATTRIBUTETABLE_STROKE
getDefaultAttributeTable(String)
for this name will contain
styleKey/Boolean pairs.public static IlvDataSourceStylingFactory getFactory()
public static void setFactory(IlvDataSourceStylingFactory factory)
factory
- The default style factory.public IlvMapStyle createDefaultFeatureStyle(Class<?> geometryClass, Object styleKey, boolean useGeneralPath)
geometryClass
- subclass IlvMapGeometry
styleKey
- style key.useGeneralPath
- true if curve and area renderers should use general paths.getDefaultAttributeTable(String)
public IlvDefaultFeatureRenderer createDefaultRenderer(boolean useGeneralPath, boolean useGeodeticComputation)
useGeneralPath
- true if curves and areas should be general paths.useGeodeticComputation
- true if curves and areas should use the geodetic computation.public HashMap<?,?> getDefaultAttributeTable(String attributeName)
attributeName
- attribute name. The default factory uses the following predefined
names:
createDefaultFeatureStyle(Class, Object, boolean)
public HashMap<Object,IlvMapStyle> getDefaultStyleTable()
createDefaultFeatureStyle(Class, Object, boolean)
public boolean isShareDefaultStyles()
public void setShareDefaultStyles(boolean shareDefaultStyles)
createDefaultFeatureStyle(Class, Object, boolean)
, a copy of the
registered style (if any) is returned. shareDefaultStyles
- style sharing to use when creating a new style.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.