public class ShapeNodeStyle extends Object implements INodeStyle, Cloneable
ShapeNodeShape
.
This style can be used together with ShapeNodeStyleRenderer
instances.
Constructor and Description |
---|
ShapeNodeStyle()
Creates a new instance using
ShapeNodeStyleRenderer as renderer. |
ShapeNodeStyle(ShapeNodeStyleRenderer renderer)
Creates a new instance using the provided renderer.
|
Modifier and Type | Method and Description |
---|---|
ShapeNodeStyle |
clone()
Creates a copy of this object and returns it.
|
Paint |
getPaint()
Gets the
Paint for this style. |
Pen |
getPen()
Gets the
Pen for this style. |
ShapeNodeStyleRenderer |
getRenderer()
Gets the renderer implementation that can be queried for implementations that provide details about the visual
appearance and visual behavior for a given node and this style instance.
|
ShapeNodeShape |
getShape()
Gets the shape for this style.
|
void |
setPaint(Paint value)
Sets the
Paint for this style. |
void |
setPen(Pen value)
Sets the
Pen for this style. |
void |
setShape(ShapeNodeShape value)
Sets the shape for this style.
|
public ShapeNodeStyle()
ShapeNodeStyleRenderer
as renderer.public ShapeNodeStyle(ShapeNodeStyleRenderer renderer)
renderer
- Custom renderer instance for this style.public final ShapeNodeStyle clone()
ICloneable
clone
in interface ICloneable
clone
in class Object
Object.clone()
public final Paint getPaint()
Paint
for this style.
The default value is Color.WHITE
.
setPaint(Paint)
public final Pen getPen()
setPen(Pen)
public final ShapeNodeStyleRenderer getRenderer()
INodeStyle
The idiom for retrieving, e.g. an IVisualCreator
implementation for a given style is:
getRenderer
in interface INodeStyle
public final ShapeNodeShape getShape()
The default value is ShapeNodeShape.RECTANGLE
.
setShape(ShapeNodeShape)
public final void setPaint(Paint value)
Paint
for this style.
The default value is Color.WHITE
.
value
- The Paint to set.getPaint()
public final void setShape(ShapeNodeShape value)
The default value is ShapeNodeShape.RECTANGLE
.
value
- The Shape to set.getShape()