public final class MapPaintSettings extends Object implements Preferences.PreferenceChangedListener
Modifier and Type | Field and Description |
---|---|
private 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 Color |
highlightColor
Color Preference for hightlighted objects
|
private Color |
inactiveColor
Color Preference for inactive objects
|
static MapPaintSettings |
INSTANCE
The unique instance
|
private Color |
nodeColor
Color Preference for nodes
|
private boolean |
outlineOnly
Preference: should only the data area outline be drawn
|
private Color |
relationSelectedColor |
private 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 Color |
taggedColor
Color Preference for tagged nodes
|
private 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 |
---|---|
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
|
Color |
getHighlightColor()
Returns color for hightlighted objects
|
Color |
getInactiveColor()
Returns color for inactive objects
|
Color |
getNodeColor()
Returns color for nodes
|
Color |
getRelationSelectedColor()
Returns color for selected relations
|
Color |
getRelationSelectedColor(int alpha)
Returns color for selected relations with a given alpha
|
Color |
getSelectedColor()
Returns color for selected objects (nodes and ways)
|
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
|
Color |
getTaggedColor()
Returns color for tagged nodes
|
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 |
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
|
public static final MapPaintSettings INSTANCE
private boolean useRealWidth
private boolean showDirectionArrow
private boolean showOnewayArrow
private int defaultSegmentWidth
private boolean showOrderNumber
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 Color selectedColor
private Color relationSelectedColor
private Color highlightColor
private Color inactiveColor
private Color taggedColor
private Color connectionColor
private 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 Color getSelectedColor()
public Color getSelectedColor(int alpha)
alpha
- alpha component in the range 0-255public int getDefaultSegmentWidth()
public Color getRelationSelectedColor()
public Color getRelationSelectedColor(int alpha)
alpha
- alpha component in the range 0-255public Color getHighlightColor()
public Color getInactiveColor()
public Color getNodeColor()
public Color getTaggedColor()
public Color getConnectionColor()
public Color getTaggedConnectionColor()
public boolean isShowOrderNumber()
true
if the segment numbers of ways 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 drawn