JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class CellAreaRenderer

java.lang.Object
  |
  +--com.klg.jclass.table.CellAreaRenderer
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PrintCellAreaRenderer

public class CellAreaRenderer
extends Object
implements Serializable

CellAreaRenderer controls the painting of CellAreas within the table.

See Also:
Serialized Form

Field Summary
protected  Color borderColor
           
protected  Color borderHighlightColor
           
protected  Color borderShadowColor
           
protected  com.klg.jclass.table.CellAreaHandler cellAreaHandler
           
protected  BasicStroke dashedStroke
           
protected  com.klg.jclass.table.JCTable table
           
 
Constructor Summary
CellAreaRenderer(com.klg.jclass.table.CellAreaHandler cellAreaHandler)
           
 
Method Summary
 void drawDashedFocusRectangle(Graphics gc, int x, int y, int width, int height)
          Draws a dashed focus rectangle.
 void drawFrameBorder(Graphics gc)
          Draws a border around the cell and label regions.
 void drawSelectionBorder(Graphics gc)
          Draws a border around selected regions.
 void drawTable3FocusRectangle(Graphics gc, int x, int y, int width, int height)
          Draws the Table3-style focus rectangle.
 void drawThinFocusRectangle(Graphics gc, int x, int y, int width, int height)
          Draws a thin focus rectangle.
protected  void forcePaintComponent(Component component, Graphics gc, int x, int y, int width, int height)
          Allows subclasses to paint components in cells.
protected  void paintArea(Graphics gc, com.klg.jclass.table.CellArea area)
          Paints all visible cells in a cell area.
protected  void paintCell(Graphics gc, int row, int column)
          Paints the cell if it is in the visible region and notifies any JCPaintListeners.
protected  void paintCell(Graphics gc, int row, int column, boolean notify)
          Paints the cell if it is in the visible region.
protected  void paintCell(Graphics gc, int row, int column, boolean notify, Rectangle r)
          Paints the cell if it is in the visible region re-using the given rectangle for cell bounds manipulation.
 void paintComponent(Graphics gc)
          Paints the entire visible region.
protected  void paintRange(Graphics gc, int start_row, int start_column, int end_row, int end_column)
          Paints all cells in the range that are in the visible region.
 void repaintCell(int row, int column)
          Notifies table that the given cell requires repaint.
 void repaintCell(int row, int column, boolean useStore)
          Notifies table that the given cell requires repaint.
 void repaintRange(int start_row, int start_column, int end_row, int end_column)
          Notifies table that the given cell range requires repaint.
 void repaintRange(com.klg.jclass.table.JCCellRange cr)
          Notifies table that the given cell range requires repaint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected com.klg.jclass.table.JCTable table

cellAreaHandler

protected com.klg.jclass.table.CellAreaHandler cellAreaHandler

borderColor

protected Color borderColor

borderShadowColor

protected Color borderShadowColor

borderHighlightColor

protected Color borderHighlightColor

dashedStroke

protected transient BasicStroke dashedStroke
Constructor Detail

CellAreaRenderer

public CellAreaRenderer(com.klg.jclass.table.CellAreaHandler cellAreaHandler)
Method Detail

paintComponent

public void paintComponent(Graphics gc)
Paints the entire visible region.


paintArea

protected void paintArea(Graphics gc,
                         com.klg.jclass.table.CellArea area)
Paints all visible cells in a cell area.


paintRange

protected void paintRange(Graphics gc,
                          int start_row,
                          int start_column,
                          int end_row,
                          int end_column)
Paints all cells in the range that are in the visible region.


paintCell

protected void paintCell(Graphics gc,
                         int row,
                         int column)
Paints the cell if it is in the visible region and notifies any JCPaintListeners.


paintCell

protected void paintCell(Graphics gc,
                         int row,
                         int column,
                         boolean notify)
Paints the cell if it is in the visible region.


paintCell

protected void paintCell(Graphics gc,
                         int row,
                         int column,
                         boolean notify,
                         Rectangle r)
Paints the cell if it is in the visible region re-using the given rectangle for cell bounds manipulation.


forcePaintComponent

protected void forcePaintComponent(Component component,
                                   Graphics gc,
                                   int x,
                                   int y,
                                   int width,
                                   int height)
Allows subclasses to paint components in cells. This is not required for normal table painting, but is required by the CellAreaRenderer subclasss used for printing in order to position components properly on the page.


drawFrameBorder

public void drawFrameBorder(Graphics gc)
Draws a border around the cell and label regions.


drawTable3FocusRectangle

public void drawTable3FocusRectangle(Graphics gc,
                                     int x,
                                     int y,
                                     int width,
                                     int height)
Draws the Table3-style focus rectangle.


drawThinFocusRectangle

public void drawThinFocusRectangle(Graphics gc,
                                   int x,
                                   int y,
                                   int width,
                                   int height)
Draws a thin focus rectangle.


drawDashedFocusRectangle

public void drawDashedFocusRectangle(Graphics gc,
                                     int x,
                                     int y,
                                     int width,
                                     int height)
Draws a dashed focus rectangle.


drawSelectionBorder

public void drawSelectionBorder(Graphics gc)
Draws a border around selected regions.


repaintRange

public void repaintRange(com.klg.jclass.table.JCCellRange cr)
Notifies table that the given cell range requires repaint.


repaintRange

public void repaintRange(int start_row,
                         int start_column,
                         int end_row,
                         int end_column)
Notifies table that the given cell range requires repaint.


repaintCell

public void repaintCell(int row,
                        int column)
Notifies table that the given cell requires repaint.


repaintCell

public void repaintCell(int row,
                        int column,
                        boolean useStore)
Notifies table that the given cell requires repaint.


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