|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.shader.stroke.RailRoadStroke
A class to implement the railroad stroking of lines that is often desired in maps. This class draws a line as a single line, with cross bars to represent the railroad ties.
Field Summary | |
(package private) float |
myLineWidth
The width of the "line" that is to be used as the single rail of the rail road. |
(package private) float |
myTieWidth
The width of the railroad ties. |
Constructor Summary | |
RailRoadStroke(float inLineWidth,
float inTieWidth)
Creates a new instance of RailRoadStroke, the inLineWidth is the thickness of the line, the inTieWidth is the Length of the ties of the rail road. |
|
RailRoadStroke(float inLineWidth,
float inTieWidth,
boolean inTwoLine)
Creates a new instance of RailRoadStroke, the inLineWidth is the thickness of the line, the inTieWidth is the Length of the ties of the rail road. |
|
RailRoadStroke(float inLineWidth,
float inTieWidth,
float[] inTieDashArray,
boolean inTwoLine)
Creates a new instance of RailRoadStroke, the inLineWidth is the thickness of the line, the inTieWidth is the Length of the ties of the rail road. |
Method Summary | |
java.awt.Shape |
createStrokedShape(java.awt.Shape shape)
|
float[] |
getDashArray()
|
float |
getLineWidth()
Return the width of the "Line" that is to be used as the single rail of the rail road. |
float |
getTieWidth()
The width of the railroad ties. |
boolean |
getTwoLine()
Use two lines the same distance apart as the continuious lines of the rail road. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
float myTieWidth
float myLineWidth
Constructor Detail |
public RailRoadStroke(float inLineWidth, float inTieWidth)
public RailRoadStroke(float inLineWidth, float inTieWidth, boolean inTwoLine)
public RailRoadStroke(float inLineWidth, float inTieWidth, float[] inTieDashArray, boolean inTwoLine)
Method Detail |
public boolean getTwoLine()
public float getTieWidth()
public float getLineWidth()
public float[] getDashArray()
public java.awt.Shape createStrokedShape(java.awt.Shape shape)
createStrokedShape
in interface java.awt.Stroke
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |