|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.Windows95Border
public class Windows95Border
Windows95Border provides Border support for Windows 95 Window Border styles
Field Summary | |
---|---|
protected java.awt.Component |
_component
The Component associated with the border |
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, NONE, RAISED, TOP_LEFT, TOP_RIGHT |
Constructor Summary | |
---|---|
Windows95Border()
Default Windows95Border constructor | |
Windows95Border(java.awt.Component component)
Windows95Border constructor with a specified component | |
Windows95Border(java.awt.Component component,
int s)
Windows95Border constructor with a specified component and style | |
Windows95Border(int s)
Windows95Border constructor with a specified style | |
Windows95Border(Windows95Border border)
Windows95Border constructor based on an existing Windows95Border |
Method Summary | |
---|---|
void |
drawInRect(java.awt.Component component,
java.awt.Graphics graphics,
int x,
int y,
int width,
int height)
Draw the Border within the specified rectangle on the specified component. |
void |
drawInRect(java.awt.Graphics graphics,
int x,
int y,
int width,
int height)
Draw the Border within the specified rectangle. |
protected java.awt.Color |
getBackground()
Gets the component background color |
int |
getBottomMargin()
Get the width of the Border's bottom side |
java.awt.Component |
getComponent()
Gets the component associated with the border |
protected java.awt.Color |
getForeground()
Gets the component foreground color |
java.awt.Insets |
getInsets(java.awt.Component c)
Draws the border on the specified graphics with the specified x, y, width, height |
int |
getLeftMargin()
Get the width of the Border's left side |
int |
getRightMargin()
Get the width of the Border's right side |
int |
getTopMargin()
Get the width of the Border's top side |
void |
setComponent(java.awt.Component component)
Sets the component associated with the border |
Methods inherited from class com.sas.visuals.Border |
---|
clone, drawInRect, drawInRect, equals, getBaseColor, getBorderWidth, getExtendedBeanInfo, getInsets, getInteriorBounds, getInteriorBounds, getLightSource, getStyle, hashCode, paramString, setBaseColor, setBorderWidth, setLightSource, setStyle, toString |
Field Detail |
---|
protected java.awt.Component _component
Constructor Detail |
---|
public Windows95Border()
public Windows95Border(int s)
s
- the border style. Valid border styles are VisualAspects.BDRxxx valuespublic Windows95Border(java.awt.Component component)
component
- the component associated with the borderpublic Windows95Border(java.awt.Component component, int s)
s
- the border style. Valid border styles are VisualAspects.BDRxxx valuescomponent
- the component associated with the borderpublic Windows95Border(Windows95Border border)
border
- Windows95BorderMethod Detail |
---|
public java.awt.Component getComponent()
public void setComponent(java.awt.Component component)
component
- associated with the borderprotected java.awt.Color getBackground()
protected java.awt.Color getForeground()
public java.awt.Insets getInsets(java.awt.Component c)
getInsets
in interface BorderInterface
getInsets
in class Border
graphics
- the graphics to usex
- coordinatey
- coordinatewidth
- coordinateheight
- coordinate
public void drawInRect(java.awt.Graphics graphics, int x, int y, int width, int height)
Border
drawInRect
in interface BorderInterface
drawInRect
in class Border
graphics
- 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 rectanglepublic void drawInRect(java.awt.Component component, java.awt.Graphics graphics, int x, int y, int width, int height)
Border
drawInRect
in interface BorderInterface
drawInRect
in class Border
component
- the java.awt.Component to draw the border on, can be nullgraphics
- 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 getLeftMargin()
getLeftMargin
in class Border
public int getBottomMargin()
getBottomMargin
in class Border
public int getRightMargin()
getRightMargin
in class Border
public int getTopMargin()
getTopMargin
in class Border
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |