public class NodeStylePortStyleAdapter extends Object implements IPortStyle, Cloneable
| Constructor and Description |
|---|
NodeStylePortStyleAdapter()
Initializes a new instance of the
NodeStylePortStyleAdapter class. |
NodeStylePortStyleAdapter(INodeStyle nodeStyle)
Creates a port style that uses the provided node style to render the port.
|
| Modifier and Type | Method and Description |
|---|---|
NodeStylePortStyleAdapter |
clone()
Creates a copy of this object and returns it.
|
INodeStyle |
getNodeStyle()
Gets the
INodeStyle that is used for rendering the port. |
IPortStyleRenderer |
getRenderer()
Gets the renderer implementation that can be queried for implementations that provide details about the visual
appearance and visual behavior for a given port and this style instance.
|
SizeD |
getRenderSize()
Gets the
MutableSize of the port that will be displayed using
NodeStyle. |
void |
setNodeStyle(INodeStyle value)
Sets the
INodeStyle that is used for rendering the port. |
void |
setRenderSize(SizeD value)
Sets the
MutableSize of the port that will be displayed using
NodeStyle. |
public NodeStylePortStyleAdapter()
NodeStylePortStyleAdapter class.
This constructor uses an ellipse ShapeNodeStyle with a black brush for the NodeStyle
property.
public NodeStylePortStyleAdapter(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 style to use for rendering the port.public final NodeStylePortStyleAdapter clone()
ICloneableclone in interface ICloneableclone in class ObjectObject.clone()public final INodeStyle getNodeStyle()
INodeStyle that is used for rendering the port.setNodeStyle(INodeStyle)public final IPortStyleRenderer getRenderer()
IPortStyle
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
getRenderer in interface IPortStylepublic final SizeD getRenderSize()
MutableSize of the port that will be displayed using
NodeStyle.
The default value is (5,5).
setRenderSize(SizeD)public final void setNodeStyle(INodeStyle value)
INodeStyle that is used for rendering the port.value - The NodeStyle to set.getNodeStyle()public final void setRenderSize(SizeD value)
MutableSize of the port that will be displayed using
NodeStyle.
The default value is (5,5).
value - The RenderSize to set.getRenderSize()