public class ArcEdgeStyle extends Object implements IEdgeStyle, IArrowOwner, Cloneable
The rendering does not take into account bends of an edge, instead the arc's height is determined as a fixed ratio or fixed height.
This style uses an ArcEdgeStyleRenderer for its visualization.
| Constructor and Description |
|---|
ArcEdgeStyle()
Creates a new instance using
ArcEdgeStyleRenderer as renderer. |
ArcEdgeStyle(ArcEdgeStyleRenderer renderer)
Creates a new instance using the provided renderer.
|
| Modifier and Type | Method and Description |
|---|---|
ArcEdgeStyle |
clone()
Performs a
Object.clone(). |
double |
getHeight()
Gets the "height" of the arc.
|
Pen |
getPen()
Gets the
Pen that is used to draw the arc. |
ArcEdgeStyleRenderer |
getRenderer()
Gets the renderer implementation that has been supplied to this instance in the constructor.
|
IArrow |
getSourceArrow()
Gets the visual arrow at the source end of edges that use this style.
|
IArrow |
getTargetArrow()
Gets the visual arrow at the target end of edges that use this style.
|
boolean |
isFixedHeightEnabled()
Gets a value indicating whether this
ArcEdgeStyle interprets the Height value as an
absolute or relative value. |
boolean |
isHeightHandleProviderEnabled()
Gets a value indicating whether the
ArcEdgeStyleRenderer should provide an IHandle
if queried for the IHandleProvider implementation that allows for adjusting the Height
of this instance. |
void |
setFixedHeightEnabled(boolean value)
Sets a value indicating whether this
ArcEdgeStyle interprets the Height value as an
absolute or relative value. |
void |
setHeight(double value)
Sets the "height" of the arc.
|
void |
setHeightHandleProviderEnabled(boolean value)
Sets a value indicating whether the
ArcEdgeStyleRenderer should provide an IHandle
if queried for the IHandleProvider implementation that allows for adjusting the Height
of this instance. |
void |
setPen(Pen value)
Sets the
Pen that is used to draw the arc. |
void |
setSourceArrow(IArrow value)
Sets the visual arrow at the source end of edges that use this style.
|
void |
setTargetArrow(IArrow value)
Sets the visual arrow at the target end of edges that use this style.
|
public ArcEdgeStyle()
ArcEdgeStyleRenderer as renderer.public ArcEdgeStyle(ArcEdgeStyleRenderer renderer)
renderer - The custom renderer for this style instance.public ArcEdgeStyle clone()
Object.clone().clone in interface ICloneableclone in class ObjectObject.clone()public final double getHeight()
Depending on the setting of FixedHeightEnabled, this value is interpreted differently:
If FixedHeightEnabled is disabled, the height of the arc will depend on it's width. The
width will be multiplied by this value to obtain the height. If the FixedHeightEnabled
feature is enabled, this value will be interpreted as the absolute height.
The default value is 0.
setHeight(double)public final Pen getPen()
setPen(Pen)public final ArcEdgeStyleRenderer getRenderer()
getRenderer in interface IEdgeStylepublic final IArrow getSourceArrow()
Arrow instances may be shared between multiple style instances.
The default value is IArrow.NONE.
getSourceArrow in interface IArrowOwnersetSourceArrow(IArrow)public final IArrow getTargetArrow()
Arrow instances may be shared between multiple style instances.
The default value is IArrow.NONE.
getTargetArrow in interface IArrowOwnersetTargetArrow(IArrow)public final boolean isFixedHeightEnabled()
ArcEdgeStyle interprets the Height value as an
absolute or relative value.
The default value is true.
true if the height value should be interpreted as a fixed value, otherwise, false.getHeight(),
setFixedHeightEnabled(boolean)public final boolean isHeightHandleProviderEnabled()
ArcEdgeStyleRenderer should provide an IHandle
if queried for the IHandleProvider implementation that allows for adjusting the Height
of this instance.
The default value is true.
true(which is the default) if a handle should be provided; false otherwise.setHeightHandleProviderEnabled(boolean)public final void setFixedHeightEnabled(boolean value)
ArcEdgeStyle interprets the Height value as an
absolute or relative value.
The default value is true.
value - true if the height value should be interpreted as a fixed value, otherwise, false.getHeight(),
isFixedHeightEnabled()public final void setHeight(double value)
Depending on the setting of FixedHeightEnabled, this value is interpreted differently:
If FixedHeightEnabled is disabled, the height of the arc will depend on it's width. The
width will be multiplied by this value to obtain the height. If the FixedHeightEnabled
feature is enabled, this value will be interpreted as the absolute height.
The default value is 0.
value - The height of the arc, either relative or absolute.getHeight()public final void setHeightHandleProviderEnabled(boolean value)
ArcEdgeStyleRenderer should provide an IHandle
if queried for the IHandleProvider implementation that allows for adjusting the Height
of this instance.
The default value is true.
value - true(which is the default) if a handle should be provided; false otherwise.isHeightHandleProviderEnabled()public final void setSourceArrow(IArrow value)
Arrow instances may be shared between multiple style instances.
The default value is IArrow.NONE.
value - The SourceArrow to set.getSourceArrow()public final void setTargetArrow(IArrow value)
Arrow instances may be shared between multiple style instances.
The default value is IArrow.NONE.
value - The TargetArrow to set.getTargetArrow()