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 voidStyledMapRenderer. drawAreaIcon(IPrimitive osm, MapImage img, boolean disabled, boolean selected, boolean member, double theta, PositionForAreaStrategy iconPosition)Draw the icon for a given area.voidStyledMapRenderer. 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 PositionForAreaStrategyAreaIconElement. iconPositionThe position of the icon inside the area.private PositionForAreaStrategyTextElement. labelPositionStrategyThe position strategy for this text label.Methods in org.openstreetmap.josm.gui.mappaint.styleelement that return PositionForAreaStrategy Modifier and Type Method Description PositionForAreaStrategyTextElement. 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 classCompletelyInsideAreaStrategyPlaces the label / icon so that it is completely inside the area.classOnLineStrategyPlaces the label onto the line.classPartiallyInsideAreaStrategyA 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 PositionForAreaStrategyPositionForAreaStrategy. forKeyword(Keyword keyword)Gets a strategy for the given keyword.static PositionForAreaStrategyPositionForAreaStrategy. forKeyword(Keyword keyword, PositionForAreaStrategy defaultStrategy)Gets a strategy for the given keyword.PositionForAreaStrategyCompletelyInsideAreaStrategy. withAddedOffset(java.awt.geom.Point2D addToOffset)PositionForAreaStrategyOnLineStrategy. withAddedOffset(java.awt.geom.Point2D addToOffset)PositionForAreaStrategyPartiallyInsideAreaStrategy. withAddedOffset(java.awt.geom.Point2D addToOffset)PositionForAreaStrategyPositionForAreaStrategy. withAddedOffset(java.awt.geom.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 PositionForAreaStrategyPositionForAreaStrategy. forKeyword(Keyword keyword, PositionForAreaStrategy defaultStrategy)Gets a strategy for the given keyword.
-