Package | Description |
---|---|
org.openstreetmap.josm.data.osm.visitor.paint | |
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. |
Modifier and Type | Method and Description |
---|---|
private void |
StyledMapRenderer.displayText(java.awt.font.GlyphVector gv,
java.lang.String s,
int x,
int y,
boolean disabled,
TextElement text)
Displays text at specified position including its halo, if applicable.
|
protected void |
StyledMapRenderer.drawArea(OsmPrimitive osm,
java.awt.geom.Path2D.Double path,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
boolean disabled,
TextElement text) |
void |
StyledMapRenderer.drawArea(Relation r,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
boolean disabled,
TextElement text)
Draws a multipolygon area.
|
void |
StyledMapRenderer.drawArea(Way w,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
boolean disabled,
TextElement text)
Draws an area defined by a way.
|
private void |
StyledMapRenderer.drawAreaText(OsmPrimitive osm,
TextElement text,
java.awt.Shape area) |
void |
StyledMapRenderer.drawTextOnPath(Way way,
TextElement text)
Draws a text along a given way.
|
Modifier and Type | Field and Description |
---|---|
TextElement |
BoxTextElemStyle.text |
TextElement |
AreaElemStyle.text |
private TextElement |
LineTextElemStyle.text |
Modifier and Type | Method and Description |
---|---|
static TextElement |
TextElement.create(Environment env,
java.awt.Color defaultTextColor,
boolean defaultAnnotate)
Builds a text element from style properties in
c and the
default text color defaultTextColor |
Constructor and Description |
---|
AreaElemStyle(Cascade c,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
TextElement text) |
BoxTextElemStyle(Cascade c,
TextElement text,
BoxTextElemStyle.BoxProvider boxProvider,
java.awt.Rectangle box,
BoxTextElemStyle.HorizontalTextAlignment hAlign,
BoxTextElemStyle.VerticalTextAlignment vAlign) |
LineTextElemStyle(Cascade c,
TextElement text) |
TextElement(TextElement other)
Copy constructor
|