public class ShadowNodeStyleDecorator extends Object implements INodeStyle, Cloneable
Constructor and Description |
---|
ShadowNodeStyleDecorator()
Creates a new instance wrapping a simple
ShapeNodeStyle . |
ShadowNodeStyleDecorator(INodeStyle wrapped)
Creates a new instance wrapping the provided style.
|
Modifier and Type | Method and Description |
---|---|
ShadowNodeStyleDecorator |
clone()
Creates a copy of this object and returns it.
|
INodeStyleRenderer |
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.
|
INodeStyle |
getWrapped()
Gets the wrapped node style instance by reference.
|
void |
setWrapped(INodeStyle value)
Sets the wrapped node style instance by reference.
|
public ShadowNodeStyleDecorator()
ShapeNodeStyle
.
The provided instance is used by reference, so subsequent changes to the style will affect the appearance of this style.
getWrapped()
public ShadowNodeStyleDecorator(INodeStyle wrapped)
The provided instance is used by reference, so subsequent changes to the style will affect the appearance of this style.
wrapped
- The style to wrap.public final ShadowNodeStyleDecorator clone()
ICloneable
clone
in interface ICloneable
clone
in class Object
Object.clone()
public final INodeStyleRenderer getRenderer()
INodeStyle
The idiom for retrieving, e.g. an IVisualCreator
implementation for a given style is:
getRenderer
in interface INodeStyle
public final INodeStyle getWrapped()
setWrapped(INodeStyle)
public final void setWrapped(INodeStyle value)
value
- The Wrapped to set.getWrapped()