|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.anchor.AnchorFactory
public final class AnchorFactory
This is a factory of all built-in anchor implementations. Anchors are designed to be shared by multiple instances of proxy anchors and connection widgets.
Nested Class Summary | |
---|---|
static class |
AnchorFactory.DirectionalAnchorKind
Represents possible orthogonal directions used by directional anchor. |
Method Summary | |
---|---|
static Anchor |
createCenterAnchor(Widget widget)
Creates an anchor with always computes a point in the center of specified widget. |
static Anchor |
createCircularAnchor(Widget widget,
int radius)
Creates an anchor which computes a point as the one on a circle around specified widget. |
static Anchor |
createDirectionalAnchor(Widget widget,
AnchorFactory.DirectionalAnchorKind kind)
Creates a directional anchor with computes a point as the one in the middle of the boundary side of specified widget. |
static Anchor |
createDirectionalAnchor(Widget widget,
AnchorFactory.DirectionalAnchorKind kind,
int gap)
Creates a directional anchor with computes a point as the one in the middle of the boundary side of specified widget. |
static Anchor |
createFixedAnchor(Point location)
Creates a anchor with fixed scene location. |
static Anchor |
createFreeRectangularAnchor(Widget widget,
boolean includeBorders)
Creates a free rectangular anchor. |
static Anchor |
createProxyAnchor(StateModel model,
Anchor... anchors)
Creates a proxy anchor with delegates the computation one of specified anchors based on state in a model. |
static Anchor |
createRectangularAnchor(Widget widget)
Creates an anchor which computes a point as the one on the boundary of spacified widget. |
static Anchor |
createRectangularAnchor(Widget widget,
boolean includeBorders)
Creates an anchor which computes a point as the one on the boundary of spacified widget. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Anchor createFixedAnchor(Point location)
location
- the scene location
public static Anchor createProxyAnchor(StateModel model, Anchor... anchors)
model
- the model with stateanchors
- the slave anchors
public static Anchor createCenterAnchor(Widget widget)
widget
- the widget
public static Anchor createCircularAnchor(Widget widget, int radius)
widget
- the widgetradius
- the radius of the circle
public static Anchor createRectangularAnchor(Widget widget)
widget
- the widget
public static Anchor createRectangularAnchor(Widget widget, boolean includeBorders)
widget
- the widgetincludeBorders
- if true, then the boundary is widget bounds;
if null then the boundary is widget client-area (bounds without borders)
public static Anchor createDirectionalAnchor(Widget widget, AnchorFactory.DirectionalAnchorKind kind)
widget
- the widgetkind
- the kind of directional anchor
public static Anchor createDirectionalAnchor(Widget widget, AnchorFactory.DirectionalAnchorKind kind, int gap)
widget
- the widgetkind
- the kind of directional anchorgap
- the gap between the widget and the anchor location
public static Anchor createFreeRectangularAnchor(Widget widget, boolean includeBorders)
widget
- the widgetincludeBorders
- true if borders has to be included in the boundary
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |