Cytoscape 2.7.0 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual.strokes
Class ShapeStroke

java.lang.Object
  extended by cytoscape.visual.strokes.ShapeStroke
All Implemented Interfaces:
WidthStroke, Stroke
Direct Known Subclasses:
ContiguousArrowStroke, DotStroke, ParallelStroke, PipeStroke, SeparateArrowStroke, SineWaveStroke

public abstract class ShapeStroke
extends Object
implements WidthStroke


Constructor Summary
ShapeStroke(Shape[] shapes, float advance, LineStyle lineStyle, float width)
           
 
Method Summary
 Shape createStrokedShape(Shape shape)
           
 LineStyle getLineStyle()
           
abstract  WidthStroke newInstanceForWidth(float w)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShapeStroke

public ShapeStroke(Shape[] shapes,
                   float advance,
                   LineStyle lineStyle,
                   float width)
Method Detail

createStrokedShape

public Shape createStrokedShape(Shape shape)
Specified by:
createStrokedShape in interface Stroke

getLineStyle

public LineStyle getLineStyle()
Specified by:
getLineStyle in interface WidthStroke
Returns:
the LineStyle associated with this particular WidthStroke.

toString

public String toString()
Overrides:
toString in class Object

newInstanceForWidth

public abstract WidthStroke newInstanceForWidth(float w)
Specified by:
newInstanceForWidth in interface WidthStroke
Returns:
A new instance of this WidthStroke with the specified width.

www.cytoscape.org