|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.datasource.IlvDataSourceStylingFactory
public class IlvDataSourceStylingFactory
This class is a factory used by all vector data sources to create default renderers and styles
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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.
| Method Detail |
|---|
public static IlvDataSourceStylingFactory getFactory()
public static void setFactory(IlvDataSourceStylingFactory factory)
factory -
public IlvMapStyle createDefaultFeatureStyle(Class geometryClass,
Object styleKey,
boolean useGeneralPath)
geometryClass - subclass IlvMapGeometrystyleKey - 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 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||