Class DefaultSymbolPreferences
java.lang.Object
org.gvsig.fmap.mapcontext.rendering.symbols.impl.DefaultSymbolPreferences
- All Implemented Interfaces:
SymbolPreferences
Default
SymbolPreferences implementation based on object attributes.- Author:
- 2009- César Ordiñana - gvSIG team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the unit that will be used when creating new symbols with Cartographic support.intReturns the reference system that will be used when creating new symbols with Cartographic support.Returns the default color to use for symbols.Returns the default fill color to use for symbols.Returns the default font to use for symbols.Returns the file extension to use for persisted symbols.Returns the path to the symbol library, where the persisted symbols can be found.booleanReturns if the default symbol fill color has been generated in a aleatory way.voidSets the default color for symbols to the original value.voidSets the default fill color for symbols to the original value.voidSets if the default symbol fill color is aleatory to the default value.voidSets the default font to use for symbols to the original value.voidSets the path to the symbol library to the original value.voidsetDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit) Sets the unit that will be used when creating new symbols with Cartographic support.voidsetDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem) Sets the reference system that will be used when creating new symbols with Cartographic support.voidsetDefaultSymbolColor(Color defaultSymbolColor) Sets the default color to use for symbols.voidsetDefaultSymbolFillColor(Color defaultSymbolFillColor) Sets the default fill color to use for symbols.voidsetDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory) Sets if the default symbol fill color has been generated in a aleatory way.voidsetDefaultSymbolFont(Font defaultSymbolFont) Sets the default font to use for symbols.voidsetSymbolFileExtension(String symbolFileExtension) Sets the file extension to use for persisted symbols.voidsetSymbolLibraryPath(String symbolLibraryPath) Sets the path to the symbol library, where the persisted symbols can be found.
-
Constructor Details
-
DefaultSymbolPreferences
public DefaultSymbolPreferences()
-
-
Method Details
-
getSymbolFileExtension
Description copied from interface:SymbolPreferencesReturns the file extension to use for persisted symbols.- Specified by:
getSymbolFileExtensionin interfaceSymbolPreferences- Returns:
- the symbol file extension
-
setSymbolFileExtension
Description copied from interface:SymbolPreferencesSets the file extension to use for persisted symbols.- Specified by:
setSymbolFileExtensionin interfaceSymbolPreferences- Parameters:
symbolFileExtension- the file extension to use for persisted symbols
-
getSymbolLibraryPath
Description copied from interface:SymbolPreferencesReturns the path to the symbol library, where the persisted symbols can be found.- Specified by:
getSymbolLibraryPathin interfaceSymbolPreferences- Returns:
- the path to the symbol library
-
setSymbolLibraryPath
Description copied from interface:SymbolPreferencesSets the path to the symbol library, where the persisted symbols can be found.- Specified by:
setSymbolLibraryPathin interfaceSymbolPreferences- Parameters:
symbolLibraryPath- the path to the symbol library
-
resetSymbolLibraryPath
public void resetSymbolLibraryPath()Description copied from interface:SymbolPreferencesSets the path to the symbol library to the original value.- Specified by:
resetSymbolLibraryPathin interfaceSymbolPreferences
-
getDefaultSymbolColor
Description copied from interface:SymbolPreferencesReturns the default color to use for symbols.- Specified by:
getDefaultSymbolColorin interfaceSymbolPreferences- Returns:
- the symbol default color
-
setDefaultSymbolColor
Description copied from interface:SymbolPreferencesSets the default color to use for symbols.- Specified by:
setDefaultSymbolColorin interfaceSymbolPreferences- Parameters:
defaultSymbolColor- the symbol default color
-
resetDefaultSymbolColor
public void resetDefaultSymbolColor()Description copied from interface:SymbolPreferencesSets the default color for symbols to the original value.- Specified by:
resetDefaultSymbolColorin interfaceSymbolPreferences
-
getDefaultSymbolFillColor
Description copied from interface:SymbolPreferencesReturns the default fill color to use for symbols.- Specified by:
getDefaultSymbolFillColorin interfaceSymbolPreferences- Returns:
- the default fill color
-
setDefaultSymbolFillColor
Description copied from interface:SymbolPreferencesSets the default fill color to use for symbols.- Specified by:
setDefaultSymbolFillColorin interfaceSymbolPreferences- Parameters:
defaultSymbolFillColor- the default fill color
-
resetDefaultSymbolFillColor
public void resetDefaultSymbolFillColor()Description copied from interface:SymbolPreferencesSets the default fill color for symbols to the original value.- Specified by:
resetDefaultSymbolFillColorin interfaceSymbolPreferences
-
isDefaultSymbolFillColorAleatory
public boolean isDefaultSymbolFillColorAleatory()Description copied from interface:SymbolPreferencesReturns if the default symbol fill color has been generated in a aleatory way.- Specified by:
isDefaultSymbolFillColorAleatoryin interfaceSymbolPreferences- Returns:
- if the default symbol fill color is aleatory
-
setDefaultSymbolFillColorAleatory
public void setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory) Description copied from interface:SymbolPreferencesSets if the default symbol fill color has been generated in a aleatory way.- Specified by:
setDefaultSymbolFillColorAleatoryin interfaceSymbolPreferences- Parameters:
defaultSymbolFillColorAleatory- if the default symbol fill color is aleatory
-
resetDefaultSymbolFillColorAleatory
public void resetDefaultSymbolFillColorAleatory()Description copied from interface:SymbolPreferencesSets if the default symbol fill color is aleatory to the default value.- Specified by:
resetDefaultSymbolFillColorAleatoryin interfaceSymbolPreferences
-
getDefaultSymbolFont
Description copied from interface:SymbolPreferencesReturns the default font to use for symbols.- Specified by:
getDefaultSymbolFontin interfaceSymbolPreferences- Returns:
- the default symbol font
-
setDefaultSymbolFont
Description copied from interface:SymbolPreferencesSets the default font to use for symbols.- Specified by:
setDefaultSymbolFontin interfaceSymbolPreferences- Parameters:
defaultSymbolFont- the default symbol font
-
resetDefaultSymbolFont
public void resetDefaultSymbolFont()Description copied from interface:SymbolPreferencesSets the default font to use for symbols to the original value.- Specified by:
resetDefaultSymbolFontin interfaceSymbolPreferences
-
getDefaultCartographicSupportMeasureUnit
public int getDefaultCartographicSupportMeasureUnit()Description copied from interface:SymbolPreferencesReturns the unit that will be used when creating new symbols with Cartographic support.- Specified by:
getDefaultCartographicSupportMeasureUnitin interfaceSymbolPreferences- Returns:
- the default cartographic support measure unit
- See Also:
-
setDefaultCartographicSupportMeasureUnit
public void setDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit) Description copied from interface:SymbolPreferencesSets the unit that will be used when creating new symbols with Cartographic support.- Specified by:
setDefaultCartographicSupportMeasureUnitin interfaceSymbolPreferences- Parameters:
defaultCartographicSupportMeasureUnit- the default cartographic support measure unit- See Also:
-
getDefaultCartographicSupportReferenceSystem
public int getDefaultCartographicSupportReferenceSystem()Description copied from interface:SymbolPreferencesReturns the reference system that will be used when creating new symbols with Cartographic support.- Specified by:
getDefaultCartographicSupportReferenceSystemin interfaceSymbolPreferences- Returns:
- the cartographic reference system
- See Also:
-
setDefaultCartographicSupportReferenceSystem
public void setDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem) Description copied from interface:SymbolPreferencesSets the reference system that will be used when creating new symbols with Cartographic support.- Specified by:
setDefaultCartographicSupportReferenceSystemin interfaceSymbolPreferences- Parameters:
defaultCartographicSupportReferenceSystem- the cartographic reference system- See Also:
-