| Modifier | Constructor and Description |
|---|---|
protected |
Form(String name,
boolean isOpaque) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
drawBar(Graphics g,
int x,
int y,
int width,
int height)
Draws a bar.
|
void |
drawEdge(Graphics g,
int x,
int y1,
int y2)
Draws the edge of a bar.
|
boolean |
isOpaque()
Indicates whether this bar form is as opaque as the colour of
the supplied graphics context.
|
String |
toString() |
protected Form(String name, boolean isOpaque)
public abstract void drawBar(Graphics g, int x, int y, int width, int height)
x, y,
width and height is available for
drawing in.g - graphics contextx - left X coordinate of region (lowest X value permitted)y - lower Y coordinate of region (lowest Y value permitted)width - width of region
(x+width is highest X value permitted)height - height of region
(y+height is highest Y value permitted)public void drawEdge(Graphics g, int x, int y1, int y2)
The default implementation does nothing, which is correct for many forms.
g - graphics contextx - x position of the edgey1 - one y value of the edgey2 - other y value of the edgepublic boolean isOpaque()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.