|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yworks.yfiles.server.graphml.flexio.data.NodeStyleLabelStyleAdapter
A yFiles FLEX client label style data object that uses a node style instance to render the background and a label style instance to render the foreground of a label.
Constructor Summary | |
NodeStyleLabelStyleAdapter(INodeStyle nodeStyle,
ILabelStyle labelStyle)
Create a new instance using the given node style and label style |
Method Summary | |
boolean |
canCalculateSize(Label l)
Whether the size of the given label can be calculated. |
YDimension |
getCalculatedSize(Label l)
Calculates the size of a given label. |
ILabelStyle |
getLabelStyle()
The label style that will be used to draw the foreground of the label. |
INodeStyle |
getNodeStyle()
The node style that will be used to draw the background of the label. |
java.util.Collection |
getSharedInstances()
Returns an Collection for objects that shall be shared. |
void |
setLabelStyle(ILabelStyle labelStyle)
The label style that will be used to draw the foreground of the label. |
void |
setNodeStyle(INodeStyle nodeStyle)
The node style that will be used to draw the background of the label. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeStyleLabelStyleAdapter(INodeStyle nodeStyle, ILabelStyle labelStyle)
nodeStyle
- The node style to use for painting the label's backgroundlabelStyle
- The label style to use for painting the label's foregroundMethod Detail |
public INodeStyle getNodeStyle()
public void setNodeStyle(INodeStyle nodeStyle)
public ILabelStyle getLabelStyle()
public void setLabelStyle(ILabelStyle labelStyle)
public YDimension getCalculatedSize(Label l) throws java.lang.IllegalArgumentException
canCalculateSize(Label)
should be
queried if all prerequesites are met to calculate the size.
getCalculatedSize
in interface LabelSizeCalculator
l
- The label to calculate the size for.
java.lang.IllegalArgumentException
- If the size of the label cannot be calculated.public boolean canCalculateSize(Label l)
This method should always be called before getCalculatedSize(Label)
is called.
canCalculateSize
in interface LabelSizeCalculator
l
- The label to calculate the size for.
true if the size can be calculated.
public java.util.Collection getSharedInstances()
ISharedInstanceProvider
Collection
for objects that shall be shared.
getSharedInstances
in interface ISharedInstanceProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |