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, supportsGlyphVectorclone, finalize, getClass, notify, notifyAll, wait, wait, waitforKeyword, forKeyword, generateGlyphVectorspublic static final PartiallyInsideAreaStrategy INSTANCE
private PartiallyInsideAreaStrategy(double offsetX, double offsetY)
public MapViewPositionAndRotation findLabelPlacement(MapViewPath path, java.awt.geom.Rectangle2D nb)
PositionForAreaStrategyfindLabelPlacement in interface PositionForAreaStrategyfindLabelPlacement in class CompletelyInsideAreaStrategypath - 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)
PositionForAreaStrategywithAddedOffset in interface PositionForAreaStrategywithAddedOffset in class CompletelyInsideAreaStrategyaddToOffset - The offset to addpublic java.lang.String toString()
toString in class CompletelyInsideAreaStrategy