public class NodeStyleStripeStyleAdapter extends Object implements IStripeStyle, Cloneable
Constructor and Description |
---|
NodeStyleStripeStyleAdapter()
Initializes a new instance of the
NodeStyleStripeStyleAdapter class. |
NodeStyleStripeStyleAdapter(INodeStyle nodeStyle)
Creates a stripe style that uses the provided node style to render the stripe.
|
Modifier and Type | Method and Description |
---|---|
NodeStyleStripeStyleAdapter |
clone()
Creates a copy of this object and returns it.
|
INodeStyle |
getNodeStyle()
Gets the
INodeStyle that is used for rendering the stripe. |
IStripeStyleRenderer |
getRenderer()
Gets the renderer implementation that can be queried for implementations that provide details about the visual
appearance and visual behavior for a given stripe and this style instance.
|
void |
setNodeStyle(INodeStyle value)
Sets the
INodeStyle that is used for rendering the stripe. |
public NodeStyleStripeStyleAdapter()
NodeStyleStripeStyleAdapter
class.
This constructor uses an rectangular ShapeNodeStyle
with a transparent brush and a black pen for the NodeStyle
property.
public NodeStyleStripeStyleAdapter(INodeStyle nodeStyle)
Note that the styles will be stored by reference, thus modifying the style will directly affect the rendering of this instance.
nodeStyle
- The node style to use for rendering the stripe.public final NodeStyleStripeStyleAdapter clone()
ICloneable
clone
in interface ICloneable
clone
in class Object
Object.clone()
public final INodeStyle getNodeStyle()
INodeStyle
that is used for rendering the stripe.setNodeStyle(INodeStyle)
public final IStripeStyleRenderer getRenderer()
IStripeStyle
The idiom for retrieving, e.g. an IVisualCreator
implementation for a given stripe is:
getRenderer
in interface IStripeStyle
public final void setNodeStyle(INodeStyle value)
INodeStyle
that is used for rendering the stripe.value
- The NodeStyle to set.getNodeStyle()