ewe.fx
Class Pen

java.lang.Object
  extended byewe.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.


Field Summary
static int CAP_BUTT
           
static int CAP_ROUND
           
static int CAP_SQUARE
           
 Color color
           
static int DASH
           
static int DASHDOT
           
static int DASHDOTDOT
           
static int DOT
           
static int JOIN_BEVEL
           
static int JOIN_MITER
           
static int JOIN_ROUND
           
 float miterLimit
           
static int NULL
           
static int SOLID
           
 int style
           
 int thickness
           
 
Constructor Summary
Pen(Color color, int style, int thickness)
           
Pen(Color color, int style, int thickness, float miterLimit)
          Create a new Pen object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

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
Constructor Detail

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)