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(IPrimitive osm,
TextLabel text,
java.lang.String name,
java.awt.geom.Rectangle2D nb,
MapViewPositionAndRotation center) |
private void |
StyledMapRenderer.displayText(java.lang.Runnable fill,
java.util.function.Supplier<java.awt.Shape> outline,
boolean disabled,
TextLabel text)
Displays text at specified position including its halo, if applicable.
|
void |
StyledMapRenderer.drawText(IPrimitive osm,
TextLabel text,
PositionForAreaStrategy labelPositionStrategy)
Draws a text for the given primitive
|
Modifier and Type | Field and Description |
---|---|
TextLabel |
BoxTextElement.text
The text this element should display.
|
private TextLabel |
TextElement.text |
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 |
---|
BoxTextElement(Cascade c,
TextLabel text,
BoxTextElement.BoxProvider boxProvider,
int offsetX,
int offsetY,
BoxTextElement.HorizontalTextAlignment hAlign,
BoxTextElement.VerticalTextAlignment vAlign)
Create a new
BoxTextElement |
TextElement(Cascade c,
TextLabel text,
PositionForAreaStrategy labelPositionStrategy)
Create a new way/area text element definition
|
TextLabel(TextLabel other)
Copy constructor
|