Package | Description |
---|---|
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 |
---|---|
ICanvasObjectGroup |
ICanvasObjectGroup.addGroup()
Adds a new
ICanvasObjectGroup to this group in the current scene graph. |
protected ICanvasObjectGroup |
CanvasControl.createBackgroundGroup()
Factory method for the BackgroundGroup property.
|
protected ICanvasObjectGroup |
GraphModelManager.createContentGroup()
Factory method that creates the
ContentGroup . |
protected ICanvasObjectGroup |
CanvasControl.createContentGroup()
Factory method for the ContentGroup property.
|
protected ICanvasObjectGroup |
GraphModelManager.createEdgeGroup()
Factory method for the
EdgeGroup property. |
protected ICanvasObjectGroup |
GraphModelManager.createEdgeLabelGroup()
Factory method for the
EdgeLabelGroup property. |
protected ICanvasObjectGroup |
CanvasControl.createFocusGroup()
Factory method for the
FocusGroup property. |
protected ICanvasObjectGroup |
CanvasControl.createHighlightGroup()
Factory method for the HighlightGroup property.
|
protected ICanvasObjectGroup |
CanvasControl.createInputModeGroup()
Factory method for the InputModeGroup property.
|
protected ICanvasObjectGroup |
GraphModelManager.createNodeGroup()
Factory method for the
NodeGroup property. |
protected ICanvasObjectGroup |
GraphModelManager.createNodeLabelGroup()
Factory method for the
NodeLabelGroup property. |
protected ICanvasObjectGroup |
GraphModelManager.createPortGroup()
Factory method for the
PortGroup property. |
protected ICanvasObjectGroup |
CanvasControl.createSelectionGroup()
Factory method for the SelectionGroup property.
|
ICanvasObjectGroup |
CanvasControl.getBackgroundGroup()
Gets the BackgroundGroup property.
|
ICanvasObjectGroup |
ItemModelManager.getCanvasObjectGroup()
Gets the canvas object group used by
ItemModelManager.install(Object) . |
protected ICanvasObjectGroup |
GraphModelManager.getCanvasObjectGroup(IEdge edge)
Retrieves the Canvas Object group to use for the given edge.
|
protected ICanvasObjectGroup |
GraphModelManager.getCanvasObjectGroup(ILabel label)
Retrieves the Canvas Object group to use for the given label.
|
protected ICanvasObjectGroup |
GraphModelManager.getCanvasObjectGroup(INode node)
Retrieves the Canvas Object group to use for the given node.
|
protected ICanvasObjectGroup |
GraphModelManager.getCanvasObjectGroup(IPort port)
Retrieves the Canvas Object group to use for the given port.
|
protected ICanvasObjectGroup |
SelectionIndicatorManager.getCanvasObjectGroup(T item)
Callback used by
ModelManager.install(Object) to retrieve the installer for a given item. |
protected abstract ICanvasObjectGroup |
ModelManager.getCanvasObjectGroup(T item)
Callback used by
ModelManager.install(java.lang.Object) to retrieve the canvas object group for a given item. |
protected ICanvasObjectGroup |
ItemModelManager.getCanvasObjectGroup(T item)
|
protected ICanvasObjectGroup |
HighlightIndicatorManager.getCanvasObjectGroup(T item)
Callback used by
ModelManager.install(Object) to retrieve the installer for a given item. |
protected ICanvasObjectGroup |
FocusIndicatorManager.getCanvasObjectGroup(T item)
Callback used by
ModelManager.install(java.lang.Object) to retrieve the installer for a given item. |
ICanvasObjectGroup |
GraphModelManager.getContentGroup()
Gets the content group this manager instance uses to add visual representation of the graph to.
|
ICanvasObjectGroup |
CanvasControl.getContentGroup()
Gets the ContentGroup property.
|
ICanvasObjectGroup |
GraphModelManager.getEdgeGroup()
Gets the
ICanvasObjectGroup instance that will be used for installing edge styles. |
ICanvasObjectGroup |
GraphModelManager.getEdgeLabelGroup()
Gets the
ICanvasObjectGroup instance that will be used for installing edge label styles. |
ICanvasObjectGroup |
CanvasControl.getFocusGroup()
Gets the HighlightGroup property.
|
ICanvasObjectGroup |
ICanvasObject.getGroup()
Gets the parent group of this instance.
|
ICanvasObjectGroup |
CanvasControl.getHighlightGroup()
Gets the HighlightGroup property.
|
ICanvasObjectGroup |
CanvasControl.getInputModeGroup()
Gets the InputModeGroup property.
|
ICanvasObjectGroup |
GraphModelManager.getNodeGroup()
Gets the
ICanvasObjectGroup instance that will be used for installing node styles. |
ICanvasObjectGroup |
GraphModelManager.getNodeLabelGroup()
Gets the
ICanvasObjectGroup instance that will be used for installing node label styles. |
ICanvasObjectGroup |
GraphModelManager.getPortGroup()
Gets the
ICanvasObjectGroup instance that will be used for installing port styles. |
ICanvasObjectGroup |
CanvasControl.getRootGroup()
Gets the root of the scene graph.
|
ICanvasObjectGroup |
CanvasControl.getSelectionGroup()
Gets the SelectionGroup property.
|
Modifier and Type | Method and Description |
---|---|
ICanvasObject |
RectangleIndicatorInstaller.addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item) |
ICanvasObject |
PointSelectionIndicatorInstaller.addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item) |
ICanvasObject |
OrientedRectangleIndicatorInstaller.addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item) |
ICanvasObject |
NodeStyleDecorationInstaller.addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item)
Installs a rendering for the
item if it is an INode . |
ICanvasObject |
LabelStyleDecorationInstaller.addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item)
Installs a rendering for the
item if it is an ILabel . |
ICanvasObject |
ICanvasObjectInstaller.addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item)
This the main method of the interface that performs the installation of an item's visual representation in the
canvas
by adding ICanvasObject s. |
ICanvasObject |
EdgeStyleDecorationInstaller.addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item)
Installs a rendering for the
item if it is an IEdge . |
ICanvasObject |
EdgeDecorationInstaller.addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item)
Installs a rendering for the
item if it is an IEdge that will use the EdgeDecorationInstaller.getBendDrawing(CanvasControl, IEdge)
and EdgeDecorationInstaller.getPen(CanvasControl, IEdge) to render the path and bends. |
IEnumerable<ICanvasObject> |
CanvasControl.getCanvasObjects(ICanvasObjectGroup group)
Enumerates over all possible
ICanvasObject instances in the tree below the given group. |
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<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 |
CanvasControl.setBackgroundGroup(ICanvasObjectGroup value)
Sets the BackgroundGroup property.
|
void |
ItemModelManager.setCanvasObjectGroup(ICanvasObjectGroup value)
Sets the canvas object group used by
ItemModelManager.install(Object) . |
void |
GraphModelManager.setContentGroup(ICanvasObjectGroup value)
Sets the content group this manager instance uses to add visual representation of the graph to.
|
void |
CanvasControl.setContentGroup(ICanvasObjectGroup value)
Sets the ContentGroup property.
|
void |
CanvasControl.setFocusGroup(ICanvasObjectGroup value)
Sets the HighlightGroup property.
|
void |
ICanvasObject.setGroup(ICanvasObjectGroup value)
Sets the parent group of this instance.
|
void |
CanvasControl.setHighlightGroup(ICanvasObjectGroup value)
Sets the HighlightGroup property.
|
void |
CanvasControl.setInputModeGroup(ICanvasObjectGroup value)
Sets the InputModeGroup property.
|
void |
CanvasControl.setSelectionGroup(ICanvasObjectGroup value)
Sets the SelectionGroup property.
|
<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.
|
void |
CanvasControl.updateContentRect(InsetsD margins,
ICanvasObjectGroup group)
Updates the
ContentRect to encompass the bounds by all elements in the current scene graph
plus the given margins. |
Constructor and Description |
---|
GraphModelManager(CanvasControl canvas,
ICanvasObjectGroup contentGroup)
Creates a manager instance for the given control.
|