|
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
This class represents different borders. There are four basic types of the borders NONE, SIMPLE, RAISED, LOWERED with specified border size and specified border color
| Field Summary | |
protected java.awt.Color |
borderColor
|
protected int |
borderType
|
protected int |
borderWidth
|
static int |
LOWERED
Lowered border |
static int |
NONE
No border |
static int |
POINT1
point 1 border width |
static int |
POINT2
point 2 border width |
static int |
POINT3
point 3 border width |
static int |
POINT4
point 4 border width |
static int |
POINT5
point 5 border width |
static int |
RAISED
Raised border |
static int |
SIMPLE
Simple border |
| Constructor Summary | |
AWTBorder()
Default constructor |
|
AWTBorder(int borderType,
int borderWidth,
java.awt.Color borderColor)
Constructs the border object with specified parameters |
|
| Method Summary | |
java.awt.Color |
getBorderColor()
Method which returns the border color |
int |
getBorderType()
Method which returns the border type |
int |
getBorderWidth()
Method which returns the border widht |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
void |
readExternal(java.io.ObjectInput in)
Implementation of the readExternal |
void |
setBorderColor(java.awt.Color borderColor)
Method which sets the border color |
void |
setBorderType(int borderType)
Method which sets the border type |
void |
setBorderWidth(int borderWidth)
Method which sets the border width |
void |
writeExternal(java.io.ObjectOutput out)
Implementation of the writeExternal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int POINT1
public static final int POINT2
public static final int POINT3
public static final int POINT4
public static final int POINT5
public static final int NONE
public static final int SIMPLE
public static final int RAISED
public static final int LOWERED
protected int borderType
protected int borderWidth
protected java.awt.Color borderColor
| Constructor Detail |
public AWTBorder()
public AWTBorder(int borderType,
int borderWidth,
java.awt.Color borderColor)
borderType - The border typeborderWidth - The border widthborderColor - The border color| Method Detail |
public void setBorderType(int borderType)
public int getBorderType()
public void setBorderWidth(int borderWidth)
borderWidth - the border widthpublic int getBorderWidth()
public void setBorderColor(java.awt.Color borderColor)
public java.awt.Color getBorderColor()
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
c - the component for which this border is being paintedg - 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 writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
ElegantJ Gauges Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||