public class RailroadStroke
extends java.lang.Object
implements java.awt.Stroke
| Constructor and Description |
|---|
RailroadStroke(float railWidth,
float tieWidth,
float tieSpacing) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public RailroadStroke(float railWidth,
float tieWidth,
float tieSpacing)
public java.awt.Shape createStrokedShape(java.awt.Shape p)
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.createStrokedShape in interface java.awt.Strokep - a Shape to be strokedShape.