com.yworks.yfiles.server.graphml.flexio.data
Class IconLabelStyle

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.IconLabelStyle
All Implemented Interfaces:
IIconLabelStyleDecorator, ILabelStyle, ISharedInstanceProvider

public class IconLabelStyle
extends java.lang.Object
implements IIconLabelStyleDecorator, ISharedInstanceProvider

Data object for the yFiles FLEX client IconLabelStyle.


Constructor Summary
IconLabelStyle(ILabelModelParameter iconPlacement)
          Creates a new instance using the provided parameters.
 
Method Summary
 IIcon getIcon()
          The icon to paint for the label.
 ILabelModelParameter getIconPlacement()
          Gets the placement model parameter.
 ILabelStyle getInnerStyle()
          The inner style that gets decorated by this decorator.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 boolean isAutoFlip()
          Get whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.
 boolean isClipText()
          Whether the label's text will be clipped.
 void setAutoFlip(boolean autoFlip)
          Set whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.
 void setBackgroundFill(IFill backgroundFill)
          Set the label's background color.
 void setBackgroundStroke(IStroke backgroundStroke)
          Set the label's background stroke.
 void setClipText(boolean clipText)
          Set whether the label's text should be clipped.
 void setFont(Font font)
          Set the font to use for the label text.
 void setFontFill(IFill fontFill)
          Set the font color of the label text.
 void setIcon(IIcon icon)
          The icon to paint for the label.
 void setIconPlacement(ILabelModelParameter iconPlacement)
          Sets the placement model parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconLabelStyle

public IconLabelStyle(ILabelModelParameter iconPlacement)
Creates a new instance using the provided parameters.

Parameters:
iconPlacement - the placement of the icon.
Method Detail

setAutoFlip

public void setAutoFlip(boolean autoFlip)
Set whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.


setIconPlacement

public void setIconPlacement(ILabelModelParameter iconPlacement)
Sets the placement model parameter.

All valid node label model parameters can be used. The label's layout will be interpreted as the node's layout and the icon will be placed relative to that layout as if it was a node's label.


setIcon

public void setIcon(IIcon icon)
The icon to paint for the label.


setClipText

public void setClipText(boolean clipText)
Set whether the label's text should be clipped.


isClipText

public boolean isClipText()
Whether the label's text will be clipped.


setFontFill

public void setFontFill(IFill fontFill)
Set the font color of the label text.


setBackgroundFill

public void setBackgroundFill(IFill backgroundFill)
Set the label's background color.


setBackgroundStroke

public void setBackgroundStroke(IStroke backgroundStroke)
Set the label's background stroke.


setFont

public void setFont(Font font)
Set the font to use for the label text.


getInnerStyle

public ILabelStyle getInnerStyle()
The inner style that gets decorated by this decorator.

This class always uses a SimpleLabelStyle.

Specified by:
getInnerStyle in interface IIconLabelStyleDecorator

getIconPlacement

public ILabelModelParameter getIconPlacement()
Gets the placement model parameter.

All valid node label model parameters can be used. The label's layout will be interpreted as the node's layout and the icon will be placed relative to that layout as if it was a node's label.

Specified by:
getIconPlacement in interface IIconLabelStyleDecorator

getIcon

public IIcon getIcon()
The icon to paint for the label.

Specified by:
getIcon in interface IIconLabelStyleDecorator

isAutoFlip

public boolean isAutoFlip()
Get whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.

Specified by:
isAutoFlip in interface IIconLabelStyleDecorator

getSharedInstances

public java.util.Collection getSharedInstances()
Description copied from interface: ISharedInstanceProvider
Returns an Collection for objects that shall be shared.

Specified by:
getSharedInstances in interface ISharedInstanceProvider
Returns:


Copyright © 2000-2013 yWorks GmbH. All rights reserved