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

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.AbstractEdgeStyle
      extended bycom.yworks.yfiles.server.graphml.flexio.data.PolylineEdgeStyle
All Implemented Interfaces:
IEdgeStyle, ISharedInstanceProvider

public class PolylineEdgeStyle
extends AbstractEdgeStyle

An edge style data object that draws edges consisting of multiple lines using a chosen IStroke.


Constructor Summary
PolylineEdgeStyle()
           
 
Method Summary
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 double getSmoothing()
          The smoothing length used for creating smooth bends.
 IStroke getStroke()
          The stroke used for drawing an edge with this style.
 void setSmoothing(double smoothing)
          The smoothing length used for creating smooth bends.
 void setStroke(IStroke stroke)
          The stroke used for drawing an edge with this style.
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.data.AbstractEdgeStyle
getSourceArrow, getTargetArrow, setSourceArrow, setTargetArrow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolylineEdgeStyle

public PolylineEdgeStyle()
Method Detail

getStroke

public IStroke getStroke()
The stroke used for drawing an edge with this style. The default is a gray stroke with weight 1.0.


setStroke

public void setStroke(IStroke stroke)
The stroke used for drawing an edge with this style. The default is a gray stroke with weight 1.0.


getSmoothing

public double getSmoothing()
The smoothing length used for creating smooth bends.

A value of 0.0 (the default) will disable smoothing.


setSmoothing

public void setSmoothing(double smoothing)
The smoothing length used for creating smooth bends.

A value of 0.0 (the default) will disable smoothing.


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
Overrides:
getSharedInstances in class AbstractEdgeStyle


Copyright © 2000-2013 yWorks GmbH. All rights reserved