cytoscape.visual.strokes
Class ShapeStroke
java.lang.Object
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
lineStyle
protected LineStyle lineStyle
width
protected float width
ShapeStroke
public ShapeStroke(Shape[] shapes,
float advance,
LineStyle lineStyle,
float width)
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.
Copyright 2010 Cytoscape Consortium. All rights reserved.