ewe.fx
Class Pen
java.lang.Object
ewe.fx.Pen
- public class Pen
- extends Object
A Pen is used with certain draw operations in ewe.fx.Graphics. See the
Graphics.setPen(Pen p) method.
|
Constructor Summary |
Pen(Color color,
int style,
int thickness)
|
Pen(Color color,
int style,
int thickness,
float miterLimit)
Create a new Pen object. |
color
public Color color
style
public int style
thickness
public int thickness
miterLimit
public float miterLimit
SOLID
public static final int SOLID
- See Also:
- Constant Field Values
DASH
public static final int DASH
- See Also:
- Constant Field Values
DOT
public static final int DOT
- See Also:
- Constant Field Values
DASHDOT
public static final int DASHDOT
- See Also:
- Constant Field Values
DASHDOTDOT
public static final int DASHDOTDOT
- See Also:
- Constant Field Values
NULL
public static final int NULL
- See Also:
- Constant Field Values
CAP_BUTT
public static final int CAP_BUTT
- See Also:
- Constant Field Values
CAP_SQUARE
public static final int CAP_SQUARE
- See Also:
- Constant Field Values
CAP_ROUND
public static final int CAP_ROUND
- See Also:
- Constant Field Values
JOIN_BEVEL
public static final int JOIN_BEVEL
- See Also:
- Constant Field Values
JOIN_MITER
public static final int JOIN_MITER
- See Also:
- Constant Field Values
JOIN_ROUND
public static final int JOIN_ROUND
- See Also:
- Constant Field Values
Pen
public Pen(Color color,
int style,
int thickness,
float miterLimit)
- Create a new Pen object.
- Parameters:
color - The color for the Pen object.style - The style for the Pen object. This should be one of the constants SOLID, DASH, DOT, DASHDOT, DASHDOTDOT or NULL, optionally ORed with
one of the CAP_XXX values and JOIN_XXX values.thickness - The thickness of the Pen (in pixels).
Pen
public Pen(Color color,
int style,
int thickness)