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.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 RectD |
RectD.EMPTY
An
empty rectangle. |
static RectD |
RectD.INFINITE
An infinite rectangle.
|
Modifier and Type | Method and Description |
---|---|
static RectD |
RectD.add(RectD rectangle,
PointD point)
Returns the union of the given rectangle and the given point.
|
static RectD |
RectD.add(RectD firstRectangle,
RectD secondRectangle)
Returns the union of the given rectangles.
|
static RectD |
RectD.convertFrom(MutableRectangle rectangle)
Performs an explicit conversion from
MutableRectangle to RectD . |
static RectD |
RectD.fromCenter(PointD center,
SizeD size)
Creates a new instance given the center of the rectangle and its size.
|
default RectD |
IOrientedRectangle.getBounds()
Determines the bounds of an oriented rectangle.
|
RectD |
GeneralPath.getBounds()
Calculates the bounds of this path and returns it.
|
RectD |
GeneralPath.getBounds(double eps)
Gets the bounds of a flattened version the path.
|
RectD |
RectD.getEnlarged(double size)
Creates an enlarged instance of this rectangle using the same insets for all sides.
|
RectD |
RectD.getEnlarged(InsetsD insets)
Creates an enlarged instance that is the same as this one but enlarged by the specified insets.
|
RectD |
RectD.getTransformed(Matrix2D transform)
Transforms this instance using specified transform storing the bounds in place.
|
RectD |
RectD.getTranslated(PointD delta)
|
RectD |
RectD.toRectD() |
default RectD |
IRectangle.toRectD()
Copies the current values of the rectangle to
RectD struct. |
Modifier and Type | Method and Description |
---|---|
static RectD |
RectD.add(RectD rectangle,
PointD point)
Returns the union of the given rectangle and the given point.
|
static RectD |
RectD.add(RectD firstRectangle,
RectD secondRectangle)
Returns the union of the given rectangles.
|
static MutableRectangle |
RectD.convertToMutableRectangle(RectD rectangle)
Performs an explicit conversion from
RectD to MutableRectangle . |
static boolean |
GeomUtilities.ellipseContains(RectD bounds,
PointD point,
double eps)
Checks whether an ellipse contains the given point.
|
static boolean |
RectD.equals(RectD firstRectangle,
RectD secondRectangle)
|
static PointD |
GeomUtilities.findEllipseLineIntersection(RectD bounds,
PointD inner,
PointD outer)
Returns the ellipse/line intersection point for the given point pair.
|
PointD |
PointD.getConstrained(RectD rectangle)
Create a constrained copy of this instance that lies within the given non-empty
rectangle . |
boolean |
RectD.intersects(RectD rectangle)
Determines whether the bounds of this instance intersect with the bounds of the specified rectangle.
|
boolean |
GeneralPath.intersects(RectD rectangle,
double eps)
Checks whether this path intersects the given rectangle.
|
boolean |
GeneralPath.mayIntersectClip(RectD clip,
double width)
Performs a quick test to decide whether this path might intersect the clipping rectangle, provided the path would be
rendered using stroke of the given width.
|
default void |
IMutableRectangle.reshape(RectD newRectangle)
Applies a new position and size to a given mutable rectangle.
|
Modifier and Type | Method and Description |
---|---|
RectD |
IGroupBoundsCalculator.calculateBounds(IGraph graph,
INode groupNode)
|
RectD |
GroupingSupport.calculateMinimumEnclosedArea(INode groupNode)
Calculates the minimum area to enclose by the given group node with respect to its
IGroupBoundsCalculator . |
default RectD |
IStripe.getAbsoluteBounds(INode node)
Returns the layout of
stripe in absolute coordinates. |
default RectD |
ITable.getCellBounds(IColumn column,
IRow row)
Calculates the relative bounds of a table cell that is determined by
column and . |
static RectD |
ITable.getCellBounds(INode tableNode,
IColumn column,
IRow row)
Calculates the absolute bounds of a table cell that is determined by
column and . |
default RectD |
IGraph.getDefaultNodeBounds()
Gets the default node bounds for newly created nodes in the graph.
|
Modifier and Type | Method and Description |
---|---|
void |
NodeReshapeHandler.cancelReshape(IInputModeContext inputModeContext,
RectD originalBounds) |
default INode |
IFoldingView.createFolderNode(INode parent,
RectD layout)
Directly creates a collapsed node on this instance with the given parameters.
|
default INode |
IFoldingView.createFolderNode(INode parent,
RectD layout,
INodeStyle style)
Directly creates a collapsed node on this instance with the given parameters.
|
INode |
IFoldingView.createFolderNode(INode parent,
RectD layout,
INodeStyle style,
Object tag)
Directly creates a collapsed node on this instance with the given parameters.
|
default INode |
IGraph.createGroupNode(INode parent,
RectD layout)
Creates a new group node using the provided style and layout as a child of
parent . |
default INode |
IGraph.createGroupNode(INode parent,
RectD layout,
INodeStyle style)
Creates a new group node using the provided style and layout as a child of
parent . |
INode |
IGraph.createGroupNode(INode parent,
RectD layout,
INodeStyle style,
Object tag)
Creates a new group node using the provided style and layout as a child of
parent . |
INode |
FilteredGraphWrapper.createGroupNode(INode parent,
RectD layout,
INodeStyle style,
Object tag) |
INode |
DefaultGraph.createGroupNode(INode parent,
RectD layout,
INodeStyle style,
Object tag) |
INode |
AbstractGraphWrapper.createGroupNode(INode parent,
RectD layout,
INodeStyle style,
Object tag) |
default INode |
IGraph.createNode(INode parent,
RectD layout)
Creates a new ordinary node as a direct descendant of
parent using the given layout and style. |
default INode |
IGraph.createNode(INode parent,
RectD layout,
INodeStyle style)
Creates a new ordinary node as a direct descendant of
parent using the given layout and style. |
INode |
IGraph.createNode(INode parent,
RectD layout,
INodeStyle style,
Object tag)
Creates a new ordinary node as a direct descendant of
parent using the given layout and style. |
INode |
FilteredGraphWrapper.createNode(INode parent,
RectD layout,
INodeStyle style,
Object tag) |
INode |
DefaultGraph.createNode(INode parent,
RectD layout,
INodeStyle style,
Object tag) |
INode |
AbstractGraphWrapper.createNode(INode parent,
RectD layout,
INodeStyle style,
Object tag) |
default INode |
IGraph.createNode(RectD layout)
Creates and returns a node using the specified values for the initial geometry, style, and
Tag . |
default INode |
IGraph.createNode(RectD layout,
INodeStyle style)
Creates and returns a node using the specified values for the initial geometry, style, and
Tag . |
INode |
IGraph.createNode(RectD layout,
INodeStyle style,
Object tag)
Creates and returns a node using the specified values for the initial geometry, style, and
Tag . |
INode |
DefaultGraph.createNode(RectD layout,
INodeStyle style,
Object tag) |
INode |
AbstractGraphWrapper.createNode(RectD layout,
INodeStyle style,
Object tag) |
void |
NodeReshapeHandler.handleReshape(IInputModeContext inputModeContext,
RectD originalBounds,
RectD newBounds) |
protected void |
DefaultGraph.onNodeLayoutChanged(INode node,
RectD oldLayout)
Callback that is invoked after a node layout has changed.
|
protected void |
AbstractGraphWrapper.onNodeLayoutChanged(INode node,
RectD oldLayout)
Raises the
NodeLayoutChanged event. |
void |
INodeLayoutChangedHandler.onNodeLayoutChanged(Object source,
INode node,
RectD oldLayout)
Event delegate method that is used in
IGraph 's NodeLayoutChanged
event. |
void |
NodeReshapeHandler.reshapeFinished(IInputModeContext inputModeContext,
RectD originalBounds,
RectD newBounds) |
void |
IGraph.setNodeLayout(INode node,
RectD layout)
Sets the layout of the given node to the new value.
|
void |
DefaultGraph.setNodeLayout(INode node,
RectD layout)
Sets the layout of the given node to the new values.
|
void |
AbstractGraphWrapper.setNodeLayout(INode node,
RectD layout) |
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
FreeNodeLabelModel.createCanonicalParameter(RectD nodeLayout,
IOrientedRectangle labelLayout)
Creates a parameter instance that anchors the label to the node at the canonical position with respect to the given
reference point.
|
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.
|
Modifier and Type | Method and Description |
---|---|
RectD |
TemplatePortStyleRenderer.getBounds(ICanvasContext context) |
RectD |
TemplateNodeStyleRenderer.getBounds(ICanvasContext context)
Returns the layout bounds as an upper bound for the painting bound.
|
RectD |
TemplateLabelStyleRenderer.getBounds(ICanvasContext context) |
RectD |
TableNodeStyleRenderer.getBounds(ICanvasContext context) |
RectD |
ShinyPlateNodeStyleRenderer.getBounds(ICanvasContext context) |
RectD |
ShapeNodeStyleRenderer.getBounds(ICanvasContext context)
Returns the layout bounds as an upper bound for the painting bound.
|
RectD |
PathBasedEdgeStyleRenderer.getBounds(ICanvasContext context) |
RectD |
PanelNodeStyleRenderer.getBounds(ICanvasContext context) |
RectD |
MemoryImageNodeStyleRenderer.getBounds(ICanvasContext context)
Returns the layout bounds as an upper bound for the painting bound.
|
RectD |
ImageNodeStyleRenderer.getBounds(ICanvasContext context)
Returns the layout bounds as an upper bound for the painting bound.
|
RectD |
IconLabelStyleRenderer.getBounds(ICanvasContext context) |
RectD |
GeneralPathNodeStyleRenderer.getBounds(ICanvasContext context) |
RectD |
DefaultLabelStyleRenderer.getBounds(ICanvasContext context) |
RectD |
CollapsibleNodeStyleDecoratorRenderer.getBounds(ICanvasContext context)
Delegates to the
CollapsibleNodeStyleDecoratorRenderer.getWrappedStyle() and takes the button into account. |
RectD |
BevelNodeStyleRenderer.getBounds(ICanvasContext context)
Returns the layout bounds as an upper bound for the painting bound.
|
protected RectD |
AbstractEdgeStyle.getBounds(ICanvasContext context,
IEdge edge)
Gets the bounds of the visual for the edge in the given context.
|
protected RectD |
AbstractLabelStyle.getBounds(ICanvasContext context,
ILabel label)
Gets the bounds of the visual for the label in the given context.
|
protected RectD |
AbstractNodeStyle.getBounds(ICanvasContext context,
INode node)
Gets the bounds of the visual for the node in the given context.
|
protected abstract RectD |
AbstractPortStyle.getBounds(ICanvasContext context,
IPort port)
Callback that returns the bounds of the visual for the port in the given context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TemplatePortStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle) |
boolean |
TemplateNodeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle)
Tries to use the
outline shape to perform the marquee intersection
analysis, otherwise reverts to default (rectangular) behavior. |
boolean |
TemplateLabelStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle) |
boolean |
TableNodeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle) |
boolean |
ShinyPlateNodeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle)
|
boolean |
ShapeNodeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle)
|
boolean |
PathBasedEdgeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle) |
boolean |
PanelNodeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle)
|
boolean |
MemoryImageNodeStyleRenderer.isInBox(IInputModeContext context,
RectD box)
Tries to use the
NormalizedOutline to perform the marquee intersection
analysis, otherwise reverts to default (rectangular) behavior. |
boolean |
ImageNodeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle)
Tries to use the
NormalizedOutline to perform the marquee intersection
analysis, otherwise reverts to default (rectangular) behavior. |
boolean |
IconLabelStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle) |
boolean |
GeneralPathNodeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle) |
boolean |
DefaultLabelStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle) |
boolean |
CollapsibleNodeStyleDecoratorRenderer.isInBox(IInputModeContext context,
RectD rectangle)
Delegates to the
CollapsibleNodeStyleDecoratorRenderer.getWrappedStyle() . |
boolean |
BevelNodeStyleRenderer.isInBox(IInputModeContext context,
RectD rectangle)
|
protected boolean |
AbstractEdgeStyle.isInBox(IInputModeContext context,
RectD rectangle,
IEdge edge)
Determines whether the visualization for the specified edge is included in the marquee selection.
|
protected boolean |
AbstractLabelStyle.isInBox(IInputModeContext context,
RectD rectangle,
ILabel label)
Determines whether the visualization for the specified label is included in the marquee selection.
|
protected boolean |
AbstractNodeStyle.isInBox(IInputModeContext context,
RectD rectangle,
INode node)
Determines whether the visualization for the specified node is included in the marquee selection.
|
protected boolean |
AbstractPortStyle.isInBox(IInputModeContext context,
RectD rectangle,
IPort port)
Determines whether the visualization for the specified port is included in the marquee selection.
|
boolean |
TemplatePortStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Calls
TemplatePortStyleRenderer.configure() and test the Port using the Style for a visible
intersection with the clip bounds. |
boolean |
TemplateNodeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Determines visibility by checking for an intersection with the
Layout . |
boolean |
TemplateLabelStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Uses the
layout to determine whether the clip intersects. |
boolean |
TableNodeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle) |
boolean |
ShinyPlateNodeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle) |
boolean |
ShapeNodeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Determines visibility by checking for an intersection with the
Layout . |
boolean |
PolylineEdgeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle) |
boolean |
PathBasedEdgeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Calls
PathBasedEdgeStyleRenderer.configure() and test the Edge using the Style for a visible
intersection with the clip bounds. |
boolean |
PanelNodeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle) |
boolean |
MemoryImageNodeStyleRenderer.isVisible(ICanvasContext context,
RectD clip)
Determines visibility by checking for an intersection with the
Layout . |
boolean |
ImageNodeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Determines visibility by checking for an intersection with the
Layout . |
boolean |
IconLabelStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle) |
boolean |
GeneralPathNodeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Determines visibility by checking for an intersection with the
Layout . |
boolean |
DefaultLabelStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Uses the
ILabel.getLayout() to determine whether the clip intersects. |
boolean |
CollapsibleNodeStyleDecoratorRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Delegates to the
CollapsibleNodeStyleDecoratorRenderer.getWrappedStyle() . |
boolean |
BevelNodeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Determines visibility by checking for an intersection with the
Layout . |
boolean |
ArcEdgeStyleRenderer.isVisible(ICanvasContext context,
RectD rectangle)
Overridden for performance reasons.
|
protected boolean |
AbstractEdgeStyle.isVisible(ICanvasContext context,
RectD rectangle,
IEdge edge)
Determines whether the visualization for the specified edge is visible in the context.
|
protected boolean |
AbstractLabelStyle.isVisible(ICanvasContext context,
RectD rectangle,
ILabel label)
Determines whether the visualization for the specified label is visible in the context.
|
protected boolean |
AbstractNodeStyle.isVisible(ICanvasContext context,
RectD rectangle,
INode node)
Determines whether the visualization for the specified node is visible in the context.
|
protected boolean |
AbstractPortStyle.isVisible(ICanvasContext context,
RectD rectangle,
IPort port)
Determines whether the visualization for the specified port is visible in the context.
|
boolean |
BevelNodeStyleRenderer.isVisible(RectD clip,
ICanvasContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected RectD |
LayoutExecutor.getTargetBounds()
Calculate the target bounds to be used for the
ContentRect
as well as the ViewportAnimation after the layout has finished. |
Modifier and Type | Method and Description |
---|---|
protected IAnimation |
LayoutExecutor.createViewportAnimation(RectD targetBounds)
Factory method that creates the animation for the
Viewport . |
double[] |
TableLayoutConfigurator.getColumnLayout(ITable originalTable,
RectD nodeLayout)
Return the sizes of all leaf rows.
|
double[] |
TableLayoutConfigurator.getRowLayout(ITable originalTable,
RectD nodeLayout)
Return the sizes of all leaf rows.
|
Modifier and Type | Method and Description |
---|---|
RectD |
ViewportLimiter.getBounds()
Gets the maximal allowed navigable bounds for the viewport.
|
RectD |
IBoundsProvider.getBounds(ICanvasContext context)
Returns a tight rectangular area where the whole rendering would fit into.
|
RectD |
DefaultPortCandidateDescriptor.getBounds(ICanvasContext context) |
RectD |
CanvasControl.getBounds(ICanvasObject canvasObject)
Convenience method that calculates the bounds for a given canvas object in the scene graph.
|
RectD |
IRenderContext.getClip()
The clipping rectangle in world coordinates.
|
RectD |
CanvasControl.getContentRect()
Gets the Rectangle in world coordinates that holds the contents.
|
protected RectD |
ViewportLimiter.getCurrentBounds(CanvasControl canvas,
RectD suggestedViewport)
Gets the to bounds that should be honored for the upcoming call.
|
RectD |
CanvasPrinter.getPrintRectangle()
Returns the rectangle that will be printed.
|
RectD |
ViewportAnimation.getTargetBounds()
Gets the target world bounds.
|
RectD |
CanvasControl.getViewport()
Returns the currently visible viewing region in world coordinates.
|
RectD |
ContextConfigurator.getWorldBounds()
Gets the bounds of the content to export in world coordinates.
|
RectD |
ViewportLimiter.limitViewport(CanvasControl canvas,
RectD suggestedViewport)
Inspects the desired or suggested new viewport for the given control and returns a valid viewport to use.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<RectD> |
CanvasControl.contentRectProperty()
Returns an
ObjectProperty that holds a rectangle containing the whole graph content of this
CanvasControl . |
ObjectProperty<RectD> |
CanvasPrinter.printRectangleProperty()
Returns the property that holds the rectangle that will be printed.
|
ReadOnlyObjectPropertyBase<RectD> |
CanvasControl.viewportProperty()
The property for the
view port . |
Modifier and Type | Method and Description |
---|---|
protected ContextConfigurator |
CanvasPrinter.createContextConfigurator(RectD printRectangle)
Creates a new
ContextConfigurator instance that is used
to ContextConfigurator.createRenderContext(CanvasControl) create the render context}
that is needed to paint the visuals for the printing. |
Node |
IVisualTemplate.createVisual(IRenderContext context,
RectD bounds,
Object dataObject)
This method is called by the framework to create a
Node with the given bounds that will be included into the IRenderContext . |
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. |
protected RectD |
ViewportLimiter.getCurrentBounds(CanvasControl canvas,
RectD suggestedViewport)
Gets the to bounds that should be honored for the upcoming call.
|
void |
CanvasControl.growContentRect(RectD rectangle)
Assures that the
content rectangle encompasses the given rectangle. |
boolean |
DefaultPortCandidateDescriptor.isInBox(IInputModeContext context,
RectD rectangle) |
boolean |
IVisibilityTestable.isVisible(ICanvasContext context,
RectD rectangle)
Determines whether an element might intersect the visible region for a given context.
|
boolean |
DefaultPortCandidateDescriptor.isVisible(ICanvasContext context,
RectD rectangle) |
RectD |
ViewportLimiter.limitViewport(CanvasControl canvas,
RectD suggestedViewport)
Inspects the desired or suggested new viewport for the given control and returns a valid viewport to use.
|
void |
CanvasControl.makeVisible(RectD bounds)
Ensures that the provided bounds are visible in this control by adjusting the viewport correspondingly.
|
void |
ViewportLimiter.setBounds(RectD value)
Sets the maximal allowed navigable bounds for the viewport.
|
void |
CanvasControl.setContentRect(RectD value)
Sets the Rectangle in world coordinates that holds the contents.
|
void |
CanvasPrinter.setPrintRectangle(RectD printRectangle)
Sets the rectangle that will be printed.
|
void |
ViewportAnimation.setTargetBounds(RectD value)
Sets the target world bounds.
|
void |
ContextConfigurator.setWorldBounds(RectD value)
Sets the bounds of the content to export in world coordinates.
|
Node |
IVisualTemplate.updateVisual(IRenderContext context,
Node oldVisual,
RectD bounds,
Object dataObject)
This method updates or replaces a previously created
Node for inclusion in the IRenderContext . |
void |
CanvasControl.zoomTo(RectD bounds)
Sets the zoom level and view port center so that the given rectangle in world coordinates fits the viewport.
|
Constructor and Description |
---|
ContextConfigurator(RectD worldBounds)
Creates a new
ContextConfigurator instance for the given world bounds and scale. |
ContextConfigurator(RectD worldBounds,
double scale)
Creates a new
ContextConfigurator instance for the given world bounds and scale. |
PixelImageExporter(RectD worldBounds)
Initializes a new
PixelImageExporter that exports the content
of the given bounds in world coordinates. |
ViewportAnimation(CanvasControl canvas,
RectD targetBounds,
Duration preferredDuration)
Creates a new instance of
ViewportAnimation . |
Modifier and Type | Method and Description |
---|---|
protected abstract RectD |
ConstrainedReshapeHandler.constrainNewBounds(IInputModeContext context,
RectD originalBounds,
RectD newBounds)
Callback that needs to implement the constraints for the new bounds.
|
RectD |
ReshapeRectangleContext.getInitialBounds()
Gets the initial bounds of the node.
|
RectD |
NodeSizeConstraintProvider.getMinimumEnclosedArea(INode node) |
RectD |
INodeSizeConstraintProvider.getMinimumEnclosedArea(INode node)
Returns the minimum area that needs to be enclosed by the given
node . |
protected RectD |
NodeDropInputMode.getNodeLayout(PointD mouseLocation,
SizeD size)
Calculates the layout of the new node.
|
protected RectD |
StripeDropInputMode.getPreviewTableLayout(PointD location,
SizeD size)
Calculates the layout of the new table.
|
RectD |
MarqueeSelectionEventArgs.getRectangle()
Gets the current
selection rectangle of the
MarqueeSelectionInputMode . |
RectD |
MarqueeSelectionInputMode.getSelectionRectangle()
Gets the current or last marquee selection rectangle.
|
protected RectD |
TextEditorInputMode.getTextBoxBounds()
Returns the bounds of the TextBox.
|
protected RectD |
ReparentStripePositionHandler.updateTargetVisualizationBounds(RectD originalTargetBounds,
StripeReparentPolicy reparentPosition,
IStripe targetStripe)
Updates the visualization bounds for the target visualization depending on the provided values.
|
Modifier and Type | Method and Description |
---|---|
IListEnumerable<RectD> |
GraphSnapContext.findSameHeightEntries(double size,
double maxSize,
double minSize)
Finds the entries (
RectD s) that have been registered using the GraphSnapContext.addSameHeightEntry(RectD) previously
that best match the given constraints. |
IListEnumerable<RectD> |
GraphSnapContext.findSameWidthEntries(double size,
double maxSize,
double minSize)
Finds the entries (
RectD s) that have been registered using the GraphSnapContext.addSameWidthEntry(RectD) previously that
best match the given constraints. |
Modifier and Type | Method and Description |
---|---|
protected void |
NodeSnapLineProvider.addCenterSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that is called by
NodeSnapLineProvider.addSnapLines(GraphSnapContext, CollectGraphSnapLinesEventArgs, IModelItem)
the collect snap lines for the centers of the node. |
protected void |
NodeSnapLineProvider.addFixedNodeBorderSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that adds the fixed snap lines around the border of the nodes'
layout . |
protected void |
NodeSnapLineProvider.addNodeToNodeSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that adds the fixed snap lines around the node for other nodes to snap to using the
NodeToNodeDistance . |
protected void |
NodeSnapLineProvider.addNodeToSegmentSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that adds the fixed snap lines around the node for edge segments to snap to.
|
protected void |
NodeSnapLineProvider.addPortSnapLines(GraphSnapContext context,
CollectGraphSnapLinesEventArgs args,
INode node,
RectD layout)
Callback method that is called by
NodeSnapLineProvider.addSnapLines(GraphSnapContext, CollectGraphSnapLinesEventArgs, IModelItem)
the collect snap lines to snap ports to at the provided node. |
void |
GraphSnapContext.addSameHeightEntry(RectD rectangle)
Adds an entry for the same-height-snapping.
|
void |
GraphSnapContext.addSameWidthEntry(RectD rectangle)
Adds an entry for the same-width-snapping.
|
void |
TableReshapeHandler.cancelReshape(IInputModeContext context,
RectD originalBounds) |
void |
IReshapeHandler.cancelReshape(IInputModeContext context,
RectD originalBounds)
Called by clients to indicate that the reshaping has been canceled by the user.
|
void |
ConstrainedReshapeHandler.cancelReshape(IInputModeContext context,
RectD originalBounds)
Cancels the move operation and calls
ConstrainedReshapeHandler.onCanceled(IInputModeContext, RectD) . |
protected void |
NodeReshapeSnapResultProvider.collectGridSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
ReshapeRectangleContext reshapeContext,
RectD suggestedLayout)
Collects the snap results for the grid.
|
protected void |
NodeSnapResultProvider.collectGridSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
RectD suggestedLayout,
INode node)
Collects snap results that snap the node to a grid and
adds them
to the argument. |
protected void |
NodeReshapeSnapResultProvider.collectSameSizeSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
ReshapeRectangleContext reshapeContext,
RectD suggestedLayout)
Collects the snap results that make the node the same size as other elements.
|
protected void |
NodeReshapeSnapResultProvider.collectSnapLineResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
ReshapeRectangleContext reshapeContext,
RectD suggestedLayout)
Collects the snap results that makes the node's bounds snap to the
fixed node snap lines . |
protected void |
NodeSnapResultProvider.collectSnapLineSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
RectD suggestedLayout,
INode node)
Collects the results for the given layout for all snap lines in question.
|
protected void |
NodeSnapResultProvider.collectSnapResults(CollectSnapResultsEventArgs args,
OrthogonalSnapLine snapLine,
RectD suggestedLayout,
INode node)
Verifies whether the node will snap to the given snap line.
|
void |
NodeSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
RectD suggestedLayout,
INode node) |
void |
INodeSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
RectD suggestedLayout,
INode node)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s to which this node can potentially snap. |
protected abstract RectD |
ConstrainedReshapeHandler.constrainNewBounds(IInputModeContext context,
RectD originalBounds,
RectD newBounds)
Callback that needs to implement the constraints for the new bounds.
|
protected INode |
NodeDropInputMode.createNode(IInputModeContext context,
IGraph graph,
INode node,
IModelItem dropTarget,
RectD layout)
Creates the node in the graph after it's been dropped.
|
protected StripeReparentPolicy |
ReparentStripePositionHandler.determineGesture(IInputModeContext context,
IPoint location,
IStripe sourceStripe,
StripeSubregion targetSubregion,
RectD targetBounds)
Determine the reparent gesture that would result from the given parameters.
|
IEnumerable<OrthogonalSnapLine> |
GraphSnapContext.getAdditionalSnapLines(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
RectD area)
Gets a subset of
AdditionalSnapLines that matches the given orientation , snapType
and intersects with the provided area . |
Iterable<IBend> |
IBendSelectionTester.getBendsInBox(IInputModeContext context,
RectD rectangle)
Returns the bends within the given rectangle.
|
IEnumerable<OrthogonalSnapLine> |
GraphSnapContext.getFixedNodeSnapLines(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
RectD area)
Gets a subset of
FixedNodeSnapLines that matches the given orientation , snapType
and intersects with the provided area . |
IEnumerable<OrthogonalSnapLine> |
GraphSnapContext.getFixedPortSnapLines(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
RectD area)
Gets a subset of
FixedPortSnapLines that matches the given orientation , snapType
and intersects with the provided area . |
IEnumerable<OrthogonalSnapLine> |
GraphSnapContext.getFixedSegmentSnapLines(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
RectD area)
Gets a subset of
FixedSegmentSnapLines that matches the given orientation , snapType
and intersects with the provided area . |
IEnumerable<IPort> |
IPortSelectionTester.getPortsInBox(IInputModeContext context,
RectD rectangle)
Returns the ports for the given marquee rectangle.
|
protected IEnumerable<SnapLine> |
NodeReshapeSnapResultProvider.getSnapLines(GraphSnapContext context,
INode node,
ReshapeRectangleContext reshapeContext,
RectD suggestedLayout)
Helper method for method
NodeReshapeSnapResultProvider.collectSnapLineResults(GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext, RectD)
that gets all the SnapLine that should be checked for the currently moved node. |
void |
TableReshapeHandler.handleReshape(IInputModeContext context,
RectD originalBounds,
RectD newBounds) |
void |
IReshapeHandler.handleReshape(IInputModeContext context,
RectD originalBounds,
RectD newBounds)
Called by clients to indicate that the element has been dragged and its position should be updated.
|
void |
ConstrainedReshapeHandler.handleReshape(IInputModeContext context,
RectD originalBounds,
RectD newBounds)
Handles the reshape operation and subsequently calls
ConstrainedReshapeHandler.onReshaped(IInputModeContext, RectD, RectD) . |
boolean |
IMarqueeTestable.isInBox(IInputModeContext context,
RectD rectangle)
This callback returns
true if the corresponding item is considered to intersect the given rectangular box. |
protected void |
ConstrainedReshapeHandler.onCanceled(IInputModeContext context,
RectD originalBounds)
Called when the
ConstrainedReshapeHandler.cancelReshape(IInputModeContext, RectD) method has been called. |
protected void |
ConstrainedReshapeHandler.onFinished(IInputModeContext context,
RectD originalBounds,
RectD newBounds)
Called when the
ConstrainedReshapeHandler.reshapeFinished(IInputModeContext, RectD, RectD) method has been called. |
protected void |
ConstrainedReshapeHandler.onInitialized(IInputModeContext context,
RectD originalBounds)
Called when the
ConstrainedReshapeHandler.initializeReshape(IInputModeContext) method has been called. |
protected void |
ConstrainedReshapeHandler.onReshaped(IInputModeContext context,
RectD originalBounds,
RectD newBounds)
Called when the
ConstrainedReshapeHandler.handleReshape(IInputModeContext, RectD, RectD) operation has been performed. |
void |
TableReshapeHandler.reshapeFinished(IInputModeContext context,
RectD originalBounds,
RectD newBounds) |
void |
IReshapeHandler.reshapeFinished(IInputModeContext context,
RectD originalBounds,
RectD newBounds)
Called by clients to indicate that the reshaping has just been finished.
|
void |
ConstrainedReshapeHandler.reshapeFinished(IInputModeContext context,
RectD originalBounds,
RectD newBounds)
Handles the finish operation and invokes
ConstrainedReshapeHandler.onFinished(IInputModeContext, RectD, RectD) . |
void |
GraphEditorInputMode.setNodeLayout(INode node,
RectD layout)
Updates the bounds of the node.
|
protected ICanvasObject |
ReparentStripePositionHandler.updateTargetVisualization(IInputModeContext context,
ICanvasObject targetVisualization,
IStripe targetStripe,
StripeReparentPolicy reparentPosition,
RectD targetBounds)
Modifies the target visualization itself.
|
protected RectD |
ReparentStripePositionHandler.updateTargetVisualizationBounds(RectD originalTargetBounds,
StripeReparentPolicy reparentPosition,
IStripe targetStripe)
Updates the visualization bounds for the target visualization depending on the provided values.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NodeReshapeSnapResultProvider.addSameSizeSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
SnapLineOrientation orientation,
Iterable<RectD> rectangles,
double finalSize,
double snapDelta)
Adds a snap result for "same size" to the collect event argument.
|
Constructor and Description |
---|
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. |