|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.CompositeBorder
public class CompositeBorder
CompositeBorder is a subclass of Border that can combine two BorderInterface objects into one border.
The class draws one border inside the other border with a gap amount between the borders.
Notes:
BorderInterface
,
Serialized FormField Summary | |
---|---|
protected int |
borderGap
|
protected BorderInterface |
extBorder
|
protected Border |
exteriorBorder
|
protected BorderInterface |
intBorder
|
protected Border |
interiorBorder
|
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.visuals.Border |
---|
baseColor, baseColorJ, borderWidth, lightSource, style |
Fields inherited from interface com.sas.visuals.BorderInterface |
---|
BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, LOWERED, NONE, RAISED, TOP_LEFT, TOP_RIGHT |
Constructor Summary | |
---|---|
CompositeBorder()
Default Constructor. |
|
CompositeBorder(BorderInterface exterior,
BorderInterface interior,
int gap)
Constructor to create a CompositeBorder out of the specified exterior and interior border and with the specified gap between them. |
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. |
int |
getBorderGap()
Get the gap between the interior and exterior borders Borders |
int |
getBorderWidth()
Get the border width. |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
|
BorderInterface |
getExteriorBorder()
Get the exterior Border of the CompositeBorder |
java.awt.Insets |
getInsets(java.awt.Component comp)
Get the Insets of the Border on the specified component. |
BorderInterface |
getInteriorBorder()
Get the interior Border of the CompositeBorder |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle propertyChange events from either the interior or exterior borders. |
void |
setBaseColor(java.awt.Color c)
Deprecated. |
void |
setBorderGap(int gap)
Set the gap between the exterior and the interior borders. |
void |
setBorderWidth(int width)
Set the border width. |
void |
setExteriorBorder(BorderInterface exterior)
Set the Exterior Border to the specified Border. |
void |
setInteriorBorder(BorderInterface interior)
Set the Interior Border to the specified Border. |
void |
setLightSource(int ltSrc)
Set the light source of the CompositeBorder. |
void |
setStyle(int s)
Set the style of the CompositeBorder. |
Methods inherited from class com.sas.visuals.Border |
---|
clone, drawInRect, drawInRect, drawInRect, equals, getBaseColor, getBottomMargin, getInsets, getInteriorBounds, getInteriorBounds, getLeftMargin, getLightSource, getRightMargin, getStyle, getTopMargin, hashCode, paramString, toString |
Field Detail |
---|
public static final java.lang.String RB_KEY
protected int borderGap
protected Border interiorBorder
protected Border exteriorBorder
protected BorderInterface intBorder
protected BorderInterface extBorder
Constructor Detail |
---|
public CompositeBorder()
public CompositeBorder(BorderInterface exterior, BorderInterface interior, int gap)
Method Detail |
---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
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 int getBorderGap()
public int getBorderWidth()
getBorderWidth
in interface BorderInterface
getBorderWidth
in class Border
public BorderInterface getExteriorBorder()
public BorderInterface getInteriorBorder()
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 void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class com.sas.Component
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public void setBaseColor(java.awt.Color c)
setBaseColor
in class Border
c
- the desired border colorpublic void setBorderGap(int gap)
public void setBorderWidth(int width)
setBorderWidth
in interface BorderInterface
setBorderWidth
in class Border
width
- the desired border widthpublic void setExteriorBorder(BorderInterface exterior)
public void setInteriorBorder(BorderInterface interior)
public void setLightSource(int ltSrc)
setLightSource
in interface BorderInterface
setLightSource
in class Border
ltSrc
- one of the lightSource values from com.sas.visuals.BorderInterfaceBorderInterface
public void setStyle(int s)
setStyle
in interface BorderInterface
setStyle
in class Border
s
- NONE or DEFAULT or some id set by a subclass
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |