|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.table.SwingCellBorder
The SwingCellBorder
class implements the
CellBorderModel
interface to provide cell and frame border
drawing using Swing
borders.
Field Summary | |
protected Border |
border
|
protected Component |
component
|
Constructor Summary | |
SwingCellBorder(Component component,
Border border)
SwingCellBorder |
Method Summary | |
void |
drawBackground(Graphics gc,
int borderWidth,
int borderSide,
int x,
int y,
int width,
int height,
Color top_color,
Color bottom_color,
Color plain_color)
Draws a Swing Border around the cell. |
Border |
getCellBorder()
Returns the type of border. |
void |
setComponent(Component c)
Set the component used to render this border |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Component component
protected Border border
Constructor Detail |
public SwingCellBorder(Component component, Border border)
component
- the component that controls the drawing of the borderborder
- the type of borderMethod Detail |
public void setComponent(Component c)
public Border getCellBorder()
public void drawBackground(Graphics gc, int borderWidth, int borderSide, int x, int y, int width, int height, Color top_color, Color bottom_color, Color plain_color)
drawBackground
in interface CellBorderModel
gc
- the color used for the backgroundborderWidth
- the thickness of the cell borderborderSide
- the sides on which to draw the border, a bitwise OR of
the following: BORDERSIDE_ALL, BORDERSIDE_LEFT, BORDERSIDE_RIGHT,
BORDERSIDE_TOP, BORDERSIDE_BOTTOM
x
- the horizontal start position of the bordery
- the vertical start position of the borderwidth
- the border width sizeheight
- the border height sizetop_color
- the color used for drawing the top of IN borders or the
bottom of OUT bordersbottom_color
- the color used for drawing the bottom of IN borders or
the top of OUT bordersplain_color
- the color used to draw the sides of PLAIN borders
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |