public class EdgeStyleDecorationInstaller extends Object implements ISelectionIndicatorInstaller, IHighlightIndicatorInstaller, IFocusIndicatorInstaller
IEdgeStyle
to render the selection, highlight or focus indicator of edges.
The ZoomPolicy
property defines how the zoom level affects the rendering of the indicator. It
can either scale according to the zoom level similar to regular graph items or have always to same thickness regardless
of the zoom, similar to the default yFiles indicators.
Constructor and Description |
---|
EdgeStyleDecorationInstaller()
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
ICanvasObject |
addCanvasObject(ICanvasContext context,
ICanvasObjectGroup group,
Object item)
Installs a rendering for the
item if it is an IEdge . |
IEdgeStyle |
getEdgeStyle()
The style to use for the rendering.
|
StyleDecorationZoomPolicy |
getZoomPolicy()
Specifies how the style is affected by the current zoom level.
|
void |
setEdgeStyle(IEdgeStyle value)
The style to use for the rendering.
|
void |
setZoomPolicy(StyleDecorationZoomPolicy value)
Specifies how the style is affected by the current zoom level.
|
public EdgeStyleDecorationInstaller()
public final ICanvasObject addCanvasObject(ICanvasContext context, ICanvasObjectGroup group, Object item)
item
if it is an IEdge
.addCanvasObject
in interface ICanvasObjectInstaller
context
- The canvas context.group
- The canvas object group to add the newly created ICanvasObject
to.item
- The item to install.public final IEdgeStyle getEdgeStyle()
Changes of the value of this property are not propagated to already created styles.
setEdgeStyle(IEdgeStyle)
public final StyleDecorationZoomPolicy getZoomPolicy()
Changes of the value of this property are propagated to all styles created by this instance and become immediately visible.
setZoomPolicy(StyleDecorationZoomPolicy)
public final void setEdgeStyle(IEdgeStyle value)
Changes of the value of this property are not propagated to already created styles.
value
- The EdgeStyle to set.getEdgeStyle()
public final void setZoomPolicy(StyleDecorationZoomPolicy value)
Changes of the value of this property are propagated to all styles created by this instance and become immediately visible.
value
- The ZoomPolicy to set.getZoomPolicy()