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:
- $Id: DoubleStroke.java 647 2010-01-24 22:52:59Z rawcoder $
- Author:
- Werner Randelshofer
Constructor Summary |
DoubleStroke(double innerWidth,
double outlineWidth)
|
DoubleStroke(double innerWidth,
double outlineWidth,
int cap,
int join,
double 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(double innerWidth,
double outlineWidth)
DoubleStroke
public DoubleStroke(double innerWidth,
double outlineWidth,
int cap,
int join,
double 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.Path2D.Double left,
java.awt.geom.Path2D.Double right)