Uses of Interface
org.openstreetmap.josm.gui.mappaint.styleelement.placement.PositionForAreaStrategy
Packages that use PositionForAreaStrategy
Package
Description
Provides the classes for painting (rendering) OSM primitives on the map.
Style elements defining how a map paint style is rendered.
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 PositionForAreaStrategyModifier and TypeMethodDescriptionvoidStyledMapRenderer.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 PositionForAreaStrategyModifier and TypeFieldDescriptionprivate final PositionForAreaStrategyAreaIconElement.iconPositionThe position of the icon inside the area.private final PositionForAreaStrategyTextElement.labelPositionStrategyThe position strategy for this text label.Methods in org.openstreetmap.josm.gui.mappaint.styleelement that return PositionForAreaStrategyModifier and TypeMethodDescriptionTextElement.getLabelPositionStrategy()Gets the strategy that defines where to place the label.Constructors in org.openstreetmap.josm.gui.mappaint.styleelement with parameters of type PositionForAreaStrategyModifierConstructorDescriptionprotectedAreaIconElement(Cascade c, MapImage iconImage, RotationAngle iconImageAngle, PositionForAreaStrategy iconPosition) protectedTextElement(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 PositionForAreaStrategyModifier and TypeClassDescriptionclassPlaces the label / icon so that it is completely inside the area.classPlaces the label onto the line.final classA strategy that places the label / icon so that is is on the area.Methods in org.openstreetmap.josm.gui.mappaint.styleelement.placement that return PositionForAreaStrategyModifier and TypeMethodDescriptionstatic 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.CompletelyInsideAreaStrategy.withAddedOffset(Point2D addToOffset) OnLineStrategy.withAddedOffset(Point2D addToOffset) PartiallyInsideAreaStrategy.withAddedOffset(Point2D addToOffset) 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 PositionForAreaStrategyModifier and TypeMethodDescriptionstatic PositionForAreaStrategyPositionForAreaStrategy.forKeyword(Keyword keyword, PositionForAreaStrategy defaultStrategy) Gets a strategy for the given keyword.