Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class ncsa.horizon.awt.TabConstraints

java.lang.Object
  |
  +--ncsa.horizon.awt.TabConstraints

public class TabConstraints
extends java.lang.Object
implements java.lang.Cloneable
The parameters for drawing a Tab

See Also:
Tab

Field Summary
java.awt.Color bg
          the color to use to paint the Tab's background.
int border
          the size of the 3D border.
static short BOTTOM
          an alignment directive to bottom-justify the Tab's label
static short CENTER
          an alignment directive to center the Tab's label
java.awt.Color fg
          the color to use to paint the Tab's foreground.
java.awt.Font font
          the Font to use to print the Tab's label.
short halign
          the horizontal alignment of the text within the Tab.
int height
          the full height of the tab.
java.awt.Insets insets
          the space to put around the label.
java.lang.String label
          the text to use as the Tab's label.
static short LEFT
          an alignment directive to left-justify the Tab's label
static short RIGHT
          an alignment directive to right-justify the Tab's label
static short TOP
          an alignment directive to top-justify the Tab's label
short valign
          the horizontal alignment of the text within the Tab.
int width
          the full width of the tab.
 
Constructor Summary
TabConstraints()
          create a TabConstraints object with default parameters
TabConstraints(java.awt.Component c)
          create a TabConstraints object with parameters taken from a given Component's defaults.
 
Method Summary
java.lang.Object clone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

LEFT

public static final short LEFT
an alignment directive to left-justify the Tab's label

CENTER

public static final short CENTER
an alignment directive to center the Tab's label

RIGHT

public static final short RIGHT
an alignment directive to right-justify the Tab's label

TOP

public static final short TOP
an alignment directive to top-justify the Tab's label

BOTTOM

public static final short BOTTOM
an alignment directive to bottom-justify the Tab's label

bg

public java.awt.Color bg
the color to use to paint the Tab's background. The default is gray.

fg

public java.awt.Color fg
the color to use to paint the Tab's foreground. The default is black

font

public java.awt.Font font
the Font to use to print the Tab's label. The default is a plain, 12-point sans serif font.

label

public java.lang.String label
the text to use as the Tab's label. The default is an empty string

halign

public short halign
the horizontal alignment of the text within the Tab. Choices are LEFT, RIGHT, and CENTER. The default is LEFT.

valign

public short valign
the horizontal alignment of the text within the Tab. Choices are TOP, BOTTOM, and CENTER. The default is TOP.

width

public int width
the full width of the tab. This includes the Tab's border. A value of zero or less (the default) will cause the width to be set to just fit the text, insets, and border.

height

public int height
the full height of the tab. This includes the Tab's border. A value of zero or less (the default) will cause the width to be set to just fit the text, insets, and border.

insets

public java.awt.Insets insets
the space to put around the label. The default values for the top, left, right, and bottom are 1, 4, 4, and 2.

border

public int border
the size of the 3D border. The default is zero.
Constructor Detail

TabConstraints

public TabConstraints()
create a TabConstraints object with default parameters

TabConstraints

public TabConstraints(java.awt.Component c)
create a TabConstraints object with parameters taken from a given Component's defaults.
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD