Package | Description |
---|---|
org.openstreetmap.josm.data.osm.visitor.paint |
Provides the classes for painting (rendering) OSM primitives on the map.
|
org.openstreetmap.josm.gui.mappaint.styleelement |
Style elements defining how a map paint style is rendered.
|
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,
TextLabel 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,
java.awt.geom.Path2D.Double pfClip,
boolean disabled,
TextLabel text)
Worker function for drawing areas.
|
void |
StyledMapRenderer.drawArea(Relation r,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
java.lang.Float extentThreshold,
boolean disabled,
TextLabel text)
Draws a multipolygon area.
|
void |
StyledMapRenderer.drawArea(Way w,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
java.lang.Float extentThreshold,
boolean disabled,
TextLabel text)
Draws an area defined by a way.
|
private void |
StyledMapRenderer.drawAreaText(OsmPrimitive osm,
TextLabel text,
java.awt.Shape area) |
void |
StyledMapRenderer.drawTextOnPath(Way way,
TextLabel text)
Draws a text along a given way.
|
Modifier and Type | Field and Description |
---|---|
private TextLabel |
LineTextElement.text |
TextLabel |
BoxTextElement.text
The text this element should display.
|
TextLabel |
AreaElement.text
The text that should be written on this area.
|
Modifier and Type | Method and Description |
---|---|
static TextLabel |
TextLabel.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 |
---|
AreaElement(Cascade c,
java.awt.Color color,
MapImage fillImage,
java.lang.Float extent,
java.lang.Float extentThreshold,
TextLabel text) |
BoxTextElement(Cascade c,
TextLabel text,
BoxTextElement.BoxProvider boxProvider,
java.awt.Rectangle box,
BoxTextElement.HorizontalTextAlignment hAlign,
BoxTextElement.VerticalTextAlignment vAlign)
Create a new
BoxTextElement |
LineTextElement(Cascade c,
TextLabel text) |
TextLabel(TextLabel other)
Copy constructor
|