Package | Description |
---|---|
com.yworks.yfiles.geometry |
Contains definitions, default implementations, structs and support classes that deal with the representation of geometric data.
|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
com.yworks.yfiles.graph.labelmodels |
Contains interfaces and default implementations for label layout models.
|
com.yworks.yfiles.graph.portlocationmodels |
Contains interfaces and default implementations for port location models.
|
com.yworks.yfiles.graph.styles |
Contains interfaces and default implementations for graph element styles.
|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Field and Description |
---|---|
static PointD |
PointD.ORIGIN
|
Modifier and Type | Method and Description |
---|---|
static PointD |
PointD.add(PointD p1,
PointD p2)
Implements the vector addition operator.
|
PointD |
PointD.clone() |
static PointD |
PointD.convertFrom(MutablePoint p)
Performs an explicit conversion from
MutablePoint to PointD . |
static PointD |
GeomUtilities.findEllipseLineIntersection(RectD bounds,
PointD inner,
PointD outer)
Returns the ellipse/line intersection point for the given point pair.
|
PointD |
RectD.findLineIntersection(PointD inner,
PointD outer)
Finds the intersection between a rectangle and a line.
|
default PointD |
IOrientedRectangle.getAnchorLocation()
Gets the anchor location of the oriented rectangle as a
PointD struct. |
PointD |
RectD.getBottomLeft()
Gets the coordinates of the bottom left corner of the rectangle.
|
default PointD |
IRectangle.getBottomLeft()
Gets the coordinates of the bottom left corner of the rectangle as a
PointD . |
PointD |
RectD.getBottomRight()
Gets the coordinates of the bottom right corner of the rectangle.
|
default PointD |
IRectangle.getBottomRight()
Gets the coordinates of the bottom right corner of the rectangle as a
PointD . |
PointD |
RectD.getCenter()
|
PointD |
MutableRectangle.getCenter()
Gets the coordinates of the center of the rectangle as a
PointD . |
default PointD |
IRectangle.getCenter()
Gets the coordinates of the center of the rectangle as a
PointD . |
default PointD |
IOrientedRectangle.getCenter()
Gets the current center of the oriented rectangle as a
PointD struct. |
PointD |
PointD.getConstrained(RectD rectangle)
Create a constrained copy of this instance that lies within the given non-empty
rectangle . |
PointD |
GeneralPath.PathCursor.getCurrentEndPoint()
Gets the current end point of the last path element.
|
PointD |
GeneralPath.getLastCoordinate()
Gets the last coordinates of the last path element.
|
PointD |
PointD.getNormalized()
Gets the normalized version of this vector.
|
PointD |
Tangent.getPoint()
Gets the point of tangency.
|
PointD |
GeneralPath.getPoint(double ratio)
Gets a point on this path instance at the given ratio.
|
PointD |
PointD.getProjectionOnLine(PointD anchor,
PointD direction)
Calculates the projection of this point onto a line.
|
PointD |
PointD.getProjectionOnRay(PointD rayStart,
PointD direction)
Calculates the projection of this point onto a ray.
|
PointD |
PointD.getProjectionOnSegment(PointD start,
PointD end)
Calculates the projection of this point onto a segment.
|
PointD |
RectD.getTopLeft()
Gets the coordinates of the top left corner of the rectangle.
|
default PointD |
IRectangle.getTopLeft()
Gets the coordinates of the top left corner of the rectangle as a
PointD . |
default PointD |
IOrientedRectangle.getTopLeftLocation()
Gets the location of the top left corner of the oriented rectangle as a
PointD . |
PointD |
RectD.getTopRight()
Gets the coordinates of the top right corner of the rectangle.
|
default PointD |
IRectangle.getTopRight()
Gets the coordinates of the top right corner of the rectangle as a
PointD . |
default PointD |
IOrientedRectangle.getUp()
Gets the up vector of the oriented rectangle as a
PointD struct. |
PointD |
Tangent.getVector()
Gets the directional vector.
|
static PointD |
PointD.multiply(Matrix2D matrix,
PointD vector)
Implements the vector transformation by calling
Matrix2D.transform(PointD) . |
static PointD |
PointD.multiply(PointD point,
double factor)
Implements scalar multiplication.
|
static PointD |
PointD.subtract(PointD p1,
PointD p2)
Implements the vector subtraction operator.
|
PointD |
RectD.toPointD() |
PointD |
PointD.toPointD() |
default PointD |
IPoint.toPointD()
Copies the current values of the coordinates of the point to a
PointD struct. |
PointD |
Matrix2D.transform(PointD point)
Transforms the given coordinate.
|
Modifier and Type | Method and Description |
---|---|
static PointD |
PointD.add(PointD p1,
PointD p2)
Implements the vector addition operator.
|
static RectD |
RectD.add(RectD rectangle,
PointD point)
Returns the union of the given rectangle and the given point.
|
boolean |
GeneralPath.areaContains(PointD point)
Checks whether the point lies inside the area that is described by this path instance.
|
boolean |
GeneralPath.areaContains(PointD point,
double eps)
Checks whether the point lies inside the area that is described by this path instance.
|
default boolean |
IRectangle.contains(PointD point)
Determines whether the given rectangle contains the provided point.
|
boolean |
RectD.contains(PointD point,
double eps)
Determines whether this rectangle contains the specified point with respect to a given epsilon.
|
default boolean |
IOrientedRectangle.contains(PointD point,
double eps)
Determines whether the given oriented rectangle contains the provided point, using an epsilon value.
|
static MutablePoint |
PointD.convertToMutablePoint(PointD point)
Performs an implicit conversion from
PointD to MutablePoint . |
void |
GeneralPath.cubicTo(PointD c1,
PointD c2,
PointD end)
Appends a
cubic Bézier curve to the path elements. |
double |
PointD.distanceTo(PointD other)
Calculates the Euclidean distance to the given point.
|
double |
PointD.distanceToSegment(PointD start,
PointD end)
Determines the distance between this point and a line segment.
|
static boolean |
GeomUtilities.ellipseContains(RectD bounds,
PointD point,
double eps)
Checks whether an ellipse contains the given point.
|
static boolean |
PointD.equals(PointD p1,
PointD p2)
|
boolean |
PointD.equalsEps(PointD other,
double eps)
Determines whether the two given points have the same coordinates with respect to a certain given
eps . |
static PointD |
GeomUtilities.findEllipseLineIntersection(RectD bounds,
PointD inner,
PointD outer)
Returns the ellipse/line intersection point for the given point pair.
|
PointD |
RectD.findLineIntersection(PointD inner,
PointD outer)
Finds the intersection between a rectangle and a line.
|
double |
GeneralPath.findLineIntersection(PointD start,
PointD end)
Finds an intersection point between a line and this
GeneralPath . |
double |
GeneralPath.findLineIntersection(PointD start,
PointD end,
double eps)
Finds an intersection point between a line and this
GeneralPath . |
double |
GeneralPath.findRayIntersection(PointD anchor,
PointD direction)
Finds the first intersection of a ray with this
GeneralPath using a given epsilon for flattening Bézier curves
contained in the path. |
double |
GeneralPath.findRayIntersection(PointD anchor,
PointD direction,
double eps)
Finds the first intersection of a ray with this
GeneralPath using a given epsilon for flattening Bézier curves
contained in the path. |
static double |
GeomUtilities.findRayIntersection(PointD start,
PointD end,
PointD anchor,
PointD rayDirection)
Finds the intersection between a line segment and an infinite ray.
|
static RectD |
RectD.fromCenter(PointD center,
SizeD size)
Creates a new instance given the center of the rectangle and its size.
|
PointD |
PointD.getProjectionOnLine(PointD anchor,
PointD direction)
Calculates the projection of this point onto a line.
|
PointD |
PointD.getProjectionOnRay(PointD rayStart,
PointD direction)
Calculates the projection of this point onto a ray.
|
PointD |
PointD.getProjectionOnSegment(PointD start,
PointD end)
Calculates the projection of this point onto a segment.
|
RectD |
RectD.getTranslated(PointD delta)
|
boolean |
PointD.hits(PointD other,
double hitTestRadius)
Determines if the point lies close to this point given an epsilon.
|
default boolean |
IOrientedRectangle.hits(PointD location,
double eps)
Determines whether the oriented rectangle contains the provided point, using an epsilon value.
|
boolean |
PointD.hitsLineSegment(PointD start,
PointD end,
double radius)
Determines whether this point hits the line segment with respect to a given
radius . |
boolean |
RectD.intersectsLine(PointD start,
PointD end)
Determines whether this rectangle intersects a line.
|
void |
GeneralPath.lineTo(PointD point)
Appends a
PathType.LINE_TO operation to the path elements. |
void |
OrientedRectangle.moveBy(PointD delta)
Moves this rectangle by applying the offset to the
Anchor . |
void |
MutableRectangle.moveBy(PointD delta)
Moves this rectangle by applying the offset to the
Location . |
void |
MutablePoint.moveBy(PointD delta)
Moves this instance by adding the provided offsets to the coordinates of this point.
|
void |
GeneralPath.moveTo(PointD point)
Appends a
PathType.MOVE_TO operation to the path elements. |
static PointD |
PointD.multiply(Matrix2D matrix,
PointD vector)
Implements the vector transformation by calling
Matrix2D.transform(PointD) . |
static PointD |
PointD.multiply(PointD point,
double factor)
Implements scalar multiplication.
|
boolean |
GeneralPath.pathContains(PointD point,
double eps)
Tests whether the line of the path is hit at the given point using an epsilon for fuzzy hit testing.
|
void |
GeneralPath.quadTo(PointD center,
PointD point)
Appends a
quadratic Bézier curve to the path elements. |
default void |
IMutablePoint.relocate(PointD location)
Sets the coordinates of the point to the given values.
|
void |
Matrix2D.rotate(double theta,
PointD center)
Prepends a rotation operation to this matrix around the specified rotation center.
|
void |
Matrix2D.rotate(double theta,
PointD center,
MatrixOrder order)
Prepends or appends a rotation operation to this matrix around the specified rotation center.
|
double |
PointD.scalarProduct(PointD other)
Calculates the scalar product of this and the given vector.
|
static double |
PointD.scalarProduct(PointD point1,
PointD point2)
Calculates the scalar product of the two given points.
|
default void |
IMutableOrientedRectangle.setAnchor(PointD location)
Sets the anchor vector of the oriented rectangle to the given value.
|
default void |
IMutableRectangle.setCenter(PointD center)
Sets the center of the rectangle to the provided value.
|
default void |
IMutableOrientedRectangle.setCenter(PointD center)
Sets the center of the oriented rectangle to the given value.
|
default void |
IMutableOrientedRectangle.setUpVector(PointD up)
Sets up vector of the oriented rectangle to the given value.
|
static PointD |
PointD.subtract(PointD p1,
PointD p2)
Implements the vector subtraction operator.
|
PointD |
Matrix2D.transform(PointD point)
Transforms the given coordinate.
|
void |
Matrix2D.translate(PointD delta)
Prepends a translation to this instance.
|
void |
Matrix2D.translate(PointD delta,
MatrixOrder order)
Appends or Prepends a translation to this instance.
|
Constructor and Description |
---|
MutableRectangle(PointD location,
SizeD size)
Creates a new instance using the provided values to initialize the position and size.
|
RectD(PointD p1,
PointD p2)
Initializes a new instance using two point to define the bounds.
|
RectD(PointD location,
SizeD size)
|
Tangent(PointD point,
PointD vector)
|
Modifier and Type | Method and Description |
---|---|
default PointD |
IPort.getLocation()
Gets a snapshot of the current location of the port.
|
PointD |
FoldingBendState.getLocation()
The location of the bend.
|
PointD |
GraphClipboard.getPasteDelta()
Gets a vector that will be used to move nodes and bends by after they have been pasted to the target graph.
|
PointD |
Table.getRelativeLocation() |
PointD |
ITable.getRelativeLocation()
Gets the relative location of the upper left corner of the table.
|
Modifier and Type | Method and Description |
---|---|
default IBend |
IGraph.addBend(IEdge edge,
PointD location)
Adds a bend at the given index to the given edge using the coordinates provided.
|
IBend |
IGraph.addBend(IEdge edge,
PointD location,
int index)
Adds a bend at the given index to the given edge using the coordinates provided.
|
IBend |
DefaultGraph.addBend(IEdge edge,
PointD location,
int index) |
IBend |
AbstractGraphWrapper.addBend(IEdge edge,
PointD location,
int index) |
protected IBend |
GraphCopier.addBend(IGraph sourceGraph,
IGraph targetGraph,
IEdge targetEdge,
IBend sourceBend,
PointD offset,
int index)
Callback method that adds a bend to the targetEdge in the targetGraph as a copy of the source bend.
|
FoldingBendState |
FoldingEdgeState.addBend(PointD location)
|
FoldingBendState |
FoldingEdgeState.addBend(PointD location,
int index)
|
default IPort |
IGraph.addPort(IPortOwner owner,
PointD location)
Add a port to the given port owner using the absolute coordinates as the new initial position of the port anchor.
|
default IPort |
IGraph.addPort(IPortOwner owner,
PointD location,
IPortStyle style)
Add a port to the given port owner using the absolute coordinates as the new initial position of the port anchor.
|
default IPort |
IGraph.addPort(IPortOwner owner,
PointD location,
IPortStyle style,
Object tag)
Add a port to the given port owner using the absolute coordinates as the new initial position of the port anchor.
|
default IPort |
IGraph.addRelativePort(INode node,
PointD relativeLocation)
Adds a new port to the graph at the node using a location that is relative to the center of the node.
|
void |
GraphCopier.copy(IGraph sourceGraph,
Predicate<IModelItem> filter,
IGraph targetGraph,
INode targetRootNode,
PointD offset,
IElementCopiedCallback elementCopiedCallback)
|
void |
GraphCopier.copy(IGraph sourceGraph,
Predicate<IModelItem> filter,
IGraph targetGraph,
PointD offset,
IElementCopiedCallback elementCopiedCallback)
|
protected INode |
GraphCopier.copyGroupNode(IGraph sourceGraph,
IGraph targetGraph,
INode sourceGroupNode,
INode targetParent,
PointD offset)
Callback method that creates a copy of the
sourceGroupNode in the targetGraph . |
protected INode |
GraphCopier.copyNode(IGraph sourceGraph,
IGraph targetGraph,
INode node,
INode targetParent,
PointD offset)
Callback method that creates a copy of the
node in the targetGraph . |
protected INode |
GraphCopier.copyNode(IGraph sourceGraph,
IGraph targetGraph,
INode node,
PointD offset)
Callback method that creates a copy of the
node in the targetGraph . |
default IPortLocationModelParameter |
IGraph.createDefaultPortLocationParameter(IPortOwner owner,
PointD location)
Creates a location model parameter for a newly created
IPort at the owner that matches the
location . |
default INode |
IGraph.createNode(PointD location)
Creates and returns a node using the specified initial center location and style, as well as the tag.
|
default INode |
IGraph.createNode(PointD location,
INodeStyle style)
Creates and returns a node using the specified initial center location and style, as well as the tag.
|
default INode |
IGraph.createNode(PointD location,
INodeStyle style,
Object tag)
Creates and returns a node using the specified initial center location and style, as well as the tag.
|
default IColumn |
ITable.findColumn(INode node,
PointD location,
Predicate<IStripe> filter)
Convenience method to find a column underneath a certain point.
|
default IRow |
ITable.findRow(INode node,
PointD location,
Predicate<IStripe> filter)
Convenience method to find a row underneath a certain point.
|
static StripeSubregion |
ITable.findStripe(PointD location,
StripeTypes stripeTypes,
StripeSubregionTypes subregionTypes,
CanvasControl canvasControl,
Predicate<StripeSubregion> filter)
Convenience method to find a stripe underneath a certain point.
|
default IEnumerable<IStripe> |
ITable.findStripes(INode node,
PointD location,
StripeTypes stripeTypes,
Predicate<IStripe> filter)
Convenience method to find all stripes underneath a certain point.
|
static IEnumerable<StripeSubregion> |
ITable.findStripes(PointD location,
StripeTypes stripeTypes,
StripeSubregionTypes subregionTypes,
CanvasControl canvas,
Predicate<StripeSubregion> filter)
Used as a callback to find the items underneath a certain point.
|
protected void |
DefaultGraph.onBendLocationChanged(IBend bend,
PointD oldLocation)
Callback that is invoked after a bend location has changed.
|
protected void |
AbstractGraphWrapper.onBendLocationChanged(IBend bend,
PointD oldLocation)
Raises the
BendLocationChanged event. |
void |
IBendLocationChangedHandler.onBendLocationChanged(Object source,
IBend bend,
PointD oldLocation)
Event delegate method that is used in
IGraph 's BendLocationChanged
event. |
void |
IGraph.setBendLocation(IBend bend,
PointD location)
Modifies the location of the given bend.
|
void |
DefaultGraph.setBendLocation(IBend bend,
PointD location)
Modifies the location of the given bend.
|
void |
AbstractGraphWrapper.setBendLocation(IBend bend,
PointD location) |
void |
SimplePort.setLocation(PointD location)
Sets the location of this port.
|
void |
FoldingBendState.setLocation(PointD value)
The location of the bend.
|
default void |
IGraph.setNodeCenter(INode node,
PointD center)
Sets the center of a node to the given world coordinates.
|
void |
GraphClipboard.setPasteDelta(PointD value)
Sets a vector that will be used to move nodes and bends by after they have been pasted to the target graph.
|
default void |
IGraph.setPortLocation(IPort port,
PointD location)
Convenience method that tries to set the absolute coordinates of the given port to the given values.
|
void |
Table.setRelativeLocation(PointD value) |
void |
ITable.setRelativeLocation(PointD value)
Sets the relative location of the upper left corner of the table.
|
default void |
IGraph.setRelativePortLocation(IPort port,
PointD relativeLocation)
|
Modifier and Type | Method and Description |
---|---|
default void |
IGraph.addBends(IEdge edge,
Iterable<PointD> locations)
Adds bends with the given locations to the end of the bend list of the given edge.
|
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
FreeLabelModel.createAbsolute(PointD anchorLocation,
double angle)
Creates a new label model parameter that places the label at the given absolute position using the provided angle.
|
ILabelModelParameter |
FreeNodeLabelModel.createCanonicalParameter(RectD nodeLayout,
IOrientedRectangle labelLayout,
PointD referenceLocation)
Creates a parameter instance that anchors the label to the node at the canonical position with respect to the given
reference point.
|
ILabelModelParameter |
FreeNodeLabelModel.createParameter(PointD layoutRatio,
PointD layoutOffset,
PointD labelRatio,
PointD labelOffset,
double angle)
Creates a parameter instance that anchors the label to the node at a given position.
|
Modifier and Type | Method and Description |
---|---|
PointD |
SegmentRatioPortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter) |
PointD |
IPortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter)
Determines the location of the port for the given parameter.
|
PointD |
GenericPortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter) |
PointD |
FreeNodePortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter) |
PointD |
BendAnchoredPortLocationModel.getLocation(IPort port,
IPortLocationModelParameter locationParameter) |
Modifier and Type | Method and Description |
---|---|
IPortLocationModelParameter |
SegmentRatioPortLocationModel.createParameter(IPortOwner owner,
PointD location) |
IPortLocationModelParameter |
IPortLocationModel.createParameter(IPortOwner owner,
PointD location)
Factory method that creates a parameter for the given port that tries to match the provided location in absolute world
coordinates.
|
IPortLocationModelParameter |
GenericPortLocationModel.createParameter(IPortOwner owner,
PointD location)
Factory method that creates a parameter for the given port that tries to match the provided location in absolute world
coordinates.
|
IPortLocationModelParameter |
FreeNodePortLocationModel.createParameter(IPortOwner owner,
PointD location) |
IPortLocationModelParameter |
BendAnchoredPortLocationModel.createParameter(IPortOwner owner,
PointD location) |
IPortLocationModelParameter |
FreeNodePortLocationModel.createParameter(PointD ratios)
Creates a parameter that uses the given ratios and offsets.
|
IPortLocationModelParameter |
FreeNodePortLocationModel.createParameter(PointD ratios,
PointD offset)
Creates a parameter that uses the given ratios and offsets.
|
Modifier and Type | Method and Description |
---|---|
protected PointD |
TemplatePortStyleRenderer.getCenter()
Gets the center of the port.
|
protected PointD |
DefaultEdgePathCropper.getIntersection(INode node,
IShapeGeometry nodeShapeGeometry,
IEdge edge,
PointD inner,
PointD outer)
Finds the intersection between a node and the edge.
|
protected PointD |
AbstractNodeStyle.getIntersection(INode node,
PointD inner,
PointD outer)
Gets the intersection of a line with the visual representation of the node.
|
PointD |
VoidShapeGeometry.getIntersection(PointD inner,
PointD outer)
This implementation always returns
null . |
PointD |
TemplateNodeStyleRenderer.getIntersection(PointD inner,
PointD outer)
Tries to use the
outline shape to perform the intersection calculation,
otherwise reverts to default (rectangular) behavior. |
PointD |
TableNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
PointD |
ShinyPlateNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
PointD |
ShapeNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
PointD |
PanelNodeStyleRenderer.getIntersection(PointD inner,
PointD outer)
|
PointD |
MemoryImageNodeStyleRenderer.getIntersection(PointD p1,
PointD p2)
Tries to use the
NormalizedOutline to perform the intersection
calculation, otherwise reverts to default (rectangular) behavior. |
PointD |
ImageNodeStyleRenderer.getIntersection(PointD inner,
PointD outer)
Tries to use the
NormalizedOutline to perform the intersection
calculation, otherwise reverts to default (rectangular) behavior. |
PointD |
IShapeGeometry.getIntersection(PointD inner,
PointD outer)
Returns the intersection for the given line with this shape's geometry.
|
PointD |
GeneralPathNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
PointD |
CollapsibleNodeStyleDecoratorRenderer.getIntersection(PointD inner,
PointD outer)
Delegates to the
CollapsibleNodeStyleDecoratorRenderer.getWrappedStyle() . |
PointD |
BevelNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
Modifier and Type | Method and Description |
---|---|
IBoundsProvider |
IArrow.getBoundsProvider(IEdge edge,
boolean atSource,
PointD anchor,
PointD directionVector)
Gets an
IBoundsProvider implementation that can yield this arrow's bounds if painted at the given location using
the given direction for the given edge. |
IBoundsProvider |
Arrow.getBoundsProvider(IEdge edge,
boolean atSource,
PointD anchor,
PointD directionVector) |
protected PointD |
DefaultEdgePathCropper.getIntersection(INode node,
IShapeGeometry nodeShapeGeometry,
IEdge edge,
PointD inner,
PointD outer)
Finds the intersection between a node and the edge.
|
protected PointD |
AbstractNodeStyle.getIntersection(INode node,
PointD inner,
PointD outer)
Gets the intersection of a line with the visual representation of the node.
|
PointD |
VoidShapeGeometry.getIntersection(PointD inner,
PointD outer)
This implementation always returns
null . |
PointD |
TemplateNodeStyleRenderer.getIntersection(PointD inner,
PointD outer)
Tries to use the
outline shape to perform the intersection calculation,
otherwise reverts to default (rectangular) behavior. |
PointD |
TableNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
PointD |
ShinyPlateNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
PointD |
ShapeNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
PointD |
PanelNodeStyleRenderer.getIntersection(PointD inner,
PointD outer)
|
PointD |
MemoryImageNodeStyleRenderer.getIntersection(PointD p1,
PointD p2)
Tries to use the
NormalizedOutline to perform the intersection
calculation, otherwise reverts to default (rectangular) behavior. |
PointD |
ImageNodeStyleRenderer.getIntersection(PointD inner,
PointD outer)
Tries to use the
NormalizedOutline to perform the intersection
calculation, otherwise reverts to default (rectangular) behavior. |
PointD |
IShapeGeometry.getIntersection(PointD inner,
PointD outer)
Returns the intersection for the given line with this shape's geometry.
|
PointD |
GeneralPathNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
PointD |
CollapsibleNodeStyleDecoratorRenderer.getIntersection(PointD inner,
PointD outer)
Delegates to the
CollapsibleNodeStyleDecoratorRenderer.getWrappedStyle() . |
PointD |
BevelNodeStyleRenderer.getIntersection(PointD inner,
PointD outer) |
IVisualCreator |
IArrow.getVisualCreator(IEdge edge,
boolean atSource,
PointD anchor,
PointD direction)
Gets an
IVisualCreator implementation that will paint this arrow at the given location using the given direction
for the given edge. |
IVisualCreator |
Arrow.getVisualCreator(IEdge edge,
boolean atSource,
PointD anchor,
PointD direction) |
boolean |
TemplatePortStyleRenderer.isHit(IInputModeContext context,
PointD location) |
boolean |
TemplateNodeStyleRenderer.isHit(IInputModeContext context,
PointD location)
Tries to use the
outline shape to perform the hit test analysis,
otherwise reverts to default (rectangular) behavior. |
boolean |
TemplateLabelStyleRenderer.isHit(IInputModeContext context,
PointD location) |
boolean |
TableNodeStyleRenderer.isHit(IInputModeContext context,
PointD location) |
boolean |
ShinyPlateNodeStyleRenderer.isHit(IInputModeContext context,
PointD location) |
boolean |
ShapeNodeStyleRenderer.isHit(IInputModeContext context,
PointD location) |
boolean |
PathBasedEdgeStyleRenderer.isHit(IInputModeContext context,
PointD location)
This method is overridden for performance reasons.
|
boolean |
PanelNodeStyleRenderer.isHit(IInputModeContext context,
PointD location)
|
boolean |
MemoryImageNodeStyleRenderer.isHit(IInputModeContext context,
PointD p)
Tries to use
NormalizedOutline to perform the hit test analysis, otherwise
reverts to default (rectangular) behavior. |
boolean |
ImageNodeStyleRenderer.isHit(IInputModeContext context,
PointD location)
Tries to use
NormalizedOutline to perform the hit test analysis, otherwise
reverts to default (rectangular) behavior. |
boolean |
IconLabelStyleRenderer.isHit(IInputModeContext context,
PointD location) |
boolean |
GeneralPathNodeStyleRenderer.isHit(IInputModeContext context,
PointD location) |
boolean |
DefaultLabelStyleRenderer.isHit(IInputModeContext context,
PointD location) |
boolean |
CollapsibleNodeStyleDecoratorRenderer.isHit(IInputModeContext context,
PointD location)
Delegates to the
CollapsibleNodeStyleDecoratorRenderer.getWrappedStyle() and checks the button. |
boolean |
BevelNodeStyleRenderer.isHit(IInputModeContext context,
PointD location) |
protected boolean |
AbstractEdgeStyle.isHit(IInputModeContext context,
PointD location,
IEdge edge)
Determines whether the visual representation of the edge has been hit at the given location.
|
protected boolean |
AbstractLabelStyle.isHit(IInputModeContext context,
PointD location,
ILabel label)
Determines whether the visual representation of the label has been hit at the given location.
|
protected boolean |
AbstractNodeStyle.isHit(IInputModeContext context,
PointD location,
INode node)
Determines whether the visual representation of the node has been hit at the given location.
|
protected boolean |
AbstractPortStyle.isHit(IInputModeContext context,
PointD location,
IPort port)
Determines whether the visual representation of the port has been hit at the given location.
|
protected boolean |
AbstractNodeStyle.isInside(INode node,
PointD location)
Determines whether the provided point is geometrically inside the visual bounds of the node.
|
boolean |
VoidShapeGeometry.isInside(PointD location)
This implementation always returns
false . |
boolean |
TemplateNodeStyleRenderer.isInside(PointD location)
Tries to use the
outline shape to perform the contains test, otherwise
reverts to default (rectangular) behavior. |
boolean |
TableNodeStyleRenderer.isInside(PointD location) |
boolean |
ShinyPlateNodeStyleRenderer.isInside(PointD location) |
boolean |
ShapeNodeStyleRenderer.isInside(PointD location) |
boolean |
PanelNodeStyleRenderer.isInside(PointD location)
Checks whether the given coordinate lies within the shape's geometric bounds.
|
boolean |
MemoryImageNodeStyleRenderer.isInside(PointD point)
Tries to use the
NormalizedOutline to perform the contains test, otherwise
reverts to default (rectangular) behavior. |
boolean |
ImageNodeStyleRenderer.isInside(PointD location)
Tries to use the
NormalizedOutline to perform the contains test, otherwise
reverts to default (rectangular) behavior. |
boolean |
IShapeGeometry.isInside(PointD location)
Checks whether the given coordinate is deemed to lie within the shape's geometric bounds.
|
boolean |
GeneralPathNodeStyleRenderer.isInside(PointD location) |
boolean |
CollapsibleNodeStyleDecoratorRenderer.isInside(PointD location)
Delegates to the
CollapsibleNodeStyleDecoratorRenderer.getWrappedStyle() . |
boolean |
BevelNodeStyleRenderer.isInside(PointD location) |
protected boolean |
DefaultEdgePathCropper.isInside(PointD location,
INode node,
IShapeGeometry nodeShapeGeometry,
IEdge edge)
Checks whether a given point is inside a node's shape geometry with respect to the edge that is being calculated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
LayoutGraphAdapter.setEdgePortLocation(IPort port,
PointD newLocation)
Callback method that assigns a new location that matches
newLocation to port . |
protected void |
LayoutGraphAdapter.setRelativePortLocation(IPort port,
PointD newRelativeLocation)
Callback method that assigns a new relative location to
port . |
Modifier and Type | Method and Description |
---|---|
PointD |
CanvasControl.getCenter()
Gets the world coordinate at the center of the control.
|
PointD |
CanvasControl.getLastEventLocation()
Gets the last location provided by a pointing device (for instance mouse or touch).
|
PointD |
Touch2DPoint.getLastViewCoordinate()
Gets the last device coordinate in the view coordinate system.
|
PointD |
Touch2DEvent.getLocation()
Returns the location represented by this event in world coordinates.
|
PointD |
Mouse2DEvent.getLocation()
Returns the coordinates in the world coordinate space associated with this event.
|
PointD |
GridInfo.getOrigin()
Gets the canonic origin of the grid.
|
PointD |
CanvasControl.getViewPoint()
Gets the current view point.
|
PointD |
IRenderContext.toViewCoordinates(PointD worldPoint)
Converts the given set of world coordinates to a coordinate pair that can be used to render within the
ViewTransform . |
PointD |
CanvasControl.toViewCoordinates(PointD worldPoint)
Converts world coordinates to view coordinates expressed in the control's coordinate system.
|
PointD |
CanvasControl.toWorldCoordinates(PointD viewPoint)
Converts view coordinates (expressed in the control's coordinate system) to world coordinates.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<PointD> |
CanvasControl.viewPointProperty()
Returns an
ObjectProperty that holds current view point. |
Modifier and Type | Method and Description |
---|---|
void |
CanvasControl.animateScrollTo(PointD viewPoint,
double zoom)
Scrolls to the provided view point and zoom level in an animated fashion.
|
protected void |
ViewportAnimation.applyCenterPoint(PointD focus)
Effectively applies the center point value.
|
protected void |
ViewportAnimation.applyViewPoint(PointD focus)
Effectively applies the view point value.
|
void |
IBridgeCreator.createCustomBridge(IRenderContext context,
GeneralPath path,
PointD start,
PointD end,
double gapLength)
Callback that will be used by the
BridgeManager if the IBridgeCreator.getCrossingStyle(IRenderContext)
method yields BridgeCrossingStyle.CUSTOM to actually insert a bridge into the given GeneralPath . |
static IAnimation |
IAnimation.createEdgeSegmentAnimation(IGraph graph,
IEdge edge,
IPoint[] endBends,
PointD endSourceLocation,
PointD endTargetLocation,
Duration preferredDuration)
Creates a new
IAnimation that animates the given edge 's bends from its current shape linearly to the
shape given by the endBends and final port locations. |
static Node |
CanvasControl.createVisualFromTemplate(IVisualTemplate template,
PointD origin,
IRenderContext context)
Creates a visual representation (
Node ) using the given template. |
static Node |
CanvasControl.createVisualFromTemplate(IVisualTemplate template,
PointD origin,
IRenderContext context,
RectD initialBounds)
Creates a visual representation (
Node ) using the given template. |
static Node |
CanvasControl.createVisualFromTemplate(IVisualTemplate template,
PointD origin,
IRenderContext context,
RectD initialBounds,
Object dataObject)
Creates a visual representation (
Node ) using the given template. |
ICanvasObject |
CanvasControl.getCanvasObject(PointD location)
Returns the top most canvas object instance that is hit at the given coordinate set.
|
IEnumerable<ICanvasObject> |
CanvasControl.getCanvasObjects(PointD location)
Returns a list of all canvas objects in hit order at the given world coordinate location.
|
IEnumerable<ICanvasObject> |
CanvasControl.hitElementsAt(IInputModeContext context,
PointD location)
Enumerates all hit elements in the canvas below the given group that are accepted by a given filter using a specific
ICanvasContext
as the argument to the IHitTestable.isHit(IInputModeContext, PointD) method. |
IEnumerable<IModelItem> |
GraphModelManager.hitElementsAt(IInputModeContext context,
PointD location,
ICanvasObjectGroup root)
Enumerates hits on the canvas at a given world coordinate position for a given context.
|
IEnumerable<ICanvasObject> |
CanvasControl.hitElementsAt(IInputModeContext context,
PointD location,
ICanvasObjectGroup root)
Enumerates all hit elements in the canvas below the given group that are accepted by a given filter using a specific
ICanvasContext
as the argument to the IHitTestable.isHit(IInputModeContext, PointD) method. |
IEnumerable<ICanvasObject> |
CanvasControl.hitElementsAt(IInputModeContext context,
PointD location,
ICanvasObjectGroup root,
Predicate<ICanvasObject> filter)
Enumerates all hit elements in the canvas below the given group that are accepted by a given filter using a specific
ICanvasContext
as the argument to the IHitTestable.isHit(IInputModeContext, PointD) method. |
IEnumerable<IModelItem> |
GraphModelManager.hitElementsAt(PointD location)
Enumerates hits on the canvas at a given world coordinate position.
|
IEnumerable<ICanvasObject> |
CanvasControl.hitElementsAt(PointD location)
Enumerates all hit elements in the canvas below the given group that are accepted by a given filter.
|
IEnumerable<ICanvasObject> |
CanvasControl.hitElementsAt(PointD location,
ICanvasObjectGroup root)
Enumerates all hit elements in the canvas below the given group that are accepted by a given filter.
|
IEnumerable<ICanvasObject> |
CanvasControl.hitElementsAt(PointD location,
ICanvasObjectGroup root,
Predicate<ICanvasObject> filter)
Enumerates all hit elements in the canvas below the given group that are accepted by a given filter.
|
void |
BridgeManager.insertDefaultCustomBridge(IRenderContext context,
GeneralPath path,
PointD start,
PointD end,
double gapLength)
Implementation that will be called by the default value of the
DefaultBridgeCreator
to satisfy requests to IBridgeCreator.createCustomBridge(IRenderContext, GeneralPath, PointD, PointD, double) . |
boolean |
CanvasControl.isHit(ICanvasObject canvasObject,
PointD location)
Convenience method that calculates the hit tests a given canvas object in the scene graph.
|
boolean |
DefaultPortCandidateDescriptor.isHit(IInputModeContext context,
PointD location) |
void |
BridgeManager.registerObstacleCubicCurve(IRenderContext context,
PointD p1,
PointD cp1,
PointD cp2,
PointD p2)
Convenience method that can be called to dynamically register a single obstacle cubic curve with the context during the
rendering.
|
void |
BridgeManager.registerObstacleLine(IRenderContext context,
PointD p1,
PointD p2)
Convenience method that can be called to dynamically register a single obstacle line with the context during the
rendering.
|
void |
BridgeManager.registerObstacleQuadCurve(IRenderContext context,
PointD p1,
PointD cp,
PointD p2)
Convenience method that can be called to dynamically register a single obstacle quadratic curve with the context during
the rendering.
|
void |
CanvasControl.setCenter(PointD value)
Sets the world coordinate at the center of the control.
|
void |
GridInfo.setOrigin(PointD value)
Sets the canonic origin of the grid.
|
static void |
CanvasControl.setTemplateLocation(Node visual,
PointD viewCoordinates)
Moves a node to the given coordinates.
|
void |
CanvasControl.setViewPoint(PointD value)
Sets the current view point.
|
PointD |
IRenderContext.toViewCoordinates(PointD worldPoint)
Converts the given set of world coordinates to a coordinate pair that can be used to render within the
ViewTransform . |
PointD |
CanvasControl.toViewCoordinates(PointD worldPoint)
Converts world coordinates to view coordinates expressed in the control's coordinate system.
|
PointD |
CanvasControl.toWorldCoordinates(PointD viewPoint)
Converts view coordinates (expressed in the control's coordinate system) to world coordinates.
|
<T extends IModelItem> |
GraphModelManager.typedHitElementsAt(Class<T> modelItemType,
IInputModeContext context,
PointD location,
ICanvasObjectGroup root)
Enumerates hits on the canvas at a given world coordinate position in a given context.
|
<T extends IModelItem> |
GraphModelManager.typedHitElementsAt(Class<T> itemType,
PointD location)
Enumerates hits on the canvas at a given world coordinate position.
|
void |
CanvasControl.zoomTo(PointD center,
double zoom)
Sets the zoom level and view port center to the given values.
|
Constructor and Description |
---|
GridInfo(double horizontalSpacing,
double verticalSpacing,
PointD origin)
Creates a new instance using the given horizontal and vertical grid spacing as well as the given origin.
|
Mouse2DEvent(Object source,
EventType<Mouse2DEvent> eventType,
PointD location,
MouseButtons changedButtons,
ModifierKeys changedModifiers,
MouseButtons buttons,
ModifierKeys modifiers)
Constructs a new mouse event argument.
|
Mouse2DEvent(Object source,
EventType<Mouse2DEvent> eventType,
PointD location,
MouseButtons changedButtons,
ModifierKeys changedModifiers,
MouseButtons buttons,
ModifierKeys modifiers,
int mouseWheelDelta,
ScrollType scrollType,
int scrollAmount,
int clickCount)
Constructs a new mouse event argument.
|
Touch2DEvent(Object source,
EventType<Touch2DEvent> eventType,
PointD location,
Touch2DPoint touchPoint,
ModifierKeys changedModifiers,
ModifierKeys modifiers)
Constructs a new Touch2DEvent argument.
|
Touch2DEvent(Object source,
EventType<Touch2DEvent> eventType,
PointD location,
Touch2DPoint touchPoint,
ModifierKeys changedModifiers,
ModifierKeys modifiers,
int tapCount)
Constructs a new touch event argument.
|
Modifier and Type | Method and Description |
---|---|
protected abstract PointD |
ConstrainedDragHandler.constrainNewLocation(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Callback that needs to implement the constraints for the new location.
|
PointD |
ReshapeRectangleContext.getBottomRightChangeFactor()
Gets the factor by which the bottom right corner of the node layout changes when the handle is dragged.
|
PointD |
ClickInputMode.getClickLocation()
Gets the location of the last click.
|
PointD |
SnapLine.getCoordinates()
The coordinates of the center point of the snap line.
|
PointD |
CollectSnapResultsEventArgs.getDelta()
Gets the vector by which the mouse has been moved since initialization of the snapping process.
|
PointD |
EdgeSegmentSnapLine.getDirection()
Gets the direction vector of this snap line.
|
PointD |
DropInputMode.getDropLocation()
Gets the mouse position after dropping an item.
|
PointD |
SnapLine.getFrom()
The first location that delimits this snap line.
|
PointD |
IGridConstraintProvider.getGridOrigin()
Gets the canonic origin of the grid.
|
PointD |
GridConstraintProvider.getGridOrigin()
Gets the grid origin.
|
PointD |
MoveInputMode.getInitialLocation()
Returns the initial position where the dragging was initiated.
|
PointD |
TapEventArgs.getLocation()
Gets the location of the tap.
|
PointD |
SnapState.getLocation()
Gets the current location.
|
PointD |
ItemClickedEventArgs.getLocation()
Gets the location of the click.
|
PointD |
CreateBendInputMode.getLocation()
Gets the location where the bend creation gesture was initialized.
|
PointD |
ClickEventArgs.getLocation()
Gets the location of the click.
|
PointD |
CollectSnapResultsEventArgs.getNewLocation()
Gets the new (current) location of the mouse that is going to be manipulated by the snapping process.
|
PointD |
SnapContext.getOriginalLocation()
Gets the original location of the mouse at the time the gesture was initialized.
|
PointD |
MovementInfo.getOriginalLocation()
Gets the original location of the element at the time the editing started.
|
PointD |
CollectSnapResultsEventArgs.getOriginalLocation()
Gets the original location of the mouse at the beginning of the gesture.
|
PointD |
GraphEditorInputMode.getPasteDelta()
The offset for paste operation if clipboard operations are enabled.
|
PointD |
ToolTipQueryEventArgs.getQueryLocation()
Gets the query location in world coordinates.
|
PointD |
QueryPositionHandlerEventArgs.getQueryLocation()
Gets the location of the movement (where the drag has started).
|
PointD |
PopulateMenuEventArgs.getQueryLocation()
Gets the queried location in world coordinates.
|
PointD |
EdgeSegmentSnapLine.getSegmentSource()
Gets the location that represents the source of the related segment on this line.
|
PointD |
EdgeSegmentSnapLine.getSegmentTarget()
Gets the location that represents the target of the related segment on this line.
|
PointD |
ItemDropInputMode.getSnappedMousePosition()
Gets the current snapped mouse position during drag operations.
|
PointD |
EdgeSegmentSnapLine.getSourceMarker()
Gets the location of the source marker of this snap line.
|
PointD |
CreateEdgeInputMode.getStartPoint()
Gets a copy of the starting point at which the edge creation gesture started.
|
PointD |
TapInputMode.getTapLocation()
Gets the location of the last tap.
|
PointD |
EdgeSegmentSnapLine.getTargetMarker()
Gets the location of the target marker of this snap line.
|
PointD |
SnapLine.getTo()
The second location that delimits this snap line.
|
protected PointD |
MouseHoverInputMode.getToolTipLocation(PointD location)
Finds the position in canvas view coordinates to display the tool tip at for the given world coordinates.
|
PointD |
MouseHoverInputMode.getToolTipLocationOffset()
Gets the tool tip location offset in view coordinates.
|
PointD |
ReshapeRectangleContext.getTopLeftChangeFactor()
Gets the factor by which the top left corner of the node layout changes when the handle is dragged.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NodeReshapeSnapResultProvider.addGridLineSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
SnapLineSnapTypes snapLineType,
IPoint snapLineLocation,
double delta,
PointD snappedLocation,
double from,
double to,
PointD snapLinePoint)
Adds a snap result for a location that snaps to a grid line.
|
protected void |
NodeReshapeSnapResultProvider.addGridSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
IGridConstraintProvider<INode> provider,
PointD gridSnappedPoint,
PointD snappedLocation)
Adds a snap result for a location that snaps to the grid.
|
protected void |
NodeSnapResultProvider.addGridSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD location,
INode node)
Calculates a
SnapResult and adds it to the
argument. |
protected void |
NodeSnapResultProvider.addGridSnapResultCore(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD location,
INode node,
GridSnapTypes gridSnapType,
SnapPolicy xSnapPolicy,
SnapPolicy ySnapPolicy)
Calculates a
SnapResult and adds it to the
argument. |
protected void |
EdgeSnapLineProvider.addHorizontalSegmentSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
IEdge edge,
PointD segmentStart,
PointD segmentEnd)
Adds horizontal snap lines for a horizontally oriented fixed segment snap lines.
|
protected void |
NodeReshapeSnapResultProvider.addSnaplineSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
OrthogonalSnapLine snapLine,
double delta,
PointD snapPoint)
Adds a snap result for a location that snaps the node's bounds to a snap line.
|
protected void |
EdgeSnapLineProvider.addVerticalSegmentSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
IEdge edge,
PointD segmentStart,
PointD segmentEnd)
Adds vertical snap lines for a vertically oriented fixed segment snap lines.
|
void |
ReshapeHandlerHandle.cancelDrag(IInputModeContext context,
PointD originalLocation)
Delegates the cancel request to the
IReshapeHandler . |
void |
ReparentStripePositionHandler.cancelDrag(IInputModeContext context,
PointD originalLocation) |
void |
RectangleHandle.cancelDrag(IInputModeContext context,
PointD originalLocation)
Delegates the original values to
RectangleHandle.set(double, double) . |
void |
PortRelocationHandle.cancelDrag(IInputModeContext context,
PointD originalLocation) |
void |
PortLocationModelParameterHandle.cancelDrag(IInputModeContext context,
PointD originalLocation) |
void |
LabelPositionHandler.cancelDrag(IInputModeContext context,
PointD originalLocation) |
void |
IDragHandler.cancelDrag(IInputModeContext context,
PointD originalLocation)
Called by clients to indicate that the dragging has been canceled by the user.
|
void |
ConstrainedDragHandler.cancelDrag(IInputModeContext context,
PointD originalLocation)
Cancels the move operation and calls
ConstrainedDragHandler.onCanceled(IInputModeContext, PointD) . |
protected boolean |
GraphEditorInputMode.clickCreateNode(IInputModeContext context,
PointD location)
Creates a node on click.
|
void |
IBendSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD suggestedLocation,
IBend bend)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s to which this bend can potentially snap. |
void |
IPortSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD suggestedLocation,
IPort port)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s to which this bend can potentially snap. |
protected abstract PointD |
ConstrainedDragHandler.constrainNewLocation(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Callback that needs to implement the constraints for the new location.
|
protected IBend |
CreateBendInputMode.createBend(IEdge edge,
PointD location)
Creates the bend.
|
int |
IBendCreator.createBend(IInputModeContext context,
IGraph graph,
IEdge edge,
PointD location)
Creates a bend at the given graph for the given edge at the position supplied.
|
int |
DefaultBendCreator.createBend(IInputModeContext context,
IGraph graph,
IEdge edge,
PointD location) |
protected OrthogonalSnapLine |
NodeSnapLineProvider.createCenterSnapLine(GraphSnapContext context,
INode node,
SnapLineOrientation orientation,
PointD location)
Convenience method that creates a snap line for the center of nodes.
|
T |
IDropCreationCallback.createItem(IInputModeContext context,
IGraph graph,
T draggedItem,
IModelItem dropTarget,
PointD dropLocation)
Callback for creating a copy of the dragged item in graph at the specified location.
|
static SnapResult |
SnapResult.createLabelSnapResult(ILabelModelParameter layoutParameter,
double weight,
PointD delta,
Object tag,
SnapLine snapLine,
PointD snappedCoordinates,
Object movedObject)
|
INode |
INodeCreationCallback.createNode(IInputModeContext context,
IGraph graph,
PointD location,
INode parent)
A callback that is used by
GraphEditorInputMode for the creation of nodes. |
INode |
GraphEditorInputMode.createNode(PointD location)
Creates a node given a certain click point.
|
static SnapResult |
SnapResult.createPointSnapResult(PointD location,
double weight,
Object tag,
IVisualCreator visualCreator,
SnapTypes snapType)
Factory method that creates a
SnapResult that snaps to a given location. |
static SnapResult |
SnapResult.createSnapLineSnapResult(double weight,
PointD delta,
Object tag,
SnapLine snapLine,
PointD snappedLocation,
Object movedObject)
Factory method that creates a
SnapResult which represents a SnapLine to which the current moved item
will potentially snap. |
void |
MoveInputMode.doStartDrag(PointD location)
Simulates the start of a drag and puts the state machine into the dragging state.
|
void |
ReshapeHandlerHandle.dragFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Delegates the finish request to the
IReshapeHandler . |
void |
ReparentStripePositionHandler.dragFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation) |
void |
RectangleHandle.dragFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
This implementation does nothing.
|
void |
PortRelocationHandle.dragFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation) |
void |
PortLocationModelParameterHandle.dragFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation) |
void |
LabelPositionHandler.dragFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation) |
void |
IDragHandler.dragFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Called by clients to indicate that the repositioning has just been finished.
|
void |
ConstrainedDragHandler.dragFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Handles the finish operation and invokes
ConstrainedDragHandler.onFinished(IInputModeContext, PointD, PointD) . |
SnapState |
SnapContext.dragFinished(PointD newLocation,
boolean snappingDisabled)
Called when a drag has been successfully finished.
|
SnapState |
LabelSnapContext.dragFinished(PointD newLocation,
boolean snappingDisabled) |
void |
SnapContext.dragged(PointD mouseLocation,
SnapState finalSnapState)
This method needs to be called by the client
IInputMode that initialized
this instance after it has performed the actual move operation with the adjusted coordinates after a call to
SnapContext.handleMove(PointD, boolean) . |
protected void |
CreateBendInputMode.dragSegment(IEdge edge,
PointD dragLocation)
Updates the
OrthogonalSegmentSplittingEnabled property and then delegates
to CreateBendInputMode.createBend(IEdge, PointD) . |
IEnumerable<T> |
IHitTester.enumerateHits(IInputModeContext context,
PointD location)
Yields an enumerable that enumerates the hits for a given world coordinate.
|
IEnumerable<StripeSubregion> |
StripeHitTester.enumerateHits(IInputModeContext context,
PointD location,
INode node)
Return a collection of hits at
location . |
StripeSubregion |
TableEditorInputMode.findStripe(PointD location,
StripeTypes stripeTypes,
StripeSubregionTypes subregionTypes)
Used as a callback to find the items underneath a certain point.
|
StripeSubregion |
TableEditorInputMode.findStripe(PointD location,
StripeTypes stripeTypes,
StripeSubregionTypes subregionTypes,
Predicate<StripeSubregion> filter)
Used as a callback to find the items underneath a certain point.
|
IEnumerable<StripeSubregion> |
TableEditorInputMode.findStripes(PointD location,
StripeTypes stripeTypes,
StripeSubregionTypes subregionTypes)
Used as a callback to find the items underneath a certain point.
|
IEnumerable<StripeSubregion> |
TableEditorInputMode.findStripes(PointD location,
StripeTypes stripeTypes,
StripeSubregionTypes subregionTypes,
Predicate<StripeSubregion> filter)
Used as a callback to find the items underneath a certain point.
|
protected IPortCandidate |
PortRelocationHandle.getClosestCandidate(IInputModeContext context,
PointD location,
Iterable<IPortCandidate> candidates)
Finds the closest candidate from the given set of candidates.
|
protected IPortCandidate |
CreateEdgeInputMode.getClosestCandidate(Iterable<IPortCandidate> candidates,
PointD location)
Finds the closest
PortCandidateValidity.VALID candidate given a number of
IPortCandidate s and a location in world coordinates. |
protected IHandle |
HandleInputMode.getClosestHitHandle(PointD location)
Finds the closest hit handle for the given world coordinate pair.
|
protected IHandle |
HandleInputMode.getClosestHitHandleTouch(PointD location)
Finds the closest hit handle for the given world coordinate pair.
|
protected IPortCandidate |
CreateEdgeInputMode.getClosestSourceCandidate(Iterable<IPortCandidate> candidates,
PointD location)
Finds the closest candidate given a number of
IPortCandidate s and a location in world coordinates. |
protected IPortCandidate |
CreateEdgeInputMode.getClosestTargetCandidate(Iterable<IPortCandidate> candidates,
PointD location)
Finds the closest target candidate given a number of
IPortCandidate s and a location in world coordinates. |
protected double |
LabelPositionHandler.getDistance(IOrientedRectangle rectangle,
PointD location)
Calculates a distance value between a candidate rectangle and the mouse location.
|
protected IModelItem |
NodeDropInputMode.getDropTarget(PointD dragLocation) |
protected IModelItem |
ItemDropInputMode.getDropTarget(PointD dragLocation)
Returns the drop target at the specified location.
|
protected IEdge |
CreateBendInputMode.getEdge(PointD location)
Finds the edge at the given coordinate.
|
IBend |
IBendSelectionTester.getHitBend(IInputModeContext context,
PointD location)
Returns the bend at the given world coordinate position.
|
protected Iterable<IModelItem> |
ItemHoverInputMode.getHitItemsAt(PointD location)
Gets the items that have been hit at the given location.
|
protected ILabel |
MoveLabelInputMode.getHitLabel(IInputModeContext context,
PointD location)
Looks for a label that has been hit at the specified position.
|
IPort |
IPortSelectionTester.getHitPort(IInputModeContext context,
PointD location)
Returns the port at the given world coordinate position or
null if there is no such port. |
protected IPortLocationModelParameter |
PortLocationModelParameterHandle.getNewParameter(IPort port,
IPortLocationModel model,
PointD location)
Callback method that obtains the new parameter for the given location and port.
|
protected RectD |
NodeDropInputMode.getNodeLayout(PointD mouseLocation,
SizeD size)
Calculates the layout of the new node.
|
protected IPort |
PortRelocationHandle.getPort(IInputModeContext context,
IPortCandidate portCandidate,
PointD suggestedLocation)
Callback used during
PortRelocationHandle.dragFinished(IInputModeContext, PointD, PointD) to actually get the new port from the
chosen candidate. |
protected IPortCandidate |
AbstractPortCandidateProvider.getPortCandidateAt(IInputModeContext context,
DefaultPortCandidate candidate,
PointD suggestedLocation)
Callback method used by the ports created using the factory methods
AbstractPortCandidateProvider.createCandidate(IPortOwner, IPortLocationModelParameter, boolean) . |
IPortCandidate |
IPortCandidate.getPortCandidateAt(IInputModeContext context,
PointD location)
Returns a candidate that is derived from this instance that best fits the provided
location . |
IPortCandidate |
DefaultPortCandidate.getPortCandidateAt(IInputModeContext context,
PointD location)
Returns a candidate that is derived from this instance that best fits the provided
location . |
protected IPortOwner |
CreateEdgeInputMode.getPortOwner(PointD location)
Retrieves the port owner at a given position in world coordinates.
|
protected RectD |
StripeDropInputMode.getPreviewTableLayout(PointD location,
SizeD size)
Calculates the layout of the new table.
|
protected IPortOwner |
CreateEdgeInputMode.getSource(PointD sourceLocation)
Finds the source
port owner at the specified location. |
protected IPortCandidate |
CreateEdgeInputMode.getSourcePortCandidate(IPortCandidateProvider provider,
PointD location,
boolean resolveCandidates)
Finds the best matching source port
IPortCandidate given a provider and the current location. |
protected IPortCandidate |
CreateEdgeInputMode.getSourcePortCandidate(PointD location)
Finds the best matching source
port candidate based on the given location. |
protected IPortOwner |
CreateEdgeInputMode.getTarget(PointD targetLocation)
Finds the target
port owner at the specified location. |
protected IPortCandidateProvider |
CreateEdgeInputMode.getTargetPortCandidateProvider(IPortCandidate sourcePortCandidate,
IPortOwner targetOwner,
PointD location)
Retrieves the port candidate provider instance given a source port candidate and a possible target item.
|
protected IPortCandidateProvider |
CreateEdgeInputMode.getTargetPortCandidateProvider(IPortCandidate sourcePortCandidate,
PointD location)
Retrieves the
IPortCandidateProvider instance that provides the possible candidates for the target of the edge
given the current source candidate. |
protected Iterable<IPortCandidate> |
CreateEdgeInputMode.getTargetPortCandidates(PointD location,
boolean resolveCandidates)
Retrieves the target port candidates for a given location in world coordinates.
|
protected StripeSubregion |
ReparentStripePositionHandler.getTargetSubregion(PointD location)
Finds the target stripe subregion at
location and its associated owner node. |
protected Tooltip |
MouseHoverInputMode.getToolTip(PointD location)
Callback method that provides a text for the given location or
null . |
protected PointD |
MouseHoverInputMode.getToolTipLocation(PointD location)
Finds the position in canvas view coordinates to display the tool tip at for the given world coordinates.
|
protected boolean |
HandleInputMode.handleIsHit(IHandle handle,
PointD location,
PointD distance)
Determines whether a given handle has been visually hit by the mouse at the given world coordinates.
|
protected boolean |
HandleInputMode.handleIsHitTouch(IHandle handle,
PointD location,
PointD distance)
Determines whether a given handle has been visually hit by the touch device at the given world coordinates.
|
void |
ReshapeHandlerHandle.handleMove(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Delegates the move request to the
IReshapeHandler.handleReshape(IInputModeContext, RectD, RectD) method. |
void |
ReparentStripePositionHandler.handleMove(IInputModeContext context,
PointD originalLocation,
PointD newLocation) |
void |
RectangleHandle.handleMove(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Delegates to
RectangleHandle.set(double, double) . |
void |
PortRelocationHandle.handleMove(IInputModeContext context,
PointD originalLocation,
PointD newLocation) |
void |
PortLocationModelParameterHandle.handleMove(IInputModeContext context,
PointD originalLocation,
PointD newLocation) |
void |
LabelPositionHandler.handleMove(IInputModeContext context,
PointD originalLocation,
PointD newLocation) |
void |
IDragHandler.handleMove(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Called by clients to indicate that the element has been dragged and its position should be updated.
|
void |
ConstrainedDragHandler.handleMove(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Handles the move operation and subsequently calls
ConstrainedDragHandler.onMoved(IInputModeContext, PointD, PointD) . |
SnapState |
SnapContext.handleMove(PointD newLocation,
boolean snappingDisabled)
Handles a move.
|
SnapState |
LabelSnapContext.handleMove(PointD newLocation,
boolean snappingDisabled) |
void |
SnapContext.initializeDrag(IInputModeContext context,
PointD originalLocation)
Called by
IInputMode implementations when an interactive drag is started. |
void |
LabelSnapContext.initializeDrag(IInputModeContext context,
PointD originalLocation) |
void |
GraphSnapContext.initializeDrag(IInputModeContext context,
PointD originalLocation)
Called by
IInputMode implementations when an interactive drag is started. |
boolean |
IHitTestableHandler.isHit(IInputModeContext context,
PointD location)
A delegate version of the
IHitTestable interface. |
boolean |
IHitTestable.isHit(IInputModeContext context,
PointD location)
Determines if something has been hit at the given coordinates in the world coordinate system.
|
boolean |
SnapResult.isSnapped(PointD unsnappedLocation,
SnapState finalSnapState)
Checks whether this instance is still snapped given the final mouse location.
|
protected boolean |
MoveLabelInputMode.isValidLabelHit(IInputModeContext context,
PointD location)
Determines whether or not a valid label has been hit at the specified position.
|
protected boolean |
MoveInputMode.isValidStartLocation(PointD location)
Determines whether the given location is a valid start location for the move gesture.
|
void |
RectangleHandle.moveBy(PointD delta)
Delegates the work to the reshapeable.
|
protected void |
ConstrainedDragHandler.onCanceled(IInputModeContext context,
PointD originalLocation)
Called when the
ConstrainedDragHandler.cancelDrag(IInputModeContext, PointD) method has been called. |
protected void |
ConstrainedDragHandler.onFinished(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Called when the
ConstrainedDragHandler.dragFinished(IInputModeContext, PointD, PointD) method has been called. |
protected void |
ConstrainedDragHandler.onInitialized(IInputModeContext context,
PointD originalLocation)
Called when the
ConstrainedDragHandler.initializeDrag(IInputModeContext) method has been called. |
protected void |
ConstrainedDragHandler.onMoved(IInputModeContext context,
PointD originalLocation,
PointD newLocation)
Called when the
ConstrainedDragHandler.handleMove(IInputModeContext, PointD, PointD) operation has been performed. |
protected boolean |
AbstractContextMenuInputMode.onPopulateMenu(TContextMenu menu,
PointD location,
EventSource eventSource)
This will populate the context menu for the given world coordinate.
|
protected void |
MouseHoverInputMode.onShow(PointD location)
Triggered when the mouse hovers over the given coordinates.
|
void |
GraphEditorInputMode.pasteAtLocation(PointD location)
Pastes the current clipboard contents at the given location.
|
protected SnapState |
SnapContext.processSnapResults(ArrayList<SnapResult> snapResults,
PointD originalLocation,
PointD newLocation)
Chooses the current
SnapResult s from a temporary list. |
protected IPortCandidate |
PortRelocationHandle.resolveCandidate(IInputModeContext context,
IPortCandidate portCandidate,
PointD location)
Tries to
resolve a dynamic port candidate for the
given location. |
protected Iterable<IPortCandidate> |
CreateEdgeInputMode.resolveCandidates(Iterable<IPortCandidate> candidates,
PointD location)
Returns an enumerable over the given candidates where no instance has
PortCandidateValidity.DYNAMIC
Validity . |
protected void |
StripeDropInputMode.setDragLocation(PointD location) |
protected void |
ItemDropInputMode.setDragLocation(PointD location)
Sets the
drag location and calls ItemDropInputMode.updatePreview(IGraph, PointD) to
update the layout of item preview based on the mouse coordinates and the results of the
SnapContext . |
protected void |
DropInputMode.setDragLocation(PointD location)
This method updates the
MousePosition according to the coordinates passed in. |
void |
SnapLine.setFrom(PointD value)
The first location that delimits this snap line.
|
void |
GraphEditorInputMode.setPasteDelta(PointD value)
The offset for paste operation if clipboard operations are enabled.
|
protected void |
PortRelocationHandle.setPort(IInputModeContext context,
IEdge edge,
boolean setSourcePort,
IPortCandidate portCandidate,
PointD suggestedLocation)
Callback that is triggered by
PortRelocationHandle.dragFinished(IInputModeContext, PointD, PointD) to actually change the port. |
void |
ReparentStripePositionHandler.setPosition(PointD location) |
protected void |
PortRelocationHandle.setPosition(PointD location)
Updates the position of the handle.
|
void |
LabelPositionHandler.setPosition(PointD location) |
void |
EdgeSegmentSnapLine.setSourceMarker(PointD value)
Sets the location of the source marker of this snap line.
|
void |
EdgeSegmentSnapLine.setTargetMarker(PointD value)
Sets the location of the target marker of this snap line.
|
void |
SnapLine.setTo(PointD value)
The second location that delimits this snap line.
|
void |
MouseHoverInputMode.setToolTipLocationOffset(PointD value)
Sets the tool tip location offset in view coordinates.
|
void |
MouseHoverInputMode.show(PointD location)
Immediately shows the tool tip at the given location.
|
protected void |
ContextMenuInputMode.showMenu(ContextMenu contextMenu,
PointD viewLocation) |
protected abstract void |
AbstractContextMenuInputMode.showMenu(TContextMenu menu,
PointD viewLocation)
Shows the given popup menu at the given location in view coordinates.
|
void |
SnapResult.snap(PointD unsnappedLocation,
SnapState currentSnapState)
Core method that performs the actual snapping.
|
void |
SnapState.snapTo(PointD newLocation)
|
protected void |
ItemDropInputMode.updateDropTarget(PointD dragLocation)
Calls
ItemDropInputMode.getDropTarget(PointD) for SnappedMousePosition and sets the returned
item as DropTarget . |
void |
ItemHoverInputMode.updateHover(PointD location)
Forces a reevaluation of the item that the mouse is currently hovering over or at a specific location.
|
protected void |
StripeDropInputMode.updatePreview(IGraph previewGraph,
PointD newLocation) |
protected void |
NodeDropInputMode.updatePreview(IGraph previewGraph,
PointD dragLocation) |
protected void |
ItemDropInputMode.updatePreview(IGraph previewGraph,
PointD dragLocation)
Subclasses shall update the
preview graph so the dragged item is displayed at the specified
dragLocation . |
protected void |
CreateEdgeInputMode.updateTargetLocation(PointD location)
Updates the drag point.
|
Constructor and Description |
---|
ClickEventArgs(IInputModeContext context,
PointD location,
ModifierKeys modifiers,
MouseButtons mouseButtons,
int clickCount)
Initializes a new instance of the
ClickEventArgs class. |
CollectSnapResultsEventArgs(IInputModeContext context,
PointD originalLocation,
PointD newLocation,
double snapDistance,
Collection<SnapResult> snapResults)
Creates a new instance of the event arguments using the provided values for initialization.
|
EdgeSegmentSnapLine(IEdge edge,
PointD segmentSource,
PointD segmentTarget,
double distance,
int segmentIndex)
Initializes a new instance of the
PointBasedSnapLine class. |
EdgeSegmentSnapLine(IEdge edge,
PointD from,
PointD to,
PointD segmentSource,
PointD segmentTarget,
double distance,
int segmentIndex,
Object tag,
double weight)
Initializes a new instance of the
PointBasedSnapLine class. |
ItemClickedEventArgs(T item,
PointD location)
Initializes a new instance of the
ItemClickedEventArgs class. |
MovementInfo(PointD originalLocation,
MoveTypes moveType,
IModelItem movedItem)
Initializes a new instance of the
MovementInfo class. |
NodeBasedSnapLine(INode node,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
double from,
double to,
Object tag,
double weight)
Initializes a new instance of the
NodeBasedSnapLine class. |
NodeBasedSnapLine(INode node,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
Object tag,
double weight)
Initializes a new instance of the
NodeBasedSnapLine class. |
NodePairBasedSnapLine(INode firstNode,
INode secondNode,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
double from,
double to,
Object tag,
double weight)
Initializes a new instance of the
NodePairBasedSnapLine class. |
NodePairBasedSnapLine(INode firstNode,
INode secondNode,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
Object tag,
double weight)
Initializes a new instance of the
NodePairBasedSnapLine class. |
OrthogonalSnapLine(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
double from,
double to,
Object tag,
double weight)
Creates a new snap line using the provided attributes.
|
OrthogonalSnapLine(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
Object tag,
double weight)
Creates a new snap line using the provided attributes.
|
PointBasedSnapLine(IPoint point,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
double from,
double to,
Object tag,
double weight)
Initializes a new instance of the
PointBasedSnapLine class. |
PointBasedSnapLine(IPoint point,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
Object tag,
double weight)
Initializes a new instance of the
PointBasedSnapLine class. |
PopulateItemContextMenuEventArgs(IInputModeContext context,
PointD queryLocation,
Object menu,
EventSource eventSource,
TModelItem item)
Initializes a new instance of the
PopulateItemContextMenuEventArgs class. |
PopulateMenuEventArgs(IInputModeContext context,
PointD queryLocation,
Object menu,
EventSource eventSource)
Initializes a new instance of the
PopulateMenuEventArgs class. |
QueryItemToolTipEventArgs(IInputModeContext context,
PointD queryLocation,
TModelItem item)
Initializes a new instance of the
QueryItemToolTipEventArgs class. |
QueryPositionHandlerEventArgs(IInputModeContext context,
PointD queryLocation)
Instantiates a new
QueryPositionHandlerEventArgs . |
ReshapeRectangleContext(RectD initialBounds,
ISize minimumSize,
ISize maximumSize,
IRectangle minimumEnclosedArea,
HandlePositions reshapePosition,
PointD topLeftChangeFactor,
PointD bottomRightChangeFactor,
SizeD sizeChangeFactor)
Initializes a new instance of the
ReshapeRectangleContext class. |
SnapLine(SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
PointD from,
PointD to,
Object tag,
double weight)
Creates a new snap line using the provided attributes.
|
SnapState(PointD location)
Initializes a new instance of the
SnapState class. |
SnapState(PointD location,
SnapTypes snapType)
Initializes a new instance of the
SnapState class. |
TapEventArgs(IInputModeContext context,
PointD location)
Initializes a new instance of the
TapEventArgs class. |
TapEventArgs(PointD location)
Initializes a new instance of the
TapEventArgs class. |
ToolTipQueryEventArgs(IInputModeContext context,
PointD queryLocation)
Initializes a new instance of the
ToolTipQueryEventArgs class. |