public final class MapPaintSettings extends java.lang.Object implements Preferences.PreferenceChangedListener
Modifier and Type | Field and Description |
---|---|
private java.awt.Color |
connectionColor
Color Preference for multiply connected nodes
|
private int |
connectionNodeSize
Preference: size of multiply connected nodes
|
private int |
defaultSegmentWidth
Preference: default width for ways segments
|
private boolean |
fillConnectionNode
Preference: should multiply connected nodes be filled
|
private boolean |
fillSelectedNode
Preference: should selected nodes be filled
|
private boolean |
fillTaggedNode
Preference: should tagged nodes be filled
|
private boolean |
fillUnselectedNode
Preference: should unselected nodes be filled
|
private java.awt.Color |
highlightColor
Color Preference for hightlighted objects
|
private java.awt.Color |
inactiveColor
Color Preference for inactive objects
|
static MapPaintSettings |
INSTANCE
The unique instance
|
private java.awt.Color |
nodeColor
Color Preference for nodes
|
private boolean |
outlineOnly
Preference: should only the data area outline be drawn
|
private java.awt.Color |
relationSelectedColor |
private java.awt.Color |
selectedColor
Color Preference for selected objects
|
private int |
selectedNodeSize
Preference: size of selected nodes
|
private boolean |
showDirectionArrow
Preference: should directional arrows be displayed
|
private boolean |
showHeadArrowOnly
Preference: should only the last arrow of a way be displayed
|
private int |
showIconsDistance |
private int |
showNamesDistance |
private boolean |
showOnewayArrow
Preference: should arrows for oneways be displayed
|
private boolean |
showOrderNumber
Preference: should the segment numbers of ways be displayed
|
private boolean |
showOrderNumberOnSelectedWay
Preference: should the segment numbers of ways be displayed on selected way
|
private java.awt.Color |
taggedColor
Color Preference for tagged nodes
|
private java.awt.Color |
taggedConnectionColor
Color Preference for tagged and multiply connected nodes
|
private int |
taggedNodeSize
Preference: size of tagged nodes
|
private int |
unselectedNodeSize
Preference: size of unselected nodes
|
private boolean |
useRealWidth |
private int |
useStrokesDistance |
Modifier | Constructor and Description |
---|---|
private |
MapPaintSettings() |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getConnectionColor()
Returns color for multiply connected nodes
|
int |
getConnectionNodeSize()
Returns the size of multiply connected nodes
|
int |
getDefaultSegmentWidth()
Returns default width for ways segments
|
java.awt.Color |
getHighlightColor()
Returns color for hightlighted objects
|
java.awt.Color |
getInactiveColor()
Returns color for inactive objects
|
java.awt.Color |
getNodeColor()
Returns color for nodes
|
java.awt.Color |
getRelationSelectedColor()
Returns color for selected relations
|
java.awt.Color |
getRelationSelectedColor(int alpha)
Returns color for selected relations with a given alpha
|
java.awt.Color |
getSelectedColor()
Returns color for selected objects (nodes and ways)
|
java.awt.Color |
getSelectedColor(int alpha)
Returns color for selected objects (nodes and ways) with a given alpha
|
int |
getSelectedNodeSize()
Returns the size of selected nodes
|
int |
getShowIconsDistance()
Returns the distance at which icons should be drawn
|
int |
getShowNamesDistance()
Returns the distance at which names should be drawn
|
java.awt.Color |
getTaggedColor()
Returns color for tagged nodes
|
java.awt.Color |
getTaggedConnectionColor()
Returns color for tagged and multiply connected nodes
|
int |
getTaggedNodeSize()
Returns the size of tagged nodes
|
int |
getUnselectedNodeSize()
Returns the size of unselected nodes
|
int |
getUseStrokesDistance()
Returns the distance at which strokes should be used
|
boolean |
isFillConnectionNode()
Determines if multiply connected nodes should be filled
|
boolean |
isFillSelectedNode()
Determines if selected nodes should be filled
|
boolean |
isFillTaggedNode()
Determines if tagged nodes should be filled
|
boolean |
isFillUnselectedNode()
Determines if unselected nodes should be filled
|
boolean |
isOutlineOnly()
Determines if only the data area outline should be drawn
|
boolean |
isShowDirectionArrow()
Determines if directional arrows should be displayed
|
boolean |
isShowHeadArrowOnly()
Determines if only the last arrow of a way should be displayed
|
boolean |
isShowOnewayArrow()
Determines if arrows for oneways should be displayed
|
boolean |
isShowOrderNumber()
Determines if the segment numbers of ways should be displayed
|
boolean |
isShowOrderNumberOnSelectedWay()
Determines if the segment numbers of the selected way should be displayed
|
boolean |
isUseRealWidth()
Determines if the real width of ways should be used
|
private void |
load() |
void |
preferenceChanged(Preferences.PreferenceChangeEvent e)
Trigerred when a preference entry value changes.
|
void |
setShowHeadArrowOnly(boolean showHeadArrowOnly)
Specifies if only the last arrow of a way should be displayed
|
java.lang.String |
toString() |
public static final MapPaintSettings INSTANCE
private boolean useRealWidth
private boolean showDirectionArrow
private boolean showOnewayArrow
private int defaultSegmentWidth
private boolean showOrderNumber
private boolean showOrderNumberOnSelectedWay
private boolean showHeadArrowOnly
private int showNamesDistance
private int useStrokesDistance
private int showIconsDistance
private int selectedNodeSize
private int connectionNodeSize
private int unselectedNodeSize
private int taggedNodeSize
private boolean fillSelectedNode
private boolean fillUnselectedNode
private boolean fillTaggedNode
private boolean fillConnectionNode
private boolean outlineOnly
private java.awt.Color selectedColor
private java.awt.Color relationSelectedColor
private java.awt.Color highlightColor
private java.awt.Color inactiveColor
private java.awt.Color nodeColor
private java.awt.Color taggedColor
private java.awt.Color connectionColor
private java.awt.Color taggedConnectionColor
private MapPaintSettings()
private void load()
public void preferenceChanged(Preferences.PreferenceChangeEvent e)
Preferences.PreferenceChangedListener
preferenceChanged
in interface Preferences.PreferenceChangedListener
e
- the preference change eventpublic boolean isUseRealWidth()
true
if the real width of ways should be usedpublic boolean isShowDirectionArrow()
true
if directional arrows should be displayedpublic boolean isShowOnewayArrow()
true
if arrows for oneways should be displayedpublic java.awt.Color getSelectedColor()
public java.awt.Color getSelectedColor(int alpha)
alpha
- alpha component in the range 0-255public int getDefaultSegmentWidth()
public java.awt.Color getRelationSelectedColor()
public java.awt.Color getRelationSelectedColor(int alpha)
alpha
- alpha component in the range 0-255public java.awt.Color getHighlightColor()
public java.awt.Color getInactiveColor()
public java.awt.Color getNodeColor()
public java.awt.Color getTaggedColor()
public java.awt.Color getConnectionColor()
public java.awt.Color getTaggedConnectionColor()
public boolean isShowOrderNumber()
true
if the segment numbers of ways should be displayedpublic boolean isShowOrderNumberOnSelectedWay()
true
if the segment numbers of the selected way should be displayedpublic void setShowHeadArrowOnly(boolean showHeadArrowOnly)
showHeadArrowOnly
- true
if only the last arrow of a way should be displayedpublic boolean isShowHeadArrowOnly()
true
if only the last arrow of a way should be displayedpublic int getShowNamesDistance()
public int getUseStrokesDistance()
public int getShowIconsDistance()
public int getSelectedNodeSize()
public int getConnectionNodeSize()
public int getUnselectedNodeSize()
public int getTaggedNodeSize()
public boolean isFillSelectedNode()
true
if selected nodes should be filledpublic boolean isFillUnselectedNode()
true
if unselected nodes should be filledpublic boolean isFillConnectionNode()
true
if multiply connected nodes should be filledpublic boolean isFillTaggedNode()
true
if tagged nodes should be filledpublic boolean isOutlineOnly()
true
if only the data area outline should be drawnpublic java.lang.String toString()
toString
in class java.lang.Object