public abstract static class DynamicAnchor.AbstractComputationStrategy extends java.lang.Object implements DynamicAnchor.IComputationStrategy
computation
strategies
that are based on the outline of the anchorage reference
geometry.Constructor and Description |
---|
AbstractComputationStrategy() |
Modifier and Type | Method and Description |
---|---|
protected IGeometry |
getAnchorageReferenceGeometryInLocal(javafx.scene.Node anchorage)
Determines the anchorage reference geometry based on the given
anchorage visual.
|
protected IGeometry |
getAnchorageReferenceGeometryInScene(javafx.scene.Node anchorage)
Returns the anchorage reference geometry within the scene coordinate
system.
|
static IGeometry |
getOutlineGeometry(javafx.scene.Node node)
Creates a geometry representing the outline of the given
Node
. |
static java.util.List<ICurve> |
getOutlineSegments(IGeometry geometry)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computePositionInScene
public static IGeometry getOutlineGeometry(javafx.scene.Node node)
Node
.node
- The node to infer an outline geometry for.IGeometry
from which the outline may be retrieved.protected IGeometry getAnchorageReferenceGeometryInLocal(javafx.scene.Node anchorage)
GeometryNode
, the corresponding
geometry is returned, in case of an IShape
resized to include
the stroke. Otherwise, a Rectangle
representing the
layout-bounds of the visual is returned.anchorage
- The anchorage visual.protected IGeometry getAnchorageReferenceGeometryInScene(javafx.scene.Node anchorage)
anchorage
- The anchorage visual.Copyright (c) 2014 itemis AG and others. All rights reserved.