public class RelativeDecoratorLocator extends RelativeLocator
Strategy
RelativeDecoratorLocator
encapsulates a strategy for locating a
point on a decorator.
Component: DecoratedFigure
; Strategy: RelativeDecoratorLocator
.
isTransform, relativeX, relativeY
Constructor and Description |
---|
RelativeDecoratorLocator() |
RelativeDecoratorLocator(double relativeX,
double relativeY)
Creates a new instance.
|
RelativeDecoratorLocator(double relativeX,
double relativeY,
boolean isQuadratic) |
Modifier and Type | Method and Description |
---|---|
static Locator |
center()
Center.
|
static Locator |
east() |
java.awt.geom.Point2D.Double |
locate(Figure owner)
Locates a position on the provided figure.
|
static Locator |
north()
North.
|
static Locator |
northEast()
North east.
|
static Locator |
northWest()
North west.
|
static Locator |
south()
South.
|
static Locator |
southEast()
South east.
|
static Locator |
southWest()
South west.
|
static Locator |
west()
West.
|
center, east, equals, hashCode, north, northEast, northWest, read, south, southEast, southWest, west, write
locate
public RelativeDecoratorLocator()
public RelativeDecoratorLocator(double relativeX, double relativeY)
public RelativeDecoratorLocator(double relativeX, double relativeY, boolean isQuadratic)
public java.awt.geom.Point2D.Double locate(Figure owner)
Locator
locate
in interface Locator
locate
in class RelativeLocator
public static Locator east()
public static Locator north()
public static Locator west()
public static Locator northEast()
public static Locator northWest()
public static Locator south()
public static Locator southEast()
public static Locator southWest()
public static Locator center()