Package | Description |
---|---|
org.eclipse.gef4.fx.anchors |
This package provides a visual anchor abstraction (
IAnchor ), a related abstract base
implementation (AbstractAnchor ), as
well as concrete anchor implementations (
StaticAnchor ,
DynamicAnchor ) to manage dynamic
positioning of visuals in dependence of others. |
org.eclipse.gef4.fx.nodes |
This package provides:
an adaptation of an
IGeometry to
Node : GeometryNode
a connection abstraction that is based on
IAnchor :
Connection
a visual to display an image which is overlayed by another image on mouse
hover: HoverOverlayImageView
a visual providing a scrollable infinite canvas with a background grid:
InfiniteCanvas
|
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ReadOnlyMapProperty<AnchorKey,DynamicAnchor.IComputationStrategy> |
DynamicAnchor.computationStrategyProperty()
Returns a
ReadOnlyMapProperty that stores the individual
DynamicAnchor.IComputationStrategy for each AnchorKey . |
protected java.util.Map<javafx.scene.Node,java.util.Set<AnchorKey>> |
AbstractAnchor.getKeys()
|
javafx.beans.property.ReadOnlyMapProperty<AnchorKey,Point> |
IAnchor.positionProperty()
Provides a read-only (map) property with positions (in local coordinates
of the anchored
Node s) for all attached AnchorKey s. |
javafx.beans.property.ReadOnlyMapProperty<AnchorKey,Point> |
AbstractAnchor.positionProperty() |
javafx.beans.property.ReadOnlyMapProperty<AnchorKey,Point> |
DynamicAnchor.referencePointProperty()
Provides a
ReadOnlyMapProperty that stores positions (in the
local coordinate system of the anchored Node ) for all attached
AnchorKey s. |
Modifier and Type | Method and Description |
---|---|
void |
IAnchor.attach(AnchorKey key,
IAdaptable info)
|
void |
AbstractAnchor.attach(AnchorKey key,
IAdaptable info) |
protected Point |
StaticAnchor.computePosition(AnchorKey key) |
protected Point |
DynamicAnchor.computePosition(AnchorKey key)
Recomputes the position for the given attached
AnchorKey . |
protected abstract Point |
AbstractAnchor.computePosition(AnchorKey key)
Computes and returns the position for the given
AnchorKey . |
void |
IAnchor.detach(AnchorKey key,
IAdaptable info)
|
void |
AbstractAnchor.detach(AnchorKey key,
IAdaptable info) |
DynamicAnchor.IComputationStrategy |
DynamicAnchor.getComputationStrategy(AnchorKey key)
Returns the
DynamicAnchor.IComputationStrategy that is used by this
DynamicAnchor to compute the position for the given
AnchorKey . |
Point |
IAnchor.getPosition(AnchorKey key)
Provides a position for the given
AnchorKey . |
Point |
AbstractAnchor.getPosition(AnchorKey key) |
Point |
DynamicAnchor.getReferencePoint(AnchorKey key)
|
boolean |
IAnchor.isAttached(AnchorKey key)
|
boolean |
AbstractAnchor.isAttached(AnchorKey key) |
void |
DynamicAnchor.removeComputationStrategy(AnchorKey key)
Removes the
DynamicAnchor.IComputationStrategy that is currently registered for
the given AnchorKey . |
void |
DynamicAnchor.setComputationStrategy(AnchorKey key,
DynamicAnchor.IComputationStrategy computationStrategy)
Sets the given
DynamicAnchor.IComputationStrategy to be used by this
DynamicAnchor to compute the position for the given
AnchorKey . |
protected void |
AbstractAnchor.updatePosition(AnchorKey key)
Updates the position for the given
AnchorKey , i.e. |
Modifier and Type | Method and Description |
---|---|
AnchorKey |
Connection.getAnchorKey(int anchorIndex)
Returns the
AnchorKey for the given anchor index, i.e. the
reverse of Connection.getAnchorIndex(AnchorKey) . |
AnchorKey |
Connection.getControlAnchorKey(int index)
Returns the
AnchorKey for the given control anchor index. |
AnchorKey |
Connection.getEndAnchorKey()
Returns the end
AnchorKey for this Connection . |
AnchorKey |
Connection.getStartAnchorKey()
Returns the start
AnchorKey for this Connection . |
Modifier and Type | Method and Description |
---|---|
protected javafx.beans.property.ReadOnlyMapProperty<AnchorKey,IAnchor> |
Connection.anchorsProperty()
Returns the
ReadOnlyMapProperty which stores the
AnchorKey s and corresponding IAnchor s which determine the
start point, control points, and end point of this Connection . |
protected javafx.collections.MapChangeListener<? super AnchorKey,? super Point> |
Connection.createPCL(AnchorKey anchorKey)
Creates a position change listener (PCL) which
refreshes this Connection upon anchor position changes
corresponding to the given AnchorKey . |
Modifier and Type | Method and Description |
---|---|
protected void |
Connection.addAnchor(IAnchor anchor,
AnchorKey anchorKey,
int controlIndex)
|
protected javafx.collections.MapChangeListener<? super AnchorKey,? super Point> |
Connection.createPCL(AnchorKey anchorKey)
Creates a position change listener (PCL) which
refreshes this Connection upon anchor position changes
corresponding to the given AnchorKey . |
int |
Connection.getAnchorIndex(AnchorKey anchorKey)
Returns the anchor index for the given
AnchorKey which is:
0 for the start anchor key
Connection.getAnchors() .size() - 1 for the
end anchor key
Connection.getControlAnchorIndex(AnchorKey) + 1 for
control point anchor keys
|
int |
Connection.getControlAnchorIndex(AnchorKey key)
Returns the control anchor index for the given
AnchorKey , i.e. |
protected void |
Connection.removeAnchor(AnchorKey anchorKey,
IAnchor anchor)
|
Copyright (c) 2014 itemis AG and others. All rights reserved.