|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcontrol.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 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(java.lang.String label,
int x,
int y,
int width,
int height,
int style)
Creates a border. |
Method Summary | |
---|---|
void |
paint(jcontrol.graphics.XGraphics g)
Draws the border. |
void |
setText(java.lang.String text)
Sets the title string of this border. |
Methods inherited from class jcontrol.ui.wombat.Component |
---|
getFrame, isEnabled, isVisible, repaint, repaintAll, safeExec, setBackgroundColor, setBounds, setDirty, setEnabled, setFont, setForegroundColor, setRedraw, setTransparentColor, setVisible, unsafeExec, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notifyAll, toString, wait |
Field Detail |
---|
public static final int STYLE_ETCHED_BORDER
public static final int STYLE_ROUND_BORDER
public static final int STYLE_SIMPLE_BORDER
Constructor Detail |
---|
public Border(java.lang.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 paint(jcontrol.graphics.XGraphics g)
paint
in class Component
g
- the application's graphics object.public void setText(java.lang.String text)
text
- The new title of the border.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |