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.styles |
Contains interfaces and default implementations for graph element styles.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
Modifier and Type | Method and Description |
---|---|
GeneralPath |
GeneralPath.clone()
Creates a clone of this instance, copying the path information to the new instance.
|
GeneralPath |
GeneralPath.createGeneralPath(Matrix2D transform)
Creates a new
GeneralPath that is a copy of this path with all geometry transformed using the supplied matrix. |
GeneralPath |
GeneralPath.createSmoothedPath(double smoothingLength)
Creates a new path based on this one where corners are smoothed with a quadratic Bézier arc starting at
smoothingLength
away from the corner. |
GeneralPath |
GeneralPath.flatten(double eps)
Creates a new path from this instance flattening all Bézier curves using the given epsilon.
|
Modifier and Type | Method and Description |
---|---|
void |
GeneralPath.append(GeneralPath other,
boolean connect)
Appends the contents of the given path to this path.
|
void |
GeneralPath.append(GeneralPath other,
int beginIndex,
int endIndex,
boolean connect)
Appends parts of the contents of the given path to this path.
|
void |
GeneralPath.prepend(GeneralPath other,
boolean connect)
Adds the contents of the given path to the beginning of this path.
|
Modifier and Type | Field and Description |
---|---|
protected GeneralPath |
PathBasedEdgeStyleRenderer.path
The path instance that this instance is working with.
|
Modifier and Type | Method and Description |
---|---|
protected GeneralPath |
PolylineEdgeStyleRenderer.createPath() |
protected abstract GeneralPath |
PathBasedEdgeStyleRenderer.createPath()
This method should create the basic uncropped path given the control points.
|
protected GeneralPath |
ArcEdgeStyleRenderer.createPath() |
protected static GeneralPath |
PathBasedEdgeStyleRenderer.createRectangleSelfLoop(double sx,
double sy,
double oppositeX,
double oppositeY,
double tx,
double ty)
Static utility method that creates a rectangular self loop path.
|
protected static GeneralPath |
PathBasedEdgeStyleRenderer.createRoundSelfLoop(double sx,
double sy,
double oppositeX,
double oppositeY,
double tx,
double ty)
Static utility method that creates a round self loop path.
|
protected GeneralPath |
PathBasedEdgeStyleRenderer.createSelfLoopPath(boolean roundSelfLoop)
Special implementation that will create a self loop path.
|
GeneralPath |
IEdgePathCropper.cropEdgePath(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Crops the provided
path at one end of an edge. |
GeneralPath |
DefaultEdgePathCropper.cropEdgePath(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Crops the provided
path at one end of an edge. |
GeneralPath |
DefaultEdgePathCropper.cropEdgePathAtArrow(boolean atSource,
IArrow arrow,
GeneralPath path)
Crops an edge's path at the source or target side with respect to the given arrow.
|
protected GeneralPath |
DefaultEdgePathCropper.cropEdgePathAtPortGeometry(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Crops an edge's path at the source or target side at the
port geometry with respect to
the given arrow. |
protected GeneralPath |
PathBasedEdgeStyleRenderer.cropPath(GeneralPath path)
Crops the edge's path at the nodes.
|
protected GeneralPath |
ArcEdgeStyleRenderer.cropPath(GeneralPath path) |
protected GeneralPath |
AbstractEdgeStyle.cropPath(IEdge edge,
IArrow sourceArrow,
IArrow targetArrow,
GeneralPath path)
Convenience method that crops the edge's path at the nodes.
|
GeneralPath |
TemplatePortStyle.getNormalizedOutline()
Gets the normalized outline of a port that will be displayed using the
created control . |
GeneralPath |
TemplateNodeStyle.getNormalizedOutline()
Gets the normalized outline of a node that will be displayed using the
created control . |
GeneralPath |
TemplateLabelStyle.getNormalizedOutline()
Gets the normalized outline of a label that will be displayed using the
created control . |
GeneralPath |
MemoryImageNodeStyle.getNormalizedOutline()
Gets the normalized outline of the image that will be displayed.
|
GeneralPath |
ImageNodeStyle.getNormalizedOutline()
Gets the
Shape of the outline of the image that will be displayed. |
protected GeneralPath |
TemplateLabelStyleRenderer.getNormalizedOutline(TemplateLabelStyle style)
Gets the normalized outline by delegating to
NormalizedOutline . |
protected GeneralPath |
TemplateNodeStyleRenderer.getNormalizedOutline(TemplateNodeStyle style)
Gets the normalized outline by delegating to
NormalizedOutline . |
protected GeneralPath |
TemplatePortStyleRenderer.getNormalizedOutline(TemplatePortStyle style)
Gets the normalized outline by delegating to
NormalizedOutline . |
GeneralPath |
PathBasedEdgeStyleRenderer.getObstacles(IRenderContext context)
Returns
PathBasedEdgeStyleRenderer.createPath() unless PathBasedEdgeStyleRenderer.isVisible(ICanvasContext, RectD) yields false for the provided
context and Clip . |
GeneralPath |
VoidShapeGeometry.getOutline()
This implementation returns an empty path.
|
GeneralPath |
TemplateNodeStyleRenderer.getOutline()
Tries to use the
outline shape to create the outline shape path,
otherwise reverts to default (rectangular) behavior. |
GeneralPath |
TableNodeStyleRenderer.getOutline() |
GeneralPath |
ShinyPlateNodeStyleRenderer.getOutline() |
GeneralPath |
ShapeNodeStyleRenderer.getOutline() |
GeneralPath |
PanelNodeStyleRenderer.getOutline()
Returns the outline of the shape using the node's
Layout . |
GeneralPath |
MemoryImageNodeStyleRenderer.getOutline()
Tries to use the
NormalizedOutline to create the outline shape path,
otherwise reverts to default (rectangular) behavior. |
GeneralPath |
ImageNodeStyleRenderer.getOutline()
Tries to use the
NormalizedOutline to create the outline shape path,
otherwise reverts to default (rectangular) behavior. |
GeneralPath |
IShapeGeometry.getOutline()
Returns the outline of the shape or
null . |
GeneralPath |
GeneralPathNodeStyleRenderer.getOutline() |
GeneralPath |
CollapsibleNodeStyleDecoratorRenderer.getOutline()
Delegates to the
CollapsibleNodeStyleDecoratorRenderer.getWrappedStyle() . |
GeneralPath |
BevelNodeStyleRenderer.getOutline() |
protected GeneralPath |
AbstractNodeStyle.getOutline(INode node)
Gets the outline of the visual style.
|
GeneralPath |
VoidPathGeometry.getPath() |
GeneralPath |
PathBasedEdgeStyleRenderer.getPath() |
GeneralPath |
IPathGeometry.getPath()
Returns a representation of the visible path of the edge in form of a
GeneralPath . |
GeneralPath |
GeneralPathNodeStyle.getPath()
Gets the path that defines the boundary of the shape.
|
protected GeneralPath |
AbstractEdgeStyle.getPath(IEdge edge)
Gets the path of the edge.
|
protected GeneralPath |
DefaultEdgePathCropper.handleEmptyPath(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Handles the edge path cropping if
DefaultEdgePathCropper.cropEdgePath(IEdge, boolean, IArrow, GeneralPath) would result in a cleared
path. |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractEdgeStyle.addArrows(IRenderContext context,
VisualGroup group,
IEdge edge,
GeneralPath edgePath,
IArrow sourceArrow,
IArrow targetArrow)
Convenience method that adds the arrows to a given container.
|
GeneralPath |
IEdgePathCropper.cropEdgePath(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Crops the provided
path at one end of an edge. |
GeneralPath |
DefaultEdgePathCropper.cropEdgePath(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Crops the provided
path at one end of an edge. |
GeneralPath |
DefaultEdgePathCropper.cropEdgePathAtArrow(boolean atSource,
IArrow arrow,
GeneralPath path)
Crops an edge's path at the source or target side with respect to the given arrow.
|
protected GeneralPath |
DefaultEdgePathCropper.cropEdgePathAtPortGeometry(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Crops an edge's path at the source or target side at the
port geometry with respect to
the given arrow. |
protected GeneralPath |
PathBasedEdgeStyleRenderer.cropPath(GeneralPath path)
Crops the edge's path at the nodes.
|
protected GeneralPath |
ArcEdgeStyleRenderer.cropPath(GeneralPath path) |
protected GeneralPath |
AbstractEdgeStyle.cropPath(IEdge edge,
IArrow sourceArrow,
IArrow targetArrow,
GeneralPath path)
Convenience method that crops the edge's path at the nodes.
|
protected Tangent |
AbstractEdgeStyle.getSourceArrowAnchor(GeneralPath path,
IArrow arrow)
Convenience method that calculates the source arrow anchor and direction for a a given arrow and path.
|
protected Tangent |
AbstractEdgeStyle.getTargetArrowAnchor(GeneralPath path,
IArrow arrow)
Convenience method that calculates the target arrow anchor and direction for a a given arrow and path.
|
protected GeneralPath |
DefaultEdgePathCropper.handleEmptyPath(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Handles the edge path cropping if
DefaultEdgePathCropper.cropEdgePath(IEdge, boolean, IArrow, GeneralPath) would result in a cleared
path. |
void |
TemplatePortStyle.setNormalizedOutline(GeneralPath value)
Sets the normalized outline of a port that will be displayed using the
created control . |
void |
TemplateNodeStyle.setNormalizedOutline(GeneralPath value)
Sets the normalized outline of a node that will be displayed using the
created control . |
void |
TemplateLabelStyle.setNormalizedOutline(GeneralPath value)
Sets the normalized outline of a label that will be displayed using the
created control . |
void |
MemoryImageNodeStyle.setNormalizedOutline(GeneralPath value)
Sets the normalized outline of the image that will be displayed.
|
void |
ImageNodeStyle.setNormalizedOutline(GeneralPath value)
Sets the normalized outline of the image that will be displayed.
|
void |
GeneralPathNodeStyle.setPath(GeneralPath value)
Sets the path that defines the boundary of the shape.
|
protected void |
AbstractEdgeStyle.updateArrows(IRenderContext context,
VisualGroup group,
IEdge edge,
GeneralPath edgePath,
IArrow sourceArrow,
IArrow targetArrow)
Convenience method that updates the arrows in a given container.
|
Constructor and Description |
---|
GeneralPathNodeStyle(GeneralPath path)
Creates a new instance using the specified path and a custom renderer instance.
|
GeneralPathNodeStyle(GeneralPath path,
GeneralPathNodeStyleRenderer renderer)
Creates a new instance using the specified path and a custom renderer instance.
|
Modifier and Type | Method and Description |
---|---|
GeneralPath |
BridgeManager.addBridges(IRenderContext context,
GeneralPath path,
IBridgeCreator callback)
Core method that will add bridges to a
GeneralPath using the IBridgeCreator callback to determine the
type of the bridges. |
GeneralPath |
IObstacleProvider.getObstacles(IRenderContext context)
Returns a path representing obstacles that would need bridges.
|
GeneralPath |
GraphObstacleProvider.getObstacles(IRenderContext context)
Iterates over all
Edges and Nodes to query an IObstacleProvider
from the IModelItem 's ILookup.lookup(java.lang.Class) . |
Modifier and Type | Method and Description |
---|---|
GeneralPath |
BridgeManager.addBridges(IRenderContext context,
GeneralPath path,
IBridgeCreator callback)
Core method that will add bridges to a
GeneralPath using the IBridgeCreator callback to determine the
type of the bridges. |
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.createPathAnimation(GeneralPath path,
IMutablePoint animationPoint,
Duration preferredDuration)
Creates a new instance of an
IAnimation that animates the given IMutablePoint along a path. |
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) . |
void |
BridgeManager.registerObstacle(IRenderContext context,
GeneralPath path)
Convenience method that can be called to dynamically register an obstacle path with the context during the rendering.
|