|
ElegantJ Data Entry Masks 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.editors.AWTTitleBorder
This class represents different borders. There are four basic types of the borders NONE, SIMPLE, RAISED, LOWERED with specified border size specified border color, specified title, specified title font, and specified title color
| Field Summary | |
static int |
CENTER
Center position of the title |
static int |
LEFT
Left position of the title |
static int |
RIGHT
Right position of the title |
| Fields inherited from class com.elegantj.editors.AWTBorder |
borderColor, borderType, borderWidth, LOWERED, NONE, POINT1, POINT2, POINT3, POINT4, POINT5, RAISED, SIMPLE |
| Constructor Summary | |
AWTTitleBorder()
Default constructor constructs border with border type simple, border width 1, border color black, title is "" title font is Dialog, plain, 10 title color is black title position is center |
|
AWTTitleBorder(int borderType,
int borderWidth,
java.awt.Color borderColor,
java.lang.String title,
java.awt.Font titleFont,
java.awt.Color titleColor,
int titlePosition)
Constructs the border object with specified parameters |
|
| Method Summary | |
java.lang.String |
getTitle()
Method which returns the title of the border |
java.awt.Color |
getTitleColor()
Method which returns the title color of the title |
java.awt.Font |
getTitleFont()
Method which returns the title font |
int |
getTitlePosition()
Method which returns the title position of the title |
void |
readExternal(java.io.ObjectInput in)
Implementation of the readExternal |
void |
setTitle(java.lang.String title)
Method which sets the title |
void |
setTitleColor(java.awt.Color titleColor)
Method which sets the title color of the title |
void |
setTitleFont(java.awt.Font titleFont)
Method which sets the title font |
void |
setTitlePosition(int titlePosition)
Method which sets the title position of the title |
void |
writeExternal(java.io.ObjectOutput out)
Implementation of the writeExternal |
| Methods inherited from class com.elegantj.editors.AWTBorder |
getBorderColor, getBorderType, getBorderWidth, paintBorder, setBorderColor, setBorderType, setBorderWidth |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int LEFT
public static int CENTER
public static int RIGHT
| Constructor Detail |
public AWTTitleBorder()
public AWTTitleBorder(int borderType,
int borderWidth,
java.awt.Color borderColor,
java.lang.String title,
java.awt.Font titleFont,
java.awt.Color titleColor,
int titlePosition)
borderType - The border type @see NONE, SIMPLE, RAISED, LOWEREDborderWidth - The border widthborderColor - The border colortitle - The titletitleFont - The font for the titletitleColor - The color for the titletitlePosition - The title position| Method Detail |
public void setTitle(java.lang.String title)
title - the titlepublic java.lang.String getTitle()
public void setTitleFont(java.awt.Font titleFont)
titleFont - the title fontpublic java.awt.Font getTitleFont()
public void setTitleColor(java.awt.Color titleColor)
titleColor - The title color of the titlepublic java.awt.Color getTitleColor()
public void setTitlePosition(int titlePosition)
titlePosition - The title position of the titleLEFT, CENTER, RIGHTpublic int getTitlePosition()
LEFT, CENTER, RIGHT
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class AWTBorderjava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class AWTBorderjava.io.IOException
java.lang.ClassNotFoundException
|
ElegantJ Data Entry Masks Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||