Package | Description |
---|---|
org.openstreetmap.josm.gui.mappaint |
Drawing system allowing to display and render OSM map data in a user-friendly and customizable way, through map styles.
Two implementations are provided: XML: this was the system used by default JOSM map style for a long time. |
org.openstreetmap.josm.gui.mappaint.mapcss |
Drawing system based on MapCSS map styles.
|
org.openstreetmap.josm.gui.mappaint.styleelement |
Style elements defining how a map paint style is rendered.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Cascade> |
MultiCascade.layers |
Modifier and Type | Method and Description |
---|---|
Cascade |
MultiCascade.getCascade(java.lang.String layer)
Read-only version of
MultiCascade.getOrCreateCascade(java.lang.String) . |
Cascade |
Environment.getCascade(java.lang.String layer)
Gets the current cascade for a given layer
|
Cascade |
MultiCascade.getOrCreateCascade(java.lang.String layer)
Return the cascade with the given name.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.util.Map.Entry<java.lang.String,Cascade>> |
MultiCascade.getLayers()
Gets all cascades for the known layers
|
Modifier and Type | Method and Description |
---|---|
static StyleSetting.StyleSettingGroup |
StyleSetting.StyleSettingGroup.create(Cascade c,
StyleSource parentStyle,
java.lang.String key)
Creates a new
StyleSettingGroup . |
static StyleSetting.BooleanStyleSetting |
StyleSetting.BooleanStyleSetting.create(Cascade c,
StyleSource parentStyle,
java.lang.String key)
Creates a new
BooleanStyleSetting . |
Constructor and Description |
---|
Cascade(Cascade other)
Constructs a new
Cascade from existing one. |
Modifier and Type | Method and Description |
---|---|
private Cascade |
MapCSSStyleSource.constructSpecial(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
protected static LabelCompositionStrategy |
TextLabel.buildLabelCompositionStrategy(Cascade c,
boolean defaultAnnotate)
Derives a suitable label composition strategy from the style properties in
c . |
private static java.lang.Float |
LineElement.computeOffset(LineElement.LineType type,
Cascade c,
Cascade cDef,
java.lang.Float width) |
private static float |
LineElement.computeRealWidth(Environment env,
LineElement.LineType type,
Cascade c) |
private static java.lang.Float |
LineElement.computeWidth(LineElement.LineType type,
Cascade c,
Cascade cDef) |
protected static java.awt.Font |
StyleElement.getFont(Cascade c,
java.lang.String s) |
static java.awt.geom.Point2D |
TextLabel.getTextOffset(Cascade c)
Gets the text-offset property from a cascade
|
protected static java.lang.Float |
StyleElement.getWidth(Cascade c,
java.lang.String key,
java.lang.Float relativeTo)
Get a property value of type Width
|
Constructor and Description |
---|
AreaElement(Cascade c,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
java.lang.Float extentThreshold) |
AreaIconElement(Cascade c,
MapImage iconImage,
RotationAngle iconImageAngle,
PositionForAreaStrategy iconPosition) |
BoxTextElement(Cascade c,
TextLabel text,
BoxTextElement.BoxProvider boxProvider,
int offsetX,
int offsetY,
BoxTextElement.HorizontalTextAlignment hAlign,
BoxTextElement.VerticalTextAlignment vAlign)
Create a new
BoxTextElement |
LineElement(Cascade c,
float defaultMajorZindex,
java.awt.BasicStroke line,
java.awt.Color color,
java.awt.BasicStroke dashesLine,
java.awt.Color dashesBackground,
float offset,
float realWidth,
boolean wayDirectionArrows) |
NodeElement(Cascade c,
MapImage mapImage,
Symbol symbol,
float defaultMajorZindex,
RotationAngle rotationAngle) |
RepeatImageElement(Cascade c,
MapImage pattern,
float offset,
float spacing,
float phase,
RepeatImageElement.LineImageAlignment align)
Create a new image element
|
StyleElement(Cascade c,
float defaultMajorZindex) |
TextElement(Cascade c,
TextLabel text,
PositionForAreaStrategy labelPositionStrategy)
Create a new way/area text element definition
|