| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--ncsa.horizon.awt.Tab
| Constructor Summary | |
| Tab(java.lang.String label)
create an Tab |
|
| Tab(java.awt.Component c,
java.lang.String label)
create a Tab |
|
| Tab(TabConstraints params)
create a Tab |
|
| Method Summary | |
| void | draw(java.awt.Graphics g,
int x,
int y)
draw the tab |
| TabConstraints | getConstraints()
return a copy of the properties of this Tab in the form of a TabConstaints object |
| int | getHeight()
get expected height of the tab. |
| java.lang.String | getLabel()
return the text that appears in the Tab's label |
| int | getWidth()
get expected width of the tab. |
| Methods inherited from class java.lang.Object | |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Constructor Detail |
public Tab(java.lang.String label)
public Tab(java.awt.Component c,
java.lang.String label)
c
- the component to get default properties from--i.e.
fore/background colors, font.
label
- the text to display on the tabpublic Tab(TabConstraints params)
params
- the parameters for drawing the Tab| Method Detail |
public TabConstraints getConstraints()
public java.lang.String getLabel()
public int getHeight()
public int getWidth()
public void draw(java.awt.Graphics g,
int x,
int y)
g
- the graphics context to draw the Tab to
x
- the x position in the context to draw the bottom left
corner of the Tab
y
- the y position in the context to draw the bottom left
corner of the Tab| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||