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.
|
org.openstreetmap.josm.gui.mappaint.styleelement.placement |
Label placement strategy for map paint styles.
|
Modifier and Type | Method and Description |
---|---|
void |
StyledMapRenderer.drawAreaIcon(IPrimitive osm,
MapImage img,
boolean disabled,
boolean selected,
boolean member,
double theta,
PositionForAreaStrategy iconPosition)
Draw the icon for a given area.
|
void |
StyledMapRenderer.drawText(IPrimitive osm,
TextLabel text,
PositionForAreaStrategy labelPositionStrategy)
Draws a text for the given primitive
|
Modifier and Type | Field and Description |
---|---|
private PositionForAreaStrategy |
AreaIconElement.iconPosition
The position of the icon inside the area.
|
private PositionForAreaStrategy |
TextElement.labelPositionStrategy
The position strategy for this text label.
|
Modifier and Type | Method and Description |
---|---|
PositionForAreaStrategy |
TextElement.getLabelPositionStrategy()
Gets the strategy that defines where to place the label.
|
Constructor and Description |
---|
AreaIconElement(Cascade c,
MapImage iconImage,
RotationAngle iconImageAngle,
PositionForAreaStrategy iconPosition) |
TextElement(Cascade c,
TextLabel text,
PositionForAreaStrategy labelPositionStrategy)
Create a new way/area text element definition
|
Modifier and Type | Class and Description |
---|---|
class |
CompletelyInsideAreaStrategy
Places the label / icon so that it is completely inside the area.
|
class |
OnLineStrategy
Places the label onto the line.
|
class |
PartiallyInsideAreaStrategy
A strategy that places the label / icon so that is is on the area.
|
Modifier and Type | Method and Description |
---|---|
static PositionForAreaStrategy |
PositionForAreaStrategy.forKeyword(Keyword keyword)
Gets a strategy for the given keyword.
|
static PositionForAreaStrategy |
PositionForAreaStrategy.forKeyword(Keyword keyword,
PositionForAreaStrategy defaultStrategy)
Gets a strategy for the given keyword.
|
PositionForAreaStrategy |
OnLineStrategy.withAddedOffset(java.awt.geom.Point2D addToOffset) |
PositionForAreaStrategy |
CompletelyInsideAreaStrategy.withAddedOffset(java.awt.geom.Point2D addToOffset) |
PositionForAreaStrategy |
PartiallyInsideAreaStrategy.withAddedOffset(java.awt.geom.Point2D addToOffset) |
PositionForAreaStrategy |
PositionForAreaStrategy.withAddedOffset(java.awt.geom.Point2D addToOffset)
Create a new instance of the same strategy adding a offset
|
Modifier and Type | Method and Description |
---|---|
static PositionForAreaStrategy |
PositionForAreaStrategy.forKeyword(Keyword keyword,
PositionForAreaStrategy defaultStrategy)
Gets a strategy for the given keyword.
|