|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.elegantj.graphx.Pen
Pen class is used to draw line and rectange with different styles
| Field Summary | |
static int |
DASH_DISTANCE
Specifies the constant for dash distance |
static int |
PS_DASH
Specifies the constant for dash pen style |
static int |
PS_DASHDOT
Specifies the constant for dash-dot pen style |
static int |
PS_DASHDOTDOT
Specifies the constant for dash-dot-dot pen style |
static int |
PS_DOT
Specifies the constant for dot pen style |
static int |
PS_NULL
Specifies the constant for normal pen style |
static int |
PS_SOLID
Specifies the constant for solid pen style |
| Constructor Summary | |
Pen()
|
|
| Method Summary | |
static void |
drawLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2,
int style)
Draws line with specified style |
static void |
drawRect(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int style)
Draws rectange with specified style |
static boolean |
hitClip(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Rectangle clipRect)
Returns true if the specified rectangular area intersects the bounding rectangle of the current clipping area. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PS_NULL
public static final int PS_SOLID
public static final int PS_DASH
public static final int PS_DOT
public static final int PS_DASHDOT
public static final int PS_DASHDOTDOT
public static final int DASH_DISTANCE
| Constructor Detail |
public Pen()
| Method Detail |
public static void drawLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2,
int style)
public static void drawRect(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int style)
public static boolean hitClip(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Rectangle clipRect)
x - the x coordinate of the rectangle to test against the clipy - the y coordinate of the rectangle to test against the clipwidth - the width of the rectangle to test against the clipheight - the height of the rectangle to test against the clip
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||