public final class PartiallyInsideAreaStrategy extends CompletelyInsideAreaStrategy
Modifier and Type | Field and Description |
---|---|
static PartiallyInsideAreaStrategy |
INSTANCE
An instance of this class.
|
offsetX, offsetY
Modifier | Constructor and Description |
---|---|
private |
PartiallyInsideAreaStrategy(double offsetX,
double offsetY) |
Modifier and Type | Method and Description |
---|---|
MapViewPositionAndRotation |
findLabelPlacement(MapViewPath path,
java.awt.geom.Rectangle2D nb)
Finds the correct position of a label / icon inside the area.
|
java.lang.String |
toString() |
PositionForAreaStrategy |
withAddedOffset(java.awt.geom.Point2D addToOffset)
Create a new instance of the same strategy adding a offset
|
equals, hashCode, supportsGlyphVector
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forKeyword, forKeyword, generateGlyphVectors
public static final PartiallyInsideAreaStrategy INSTANCE
private PartiallyInsideAreaStrategy(double offsetX, double offsetY)
public MapViewPositionAndRotation findLabelPlacement(MapViewPath path, java.awt.geom.Rectangle2D nb)
PositionForAreaStrategy
findLabelPlacement
in interface PositionForAreaStrategy
findLabelPlacement
in class CompletelyInsideAreaStrategy
path
- The area to search innb
- The bounding box of the thing we are searching a place for.null
if none was found.public PositionForAreaStrategy withAddedOffset(java.awt.geom.Point2D addToOffset)
PositionForAreaStrategy
withAddedOffset
in interface PositionForAreaStrategy
withAddedOffset
in class CompletelyInsideAreaStrategy
addToOffset
- The offset to addpublic java.lang.String toString()
toString
in class CompletelyInsideAreaStrategy