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

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

public class IconLabelStyleDecorator
extends java.lang.Object
implements IIconLabelStyleDecorator


Constructor Summary
IconLabelStyleDecorator(IIcon icon, ILabelModelParameter iconPlacement)
          Creates a new instance using a SimpleLabelStyle as the decorated style instance.
IconLabelStyleDecorator(IIcon icon, ILabelModelParameter iconPlacement, ILabelStyle innerStyle)
          Creates a new instance using the given style as the decorated style instance.
 
Method Summary
 IIcon getIcon()
          The icon to paint for the label.
 ILabelModelParameter getIconPlacement()
          Gets the placement model parameter.
 ILabelStyle getInnerStyle()
          The inner style that is decorated by this decorator.
 boolean isAutoFlip()
          Get whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.
 void setAutoFlip(boolean autoFlip)
          Set whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.
 void setIcon(IIcon icon)
          The icon to paint for the label.
 void setIconPlacement(ILabelModelParameter iconPlacement)
          Sets the placement model parameter.
protected  void setInnerStyle(ILabelStyle innerStyle)
          The inner style that is decorated by this decorator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconLabelStyleDecorator

public IconLabelStyleDecorator(IIcon icon,
                               ILabelModelParameter iconPlacement)
Creates a new instance using a SimpleLabelStyle as the decorated style instance.

Parameters:
icon - The icon to paint
iconPlacement - The icon placement parameters

IconLabelStyleDecorator

public IconLabelStyleDecorator(IIcon icon,
                               ILabelModelParameter iconPlacement,
                               ILabelStyle innerStyle)
Creates a new instance using the given style as the decorated style instance.

Parameters:
icon - The icon to paint
iconPlacement - The icon placement parameters
innerStyle - The style that will be decorated with an 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.


getInnerStyle

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

Specified by:
getInnerStyle in interface IIconLabelStyleDecorator

setInnerStyle

protected void setInnerStyle(ILabelStyle innerStyle)
The inner style that is decorated by this decorator.


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

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.



Copyright © 2000-2007 yWorks GmbH. All rights reserved