JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Interface CellBorderModel

All Known Implementing Classes:
JCCellBorder, SwingCellBorder

public interface CellBorderModel

Defines the requirements for a object responsible for renderering cell borders.


Method Summary
 void drawBackground(Graphics gc, int border_thickness, int border_sides, int x, int y, int width, int height, Color top_color, Color bottom_color, Color plain_color)
          Draws the border and background of a cell.
 

Method Detail

drawBackground

public void drawBackground(Graphics gc,
                           int border_thickness,
                           int border_sides,
                           int x,
                           int y,
                           int width,
                           int height,
                           Color top_color,
                           Color bottom_color,
                           Color plain_color)
Draws the border and background of a cell.

Parameters:
gc - the color used for the background
border_thickness - the thickness of the cell border
border_sides - 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 border
y - the vertical start position of the border
width - the border width size
height - the border height size
top_color - the color used for drawing the top of IN borders or the bottom of OUT borders
bottom_color - the color used for drawing the bottom of IN borders or the top of OUT borders
plain_color - the color used to draw the sides of PLAIN borders

Copyright © 2004 Quest Software Inc..
All rights reserved.