|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot.BarStyle.Form
public abstract static class BarStyle.Form
Describes the form of a bar style, that is what each bar looks like.
Constructor Summary | |
---|---|
protected |
BarStyle.Form(String name,
boolean isOpaque)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BarStyle.Form(String name, boolean isOpaque)
Method Detail |
---|
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()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |