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

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.GeneralPathNodeStyle
All Implemented Interfaces:
INodeStyle, ISharedInstanceProvider

public class GeneralPathNodeStyle
extends java.lang.Object
implements INodeStyle, ISharedInstanceProvider

yFiles FLEX client general path node style data object.


Constructor Summary
GeneralPathNodeStyle()
           
 
Method Summary
 IFill getFill()
          The fill to be used for drawing the path
 java.awt.geom.GeneralPath getPath()
          Get the path that defines the boundary of the shape.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 IStroke getStroke()
          The stroke to be used for drawing the path
 void setFill(IFill fill)
          The fill to be used for drawing the path
 void setPath(java.awt.geom.GeneralPath path)
          Get the path that defines the boundary of the shape.
 void setStroke(IStroke stroke)
          The stroke to be used for drawing the path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralPathNodeStyle

public GeneralPathNodeStyle()
Method Detail

getStroke

public IStroke getStroke()
The stroke to be used for drawing the path


setStroke

public void setStroke(IStroke stroke)
The stroke to be used for drawing the path


getFill

public IFill getFill()
The fill to be used for drawing the path


setFill

public void setFill(IFill fill)
The fill to be used for drawing the path


getPath

public java.awt.geom.GeneralPath getPath()
Get the path that defines the boundary of the shape.


setPath

public void setPath(java.awt.geom.GeneralPath path)
Get the path that defines the boundary of the shape.

The path must be defined in such a way that <0,0> will be at the top left of a node's bounds and <1,1> will be at the lower right.
The path will be scaled accordingly during the painting.


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