|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yworks.yfiles.server.graphml.flexio.data.SimpleLabelStyle
The default label style data object, which allows to specify the visual properties of a label.
Constructor Summary | |
SimpleLabelStyle()
|
Method Summary | |
boolean |
canCalculateSize(Label l)
Whether the size of the given label can be calculated. |
java.lang.String |
getAlign()
Returns the horizontal alignment or null if the default alignment is used. |
IFill |
getBackgroundFill()
The fill to use for the background box of the label or null |
IStroke |
getBackgroundStroke()
The stroke to use for the background box of the label or null |
YDimension |
getCalculatedSize(Label l)
Calculates the size of a given label. |
Font |
getFont()
The font for the label's text. |
IFill |
getFontFill()
The font color for the label's text. |
java.util.Collection |
getSharedInstances()
Returns an Collection for objects that shall be shared. |
boolean |
isAutoFlip()
Whether the label text should be automatically flipped if it would be upside-down |
boolean |
isClipText()
Whether text should be clipped. |
void |
setAlign(java.lang.String align)
Sets the horizontal alignment. |
void |
setAutoFlip(boolean autoFlip)
Whether the label text should be automatically flipped if it would be upside-down |
void |
setBackgroundFill(IFill backgroundFill)
The fill to use for the background box of the label or null |
void |
setBackgroundStroke(IStroke backgroundStroke)
The stroke to use for the background box of the label or null |
void |
setClipText(boolean clipText)
Whether text should be clipped. |
void |
setFont(Font font)
The font for the label's text. |
void |
setFontFill(IFill fontFill)
The font color for the label's text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleLabelStyle()
Method Detail |
public Font getFont()
public void setFont(Font font)
public boolean isClipText()
public void setClipText(boolean clipText)
public boolean isAutoFlip()
public void setAutoFlip(boolean autoFlip)
public java.lang.String getAlign()
null
if the default alignment is used.
public void setAlign(java.lang.String align)
Near
Far
Center
Justify
public IFill getFontFill()
public void setFontFill(IFill fontFill)
public IFill getBackgroundFill()
null
public void setBackgroundFill(IFill backgroundFill)
null
public IStroke getBackgroundStroke()
null
public void setBackgroundStroke(IStroke backgroundStroke)
null
public YDimension getCalculatedSize(Label l) throws java.lang.IllegalArgumentException
Before calling this method, canCalculateSize(Label)
should be
queried if all prerequisites 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 verifies that the given label is not null and a font is set to this style instance.
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 |