JHotDraw 7.5.1

org.jhotdraw.geom
Class DoubleStroke

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.awt.Shape createStrokedShape(java.awt.Shape s)
           
protected  void traceStroke(BezierPath bp, java.awt.geom.Path2D.Double left, java.awt.geom.Path2D.Double right)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleStroke

public DoubleStroke(double innerWidth,
                    double outlineWidth)

DoubleStroke

public DoubleStroke(double innerWidth,
                    double outlineWidth,
                    int cap,
                    int join,
                    double miterLimit,
                    float[] dashes,
                    float dashPhase)
Method Detail

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)

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.