|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.TabBorder
public class TabBorder
TabBorder is a subclass of Border that draws a specific type of border for tabs.
It has an orientation property that also affects how it is drawn.
Notes:
Color highlightColor = java.awt.SystemColor.controlHighlight; Color lightHighlightColor = java.awt.SystemColor.controlLtHighlight; Color shadowColor = java.awt.SystemColor.controlShadow; Color darkShadowColor = java.awt.SystemColor.controlDkShadow;
BorderInterface
,
Serialized FormField Summary | |
---|---|
static int |
BOTTOM
BOTTOM Orientation value |
protected java.awt.Color |
darkShadowColor
|
protected java.awt.Color |
highlightColor
|
static int |
LEFT
LEFT Orientation value |
protected java.awt.Color |
lightHighlightColor
|
static int |
NONE
NONE Orientation value |
protected int |
orientation
|
static int |
RIGHT
RIGHT Orientation value |
protected java.awt.Color |
shadowColor
|
static int |
TOP
TOP Orientation value |
Fields inherited from class com.sas.visuals.Border |
---|
baseColor, baseColorJ, borderWidth, lightSource, RB_KEY, style |
Fields inherited from interface com.sas.visuals.BorderInterface |
---|
BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, LOWERED, RAISED, TOP_LEFT, TOP_RIGHT |
Constructor Summary | |
---|---|
TabBorder()
Default Constructor. |
|
TabBorder(int orient)
Constructor that sets the orientation. |
Method Summary | |
---|---|
void |
drawInRect(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draw the Border within the specified rectangle on the specified component. |
java.awt.Insets |
getInsets(java.awt.Component comp)
Get the Insets of the Border on the specified component. |
int |
getOrientation()
Get the orientation of the border. |
void |
setDarkShadowColor(java.awt.Color c)
Set the darkShadow Color for this TabBorder. |
void |
setHighlightColor(java.awt.Color c)
Set the highlight Color for this TabBorder. |
void |
setLightHighlightColor(java.awt.Color c)
Set the highlight Color for this TabBorder. |
void |
setOrientation(int orient)
Set the orientation of the border. |
void |
setShadowColor(java.awt.Color c)
Set the shadow Color for this TabBorder. |
Methods inherited from class com.sas.visuals.Border |
---|
clone, drawInRect, drawInRect, drawInRect, equals, getBaseColor, getBorderWidth, getBottomMargin, getExtendedBeanInfo, getInsets, getInteriorBounds, getInteriorBounds, getLeftMargin, getLightSource, getRightMargin, getStyle, getTopMargin, hashCode, paramString, setBaseColor, setBorderWidth, setLightSource, setStyle, toString |
Field Detail |
---|
public static final int NONE
public static final int TOP
public static final int BOTTOM
public static final int LEFT
public static final int RIGHT
protected int orientation
protected java.awt.Color highlightColor
protected java.awt.Color lightHighlightColor
protected java.awt.Color shadowColor
protected java.awt.Color darkShadowColor
Constructor Detail |
---|
public TabBorder()
public TabBorder(int orient)
orient
- the orientation of the borderMethod Detail |
---|
public java.awt.Insets getInsets(java.awt.Component comp)
getInsets
in interface BorderInterface
getInsets
in class Border
comp
- the component to draw the border on, can be null.
public int getOrientation()
public void setOrientation(int orient)
orient
- the new orientation value one of: NONE, TOP, LEFT, BOTTOM, or RIGHT.public void drawInRect(java.awt.Component comp, java.awt.Graphics g, int x, int y, int width, int height)
drawInRect
in interface BorderInterface
drawInRect
in class Border
comp
- the java.awt.Component to draw the border on, can be nullg
- the Graphics contextx
- the x position of the border rectangley
- the y position of the border rectanglewidth
- the width of the border rectangleheight
- the height of the border rectangleBorderInterface
public void setLightHighlightColor(java.awt.Color c)
public void setDarkShadowColor(java.awt.Color c)
public void setHighlightColor(java.awt.Color c)
public void setShadowColor(java.awt.Color c)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |