public abstract static class BarStyle.Form
extends java.lang.Object
Modifier | Constructor | Description |
---|---|---|
protected |
Form(java.lang.String name,
boolean isOpaque) |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
drawBar(java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Draws a bar.
|
void |
drawEdge(java.awt.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.
|
java.lang.String |
toString() |
public abstract void drawBar(java.awt.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(java.awt.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()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.