|
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.JCCellBorder
The JCCellBorder
class implements the CellBorderModel
interface, and provides border drawing for the standard border types.
BORDER_ETCHED_IN double line; cell appears inset BORDER_ETCHED_OUT double line; cell appears raised BORDER_FRAME_IN 1-pixel shadow-in at edge; cell appears framed BORDER_FRAME_OUT 1-pixel shadow-out at edge; cell appears framed BORDER_IN cell appears inset BORDER_OUT cell appears raised BORDER_PLAIN shadow drawn in foreground color BORDER_THIN thin border drawn in highlight color BORDER_NONE no border
Field Summary | |
static int |
BORDERSIDE_THIN_BOTTOM
A JCCellBorder BorderSide property constant indicating
that a thin border should draw an explicit bottom hand side. |
static int |
BORDERSIDE_THIN_RIGHT
A JCCellBorder BorderSide property constant indicating
that a thin border should draw an explicit right hand side. |
protected int |
borderType
|
Constructor Summary | |
JCCellBorder()
Creates a new JCCellBorder object and initializes the type to
JCTableEnum.BORDER_NONE |
|
JCCellBorder(int borderType)
Creates a new JCCellBorder object. |
Method Summary | |
void |
drawBackground(Graphics gc,
int size,
int sides,
int x,
int y,
int width,
int height,
Color top_color,
Color bottom_color,
Color plain_color)
Invokes the border drawing mechanism appropriate to the type of border. |
int |
getBorderType()
Returns the border type. |
void |
setBorderType(int v)
Sets the border type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BORDERSIDE_THIN_RIGHT
JCCellBorder
BorderSide
property constant indicating
that a thin border should draw an explicit right hand side. Used internally.
public static final int BORDERSIDE_THIN_BOTTOM
JCCellBorder
BorderSide
property constant indicating
that a thin border should draw an explicit bottom hand side. Used internally.
protected int borderType
Constructor Detail |
public JCCellBorder()
JCCellBorder
object and initializes the type to
JCTableEnum.BORDER_NONE
public JCCellBorder(int borderType)
JCCellBorder
object.
borderType
- one of the following JCTableEnum
members:
BORDER_ETCHED_IN double line; cell appears inset BORDER_ETCHED_OUT double line; cell appears raised BORDER_FRAME_IN 1-pixel shadow-in at edge; cell appears framed BORDER_FRAME_OUT 1-pixel shadow-out at edge; cell appears framed BORDER_IN cell appears inset BORDER_OUT cell appears raised BORDER_PLAIN shadow drawn in foreground color BORDER_THIN thin border drawn in highlight color BORDER_NONE no border
Method Detail |
public void setBorderType(int v)
v
- public int getBorderType()
public void drawBackground(Graphics gc, int size, int sides, int x, int y, int width, int height, Color top_color, Color bottom_color, Color plain_color)
drawBackground
in interface CellBorderModel
bottom_color
- gc
- height
- plain_color
- sides
- size
- top_color
- width
- x
- y
-
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |