Cytoscape 2.8.0 API

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


Field Summary
protected  LineStyle lineStyle
           
protected  float width
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lineStyle

protected LineStyle lineStyle

width

protected float width
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.

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.