Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ka2ddo.yaac.gui
Class RailroadStroke

    java.lang.Object
      org.ka2ddo.yaac.gui.RailroadStroke

All Implemented Interfaces:
  java.awt.Stroke

    public class RailroadStroke

extends java.lang.Object
implements java.awt.Stroke

This class defines a solid Stroke which alternates widths of the line between a narrow width (the "rail") and a wide width (the "tie"). The rail width, tie width, and tie spacing are all configurable parameters.

Constructor Summary
`RailroadStroke(float railWidth, float tieWidth, float tieSpacing)`

Method Summary
`java.awt.Shape` | `createStrokedShape(java.awt.Shape p)` Returns an outline `Shape` which encloses the area that should be painted when the `Shape` is stroked according to the rules defined by the object implementing the `Stroke` interface.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RailroadStroke

    public RailroadStroke(float railWidth,
                          float tieWidth,
                          float tieSpacing)

Method Detail

### createStrokedShape

    public java.awt.Shape createStrokedShape(java.awt.Shape p)

  Returns an outline `Shape` which encloses the area that should be painted when the `Shape` is stroked according to the rules defined by the object implementing the `Stroke` interface.

  Specified by:
    `createStrokedShape` in interface `java.awt.Stroke`
  Parameters:
    `p` - a `Shape` to be stroked
  Returns:
    the stroked outline `Shape`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD