public class AppSymbolPreferences extends Object implements SymbolPreferences
SymbolPreferences
implementation based on object attributes.Constructor and Description |
---|
AppSymbolPreferences() |
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.
|
Color |
getDefaultSymbolColor()
Returns the default color to use for symbols.
|
Color |
getDefaultSymbolFillColor()
Returns the default fill color to use for symbols.
|
Font |
getDefaultSymbolFont()
Returns the default font to use for symbols.
|
String |
getSymbolFileExtension()
Returns the file extension to use for persisted symbols.
|
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(Color symbolColor)
Sets the default color to use for symbols.
|
void |
setDefaultSymbolFillColor(Color symbolFillColor)
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(Font defaultSymbolFont)
Sets the default font to use for symbols.
|
void |
setSymbolFileExtension(String symbolFileExtension)
Sets the file extension to use for persisted symbols.
|
void |
setSymbolLibraryPath(String symbolLibraryPath)
Sets the path to the symbol library, where the persisted symbols can be
found.
|
public String getSymbolFileExtension()
SymbolPreferences
getSymbolFileExtension
in interface SymbolPreferences
public void setSymbolFileExtension(String symbolFileExtension)
SymbolPreferences
setSymbolFileExtension
in interface SymbolPreferences
symbolFileExtension
- the file extension to use for persisted symbolspublic String getSymbolLibraryPath()
SymbolPreferences
getSymbolLibraryPath
in interface SymbolPreferences
public void setSymbolLibraryPath(String symbolLibraryPath)
SymbolPreferences
setSymbolLibraryPath
in interface SymbolPreferences
symbolLibraryPath
- the path to the symbol librarypublic Color getDefaultSymbolColor()
SymbolPreferences
getDefaultSymbolColor
in interface SymbolPreferences
public void setDefaultSymbolColor(Color symbolColor)
SymbolPreferences
setDefaultSymbolColor
in interface SymbolPreferences
symbolColor
- the symbol default colorpublic Color getDefaultSymbolFillColor()
SymbolPreferences
getDefaultSymbolFillColor
in interface SymbolPreferences
public void setDefaultSymbolFillColor(Color symbolFillColor)
SymbolPreferences
setDefaultSymbolFillColor
in interface SymbolPreferences
symbolFillColor
- the default fill colorpublic 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 Font getDefaultSymbolFont()
SymbolPreferences
getDefaultSymbolFont
in interface SymbolPreferences
public void setDefaultSymbolFont(Font defaultSymbolFont)
SymbolPreferences
setDefaultSymbolFont
in interface SymbolPreferences
defaultSymbolFont
- the default symbol fontpublic 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
public void resetDefaultSymbolColor()
SymbolPreferences
resetDefaultSymbolColor
in interface SymbolPreferences
public void resetDefaultSymbolFillColor()
SymbolPreferences
resetDefaultSymbolFillColor
in interface SymbolPreferences
public void resetDefaultSymbolFillColorAleatory()
SymbolPreferences
resetDefaultSymbolFillColorAleatory
in interface SymbolPreferences
public void resetDefaultSymbolFont()
SymbolPreferences
resetDefaultSymbolFont
in interface SymbolPreferences
public void resetSymbolLibraryPath()
SymbolPreferences
resetSymbolLibraryPath
in interface SymbolPreferences