|
ElegantJ Gauges Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.editors.AWTBorder
com.elegantj.gauges.GaugeBorder
This class represents different borders for the gauges.
| Field Summary |
| Fields inherited from class com.elegantj.editors.AWTBorder |
borderColor, borderType, borderWidth, LOWERED, NONE, POINT1, POINT2, POINT3, POINT4, POINT5, RAISED, SIMPLE |
| Constructor Summary | |
GaugeBorder()
|
|
GaugeBorder(int borderType,
int borderWidth,
java.awt.Color borderColor)
Constructs the gauge border object with specified parameters |
|
| Method Summary | |
int |
getActualBorderWidth()
Returns the actual width of the border. |
void |
paintEllipticalBorder(java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
void |
paintEllipticalBorder(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Paints the elliptical gauge border arc covering the specified rectangle. |
void |
paintPolygonalBorder(java.awt.Graphics g,
int[] xPoints,
int[] yPoints,
int nPoints)
Paints the polygonal gauge border defined by arrays of x and y coordinates. |
void |
paintRectangularBorder(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the rectangular gauge border with the specified position and size. |
| Methods inherited from class com.elegantj.editors.AWTBorder |
getBorderColor, getBorderType, getBorderWidth, paintBorder, readExternal, setBorderColor, setBorderType, setBorderWidth, writeExternal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GaugeBorder()
public GaugeBorder(int borderType,
int borderWidth,
java.awt.Color borderColor)
borderType - The border type @see NONE, SIMPLE, RAISED, LOWEREDborderWidth - The border widthborderColor - The border color| Method Detail |
public int getActualBorderWidth()
public void paintRectangularBorder(java.awt.Graphics g,
int x,
int y,
int width,
int height)
g - the paint graphicsx - the x position of the painted bordery - the y position of the painted borderwidth - the width of the painted borderheight - the height of the painted border
public void paintEllipticalBorder(java.awt.Graphics g,
int x,
int y,
int width,
int height)
public void paintEllipticalBorder(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
g - the paint graphicsx - the x coordinate of the upper-left corner of the arc to be drawn.y - the y coordinate of the upper-left corner of the arc to be drawn.width - the width of the arc to be drawn.height - the height of the arc to be drawn.startAngle - the beginning angle, default 0arcAngle - the angular extent of the arc, relative to the start angle, default 360.
public void paintPolygonalBorder(java.awt.Graphics g,
int[] xPoints,
int[] yPoints,
int nPoints)
g - the paint graphicsxPoints - an array of x coordinates.yPoints - an array of y coordinates.nPoints - the total number of points
|
ElegantJ Gauges Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||