org.jhotdraw.geom
Class DoubleStroke
java.lang.Object
org.jhotdraw.geom.DoubleStroke
- All Implemented Interfaces:
- java.awt.Stroke
- Direct Known Subclasses:
- GrowStroke
public class DoubleStroke
- extends java.lang.Object
- implements java.awt.Stroke
Draws a double stroke (an outline of an outline).
The inner width of a DoubleStroke defines the distance between the two
outlines being drawn. The outline width of a DoubleStroke defines the
thickness of the outline.
- Version:
- 1.0 2006-06-18 Fixed bugs.
1.0 21. March 2006 Created.
- Author:
- Werner Randelshofer
Constructor Summary |
DoubleStroke(float innerWidth,
float outlineWidth)
|
DoubleStroke(float innerWidth,
float outlineWidth,
int cap,
int join,
float miterLimit,
float[] dashes,
float dashPhase)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleStroke
public DoubleStroke(float innerWidth,
float outlineWidth)
DoubleStroke
public DoubleStroke(float innerWidth,
float outlineWidth,
int cap,
int join,
float miterLimit,
float[] dashes,
float dashPhase)
createStrokedShape
public java.awt.Shape createStrokedShape(java.awt.Shape s)
- Specified by:
createStrokedShape
in interface java.awt.Stroke
traceStroke
protected void traceStroke(BezierPath bp,
java.awt.geom.GeneralPath left,
java.awt.geom.GeneralPath right)