public class DefaultSymbolPreferences extends java.lang.Object implements SymbolPreferences
SymbolPreferences
implementation based on object attributes.Constructor and Description |
---|
DefaultSymbolPreferences() |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultCartographicSupportMeasureUnit()
Returns the unit that will be used when creating new symbols with
Cartographic support.
|
int |
getDefaultCartographicSupportReferenceSystem()
Returns the reference system that will be used when creating new symbols
with Cartographic support.
|
java.awt.Color |
getDefaultSymbolColor()
Returns the default color to use for symbols.
|
java.awt.Color |
getDefaultSymbolFillColor()
Returns the default fill color to use for symbols.
|
java.awt.Font |
getDefaultSymbolFont()
Returns the default font to use for symbols.
|
java.lang.String |
getSymbolFileExtension()
Returns the file extension to use for persisted symbols.
|
java.lang.String |
getSymbolLibraryPath()
Returns the path to the symbol library, where the persisted symbols can
be found.
|
boolean |
isDefaultSymbolFillColorAleatory()
Returns if the default symbol fill color has been generated in a aleatory
way.
|
void |
resetDefaultSymbolColor()
Sets the default color for symbols to the original value.
|
void |
resetDefaultSymbolFillColor()
Sets the default fill color for symbols to the original value.
|
void |
resetDefaultSymbolFillColorAleatory()
Sets if the default symbol fill color is aleatory to the default value.
|
void |
resetDefaultSymbolFont()
Sets the default font to use for symbols to the original value.
|
void |
resetSymbolLibraryPath()
Sets the path to the symbol library to the original value.
|
void |
setDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit)
Sets the unit that will be used when creating new symbols with
Cartographic support.
|
void |
setDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem)
Sets the reference system that will be used when creating new symbols
with Cartographic support.
|
void |
setDefaultSymbolColor(java.awt.Color defaultSymbolColor)
Sets the default color to use for symbols.
|
void |
setDefaultSymbolFillColor(java.awt.Color defaultSymbolFillColor)
Sets the default fill color to use for symbols.
|
void |
setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory)
Sets if the default symbol fill color has been generated in a aleatory
way.
|
void |
setDefaultSymbolFont(java.awt.Font defaultSymbolFont)
Sets the default font to use for symbols.
|
void |
setSymbolFileExtension(java.lang.String symbolFileExtension)
Sets the file extension to use for persisted symbols.
|
void |
setSymbolLibraryPath(java.lang.String symbolLibraryPath)
Sets the path to the symbol library, where the persisted symbols can be
found.
|
public java.lang.String getSymbolFileExtension()
SymbolPreferences
getSymbolFileExtension
in interface SymbolPreferences
public void setSymbolFileExtension(java.lang.String symbolFileExtension)
SymbolPreferences
setSymbolFileExtension
in interface SymbolPreferences
symbolFileExtension
- the file extension to use for persisted symbolspublic java.lang.String getSymbolLibraryPath()
SymbolPreferences
getSymbolLibraryPath
in interface SymbolPreferences
public void setSymbolLibraryPath(java.lang.String symbolLibraryPath)
SymbolPreferences
setSymbolLibraryPath
in interface SymbolPreferences
symbolLibraryPath
- the path to the symbol librarypublic void resetSymbolLibraryPath()
SymbolPreferences
resetSymbolLibraryPath
in interface SymbolPreferences
public java.awt.Color getDefaultSymbolColor()
SymbolPreferences
getDefaultSymbolColor
in interface SymbolPreferences
public void setDefaultSymbolColor(java.awt.Color defaultSymbolColor)
SymbolPreferences
setDefaultSymbolColor
in interface SymbolPreferences
defaultSymbolColor
- the symbol default colorpublic void resetDefaultSymbolColor()
SymbolPreferences
resetDefaultSymbolColor
in interface SymbolPreferences
public java.awt.Color getDefaultSymbolFillColor()
SymbolPreferences
getDefaultSymbolFillColor
in interface SymbolPreferences
public void setDefaultSymbolFillColor(java.awt.Color defaultSymbolFillColor)
SymbolPreferences
setDefaultSymbolFillColor
in interface SymbolPreferences
defaultSymbolFillColor
- the default fill colorpublic void resetDefaultSymbolFillColor()
SymbolPreferences
resetDefaultSymbolFillColor
in interface SymbolPreferences
public boolean isDefaultSymbolFillColorAleatory()
SymbolPreferences
isDefaultSymbolFillColorAleatory
in interface SymbolPreferences
public void setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory)
SymbolPreferences
setDefaultSymbolFillColorAleatory
in interface SymbolPreferences
defaultSymbolFillColorAleatory
- if the default symbol fill color is aleatorypublic void resetDefaultSymbolFillColorAleatory()
SymbolPreferences
resetDefaultSymbolFillColorAleatory
in interface SymbolPreferences
public java.awt.Font getDefaultSymbolFont()
SymbolPreferences
getDefaultSymbolFont
in interface SymbolPreferences
public void setDefaultSymbolFont(java.awt.Font defaultSymbolFont)
SymbolPreferences
setDefaultSymbolFont
in interface SymbolPreferences
defaultSymbolFont
- the default symbol fontpublic void resetDefaultSymbolFont()
SymbolPreferences
resetDefaultSymbolFont
in interface SymbolPreferences
public int getDefaultCartographicSupportMeasureUnit()
SymbolPreferences
getDefaultCartographicSupportMeasureUnit
in interface SymbolPreferences
CartographicSupport.getUnit()
public void setDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit)
SymbolPreferences
setDefaultCartographicSupportMeasureUnit
in interface SymbolPreferences
defaultCartographicSupportMeasureUnit
- the default cartographic support measure unitCartographicSupport#setUnit()
public int getDefaultCartographicSupportReferenceSystem()
SymbolPreferences
getDefaultCartographicSupportReferenceSystem
in interface SymbolPreferences
CartographicSupport.PAPER
,
CartographicSupport.WORLD
public void setDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem)
SymbolPreferences
setDefaultCartographicSupportReferenceSystem
in interface SymbolPreferences
defaultCartographicSupportReferenceSystem
- the cartographic reference systemCartographicSupport.PAPER
,
CartographicSupport.WORLD