|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.ui.vole.Component jcontrol.ui.vole.Border
public class Border
This class Border
creates a border
with the given extents.
(c) Copyright 2003-2007 DOMOLOGIC GmbH
Field Summary | |
---|---|
static int |
ETCHED_BORDER
Rectangular border with etched edges |
static int |
ROUND_BORDER
Rectangular border with round corners |
static int |
SIMPLE_BORDER
Simple rectangular border |
Fields inherited from class jcontrol.ui.vole.Component |
---|
eventQueue, focusOwner, font, g, height, listener, parent, visible, width, x, y |
Constructor Summary | |
---|---|
Border(int x,
int y,
int width,
int height)
Creates a simple rectangular border. |
|
Border(String label,
int x,
int y,
int width,
int height)
Creates a labeled rectangular Border. |
Method Summary | |
---|---|
void |
paint()
Draw the border. |
void |
setLabel(String label)
Sets the label of this border. |
void |
setStyle(int m_style)
Sets the style of this border. |
boolean |
transferFocus()
We never gain the input focus. |
Methods inherited from class jcontrol.ui.vole.Component |
---|
getBounds, getParent, isVisible, onActionEvent, onKeyEvent, remove, removeFocus, requestFocus, setBounds, setFont, setGraphics, setParent, setVisible, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Field Detail |
---|
public static final int SIMPLE_BORDER
public static final int ETCHED_BORDER
public static final int ROUND_BORDER
Constructor Detail |
---|
public Border(int x, int y, int width, int height)
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.public Border(String label, int x, int y, int width, int height)
label
- The string label of the border.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.Method Detail |
---|
public void setStyle(int m_style)
SIMPLE_BORDER
,
ETCHED_BORDER
and
ROUND_BORDER
.
The default style is SIMPLE_BORDER
.
style
- The new style of the border.public void setLabel(String label)
label
- The new m_label of the border.public void paint()
paint
in class Component
public boolean transferFocus()
transferFocus
in class Component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |