JHotDraw 7.5.1

org.jhotdraw.geom
Class GrowStroke

java.lang.Object
  extended by org.jhotdraw.geom.DoubleStroke
      extended by org.jhotdraw.geom.GrowStroke
All Implemented Interfaces:
java.awt.Stroke

public class GrowStroke
extends DoubleStroke

GrowStroke can be used to grow/shrink a figure by a specified line width. This only works with closed convex paths having edges in clockwise direction.

Note: Although this is a Stroke object, it does not actually create a stroked shape, but one that can be used for filling.

Version:
$Id: GrowStroke.java 647 2010-01-24 22:52:59Z rawcoder $
Author:
Werner Randelshofer.

Constructor Summary
GrowStroke(double grow, double miterLimit)
           
 
Method Summary
 java.awt.Shape createStrokedShape(java.awt.Shape s)
           
 
Methods inherited from class org.jhotdraw.geom.DoubleStroke
traceStroke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrowStroke

public GrowStroke(double grow,
                  double miterLimit)
Method Detail

createStrokedShape

public java.awt.Shape createStrokedShape(java.awt.Shape s)
Specified by:
createStrokedShape in interface java.awt.Stroke
Overrides:
createStrokedShape in class DoubleStroke

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