Interface SymbolPreferences
- All Known Implementing Classes:
DefaultSymbolPreferences
public interface SymbolPreferences
Preferences for symbol configuration and default values.
- Author:
- 2009- César Ordiñana - gvSIG team
-
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 extension) 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.
-
Method Details
-
getSymbolFileExtension
String getSymbolFileExtension()Returns the file extension to use for persisted symbols.- Returns:
- the symbol file extension
-
setSymbolFileExtension
Sets the file extension to use for persisted symbols.- Parameters:
extension- the file extension to use for persisted symbols
-
getDefaultSymbolColor
Color getDefaultSymbolColor()Returns the default color to use for symbols.- Returns:
- the symbol default color
-
setDefaultSymbolColor
Sets the default color to use for symbols.- Parameters:
defaultSymbolColor- the symbol default color
-
resetDefaultSymbolColor
void resetDefaultSymbolColor()Sets the default color for symbols to the original value. -
getDefaultSymbolFillColor
Color getDefaultSymbolFillColor()Returns the default fill color to use for symbols.- Returns:
- the default fill color
-
setDefaultSymbolFillColor
Sets the default fill color to use for symbols.- Parameters:
defaultSymbolFillColor- the default fill color
-
resetDefaultSymbolFillColor
void resetDefaultSymbolFillColor()Sets the default fill color for symbols to the original value. -
isDefaultSymbolFillColorAleatory
boolean isDefaultSymbolFillColorAleatory()Returns if the default symbol fill color has been generated in a aleatory way.- Returns:
- if the default symbol fill color is aleatory
-
setDefaultSymbolFillColorAleatory
void setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory) Sets if the default symbol fill color has been generated in a aleatory way.- Parameters:
defaultSymbolFillColorAleatory- if the default symbol fill color is aleatory
-
resetDefaultSymbolFillColorAleatory
void resetDefaultSymbolFillColorAleatory()Sets if the default symbol fill color is aleatory to the default value. -
getDefaultSymbolFont
Font getDefaultSymbolFont()Returns the default font to use for symbols.- Returns:
- the default symbol font
-
setDefaultSymbolFont
Sets the default font to use for symbols.- Parameters:
defaultSymbolFont- the default symbol font
-
resetDefaultSymbolFont
void resetDefaultSymbolFont()Sets the default font to use for symbols to the original value. -
getSymbolLibraryPath
String getSymbolLibraryPath()Returns the path to the symbol library, where the persisted symbols can be found.- Returns:
- the path to the symbol library
-
setSymbolLibraryPath
Sets the path to the symbol library, where the persisted symbols can be found.- Parameters:
symbolLibraryPath- the path to the symbol library
-
resetSymbolLibraryPath
void resetSymbolLibraryPath()Sets the path to the symbol library to the original value. -
getDefaultCartographicSupportMeasureUnit
int getDefaultCartographicSupportMeasureUnit()Returns the unit that will be used when creating new symbols with Cartographic support.- Returns:
- the default cartographic support measure unit
- See Also:
-
setDefaultCartographicSupportMeasureUnit
void setDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit) Sets the unit that will be used when creating new symbols with Cartographic support.- Parameters:
defaultCartographicSupportMeasureUnit- the default cartographic support measure unit- See Also:
-
getDefaultCartographicSupportReferenceSystem
int getDefaultCartographicSupportReferenceSystem()Returns the reference system that will be used when creating new symbols with Cartographic support.- Returns:
- the cartographic reference system
- See Also:
-
setDefaultCartographicSupportReferenceSystem
void setDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem) Sets the reference system that will be used when creating new symbols with Cartographic support.- Parameters:
defaultCartographicSupportReferenceSystem- the cartographic reference system- See Also:
-