Package | Description |
---|---|
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. |
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 | 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.
|
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 | Interface and Description |
---|---|
interface |
IRenderContext
An interface that describes the current context for rendering routines.
|
Modifier and Type | Field and Description |
---|---|
static ICanvasContext |
ICanvasContext.DEFAULT
Provides a default immutable context with a hit radius of 3 and a zoom level of 1.
|
Modifier and Type | Method and Description |
---|---|
static ICanvasContext |
ICanvasContext.create(CanvasControl canvas)
Provides a default immutable
ICanvasContext with the given values. |
static ICanvasContext |
ICanvasContext.create(CanvasControl canvas,
double zoom)
Provides a default immutable
ICanvasContext with the given values. |
static ICanvasContext |
ICanvasContext.create(CanvasControl canvas,
double zoom,
double hitTestRadius)
Provides a default immutable
ICanvasContext with the given values. |
ICanvasContext |
CanvasControl.getCanvasContext()
Returns an implementation of
ICanvasContext that describes the state of this CanvasControl . |
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. |
RectD |
IBoundsProvider.getBounds(ICanvasContext context)
Returns a tight rectangular area where the whole rendering would fit into.
|
RectD |
DefaultPortCandidateDescriptor.getBounds(ICanvasContext context) |
boolean |
ICanvasObjectDescriptor.isDirty(ICanvasContext context,
ICanvasObject canvasObject)
Determines whether the given canvas object is deemed dirty and needs updating.
|
boolean |
DefaultPortCandidateDescriptor.isDirty(ICanvasContext context,
ICanvasObject canvasObject) |
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) |
Modifier and Type | Interface and Description |
---|---|
interface |
IInputModeContext
The interface for the context object that is passed to
IInputMode instances during IInputMode.install(IInputModeContext, ConcurrencyController)
and IInputMode.uninstall(IInputModeContext) and IDragHandler implementations like IPositionHandler
and IHandle to provide additional context for the implementations. |