Uses of Interface
org.openstreetmap.josm.gui.mappaint.styleelement.placement.PositionForAreaStrategy
-
Packages that use PositionForAreaStrategy 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. -
-
Uses of PositionForAreaStrategy in org.openstreetmap.josm.data.osm.visitor.paint
Methods in org.openstreetmap.josm.data.osm.visitor.paint with parameters of type PositionForAreaStrategy Modifier and Type Method 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 -
Uses of PositionForAreaStrategy in org.openstreetmap.josm.gui.mappaint.styleelement
Fields in org.openstreetmap.josm.gui.mappaint.styleelement declared as PositionForAreaStrategy Modifier and Type Field Description private PositionForAreaStrategy
AreaIconElement. iconPosition
The position of the icon inside the area.private PositionForAreaStrategy
TextElement. labelPositionStrategy
The position strategy for this text label.Methods in org.openstreetmap.josm.gui.mappaint.styleelement that return PositionForAreaStrategy Modifier and Type Method Description PositionForAreaStrategy
TextElement. getLabelPositionStrategy()
Gets the strategy that defines where to place the label.Constructors in org.openstreetmap.josm.gui.mappaint.styleelement with parameters of type PositionForAreaStrategy Constructor 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 -
Uses of PositionForAreaStrategy in org.openstreetmap.josm.gui.mappaint.styleelement.placement
Classes in org.openstreetmap.josm.gui.mappaint.styleelement.placement that implement PositionForAreaStrategy Modifier and Type Class 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.Methods in org.openstreetmap.josm.gui.mappaint.styleelement.placement that return PositionForAreaStrategy Modifier and Type Method 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
CompletelyInsideAreaStrategy. withAddedOffset(Point2D addToOffset)
PositionForAreaStrategy
OnLineStrategy. withAddedOffset(Point2D addToOffset)
PositionForAreaStrategy
PartiallyInsideAreaStrategy. withAddedOffset(Point2D addToOffset)
PositionForAreaStrategy
PositionForAreaStrategy. withAddedOffset(Point2D addToOffset)
Create a new instance of the same strategy adding a offsetMethods in org.openstreetmap.josm.gui.mappaint.styleelement.placement with parameters of type PositionForAreaStrategy Modifier and Type Method Description static PositionForAreaStrategy
PositionForAreaStrategy. forKeyword(Keyword keyword, PositionForAreaStrategy defaultStrategy)
Gets a strategy for the given keyword.
-