|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.ui.wombat.Component jcontrol.ui.wombat.Border
public class Border
Instances of this class provide a border with an optional title.
Possible styles are: simple, round and etched.
(c) Copyright 2005-2007 DOMOLOGIC GmbH
Field Summary | |
---|---|
static int |
STYLE_ETCHED_BORDER
Rectangular etched border with round corners |
static int |
STYLE_ROUND_BORDER
Rectangular border with round corners |
static int |
STYLE_SIMPLE_BORDER
Simple rectangular border |
Constructor Summary | |
---|---|
Border(String label,
int x,
int y,
int width,
int height,
int style)
Creates a border. |
Method Summary | |
---|---|
void |
paint(XGraphics g)
Draws the border. |
void |
setText(String text)
Sets the title string of this border. |
Methods inherited from class jcontrol.ui.wombat.Component |
---|
drawDisabledImage, getFrame, isEnabled, isVisible, isVisibleInternal, redrawInternalAndParent, repaint, repaintAll, safeExec, setBackgroundColor, setBackgroundColorInternal, setBounds, setDirty, setEnabled, setFont, setForegroundColor, setForegroundColorInternal, setParametersInternal, setRedraw, setTransparentColor, setVisible, unsafeExec, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Field Detail |
---|
public static final int STYLE_SIMPLE_BORDER
public static final int STYLE_ROUND_BORDER
public static final int STYLE_ETCHED_BORDER
Constructor Detail |
---|
public Border(String label, int x, int y, int width, int height, int style)
label
- The title string of the border or null
.x
- The x-coordinate of the border's top-left corner.y
- The y-coordinate of the border's top-left corner.width
- The width of the border.height
- The height of the border.style
- The style of the border. Possible values are STYLE_SIMPLE_BORDER
, STYLE_ROUND_BORDER
or STYLE_ETCHED_BORDER
.Method Detail |
---|
public void setText(String text)
text
- The new title of the border.public void paint(XGraphics g)
paint
in class Component
g
- the application's graphics object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |