public class PolylineEdgeStyle extends Object implements IEdgeStyle, IArrowOwner, Cloneable
IEdgeStyle where straight line segments are used to connect the bends.| Constructor and Description |
|---|
PolylineEdgeStyle()
Creates a new instance using
PolylineEdgeStyleRenderer as renderer. |
PolylineEdgeStyle(PolylineEdgeStyleRenderer renderer)
Creates a new instance using the provided renderer.
|
| Modifier and Type | Method and Description |
|---|---|
PolylineEdgeStyle |
clone()
Performs a
Object.clone(). |
Pen |
getPen()
Gets the
Pen for the line. |
PolylineEdgeStyleRenderer |
getRenderer()
Gets the renderer implementation that has been supplied to this instance in the constructor.
|
double |
getSmoothingLength()
Gets the smoothing length used for creating smooth bends.
|
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.
|
void |
setPen(Pen value)
Sets the
Pen for the line. |
void |
setSmoothingLength(double value)
Sets the smoothing length used for creating smooth bends.
|
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 PolylineEdgeStyle()
PolylineEdgeStyleRenderer as renderer.public PolylineEdgeStyle(PolylineEdgeStyleRenderer renderer)
renderer - The custom renderer for this style instance.public PolylineEdgeStyle clone()
Object.clone().clone in interface ICloneableclone in class ObjectObject.clone()public final Pen getPen()
setPen(Pen)public final PolylineEdgeStyleRenderer getRenderer()
getRenderer in interface IEdgeStylepublic final double getSmoothingLength()
A value of 0.0d will disable smoothing.
The default value is 0.
setSmoothingLength(double)public final IArrow getSourceArrow()
Arrow instances may be shared between multiple style instances.
This property may not be null. To have no source arrow set, use IArrow.NONE instead.
The default value is IArrow.NONE.
getSourceArrow in interface IArrowOwnersetSourceArrow(IArrow)public final IArrow getTargetArrow()
Arrow instances may be shared between multiple style instances.
This property may not be null. To have no target arrow set, use IArrow.NONE instead.
The default value is IArrow.NONE.
getTargetArrow in interface IArrowOwnersetTargetArrow(IArrow)public final void setSmoothingLength(double value)
A value of 0.0d will disable smoothing.
The default value is 0.
value - The SmoothingLength to set.getSmoothingLength()public final void setSourceArrow(IArrow value)
Arrow instances may be shared between multiple style instances.
This property may not be null. To have no source arrow set, use IArrow.NONE instead.
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.
This property may not be null. To have no target arrow set, use IArrow.NONE instead.
The default value is IArrow.NONE.
value - The TargetArrow to set.getTargetArrow()