The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > java.awt  [78 examples] > Shapes  [5 examples]

e588. Creating a Shape from a Stroked Shape

    float strokeThickness = 5.0f;
    BasicStroke stroke = new BasicStroke(strokeThickness);
    Shape newShape = stroke.createStrokedShape(shape);

 Related Examples
e586. Drawing Simple Shapes
e587. Filling Basic Shapes
e589. Stroking or Filling a Shape
e590. Drawing a Pie Chart

See also: Colors    Components    Containers    Cursors    Drawing    Events    Focus    Frames    GridBagLayout    Images    Simulating Events    Text    The Screen   


© 2002 Addison-Wesley.