public class TablePainter<E extends javax.swing.JTable,U extends WebTableUI> extends AbstractPainter<E,U> implements ITablePainter<E,U>
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.event.MouseAdapter |
mouseAdapter
Listeners.
|
protected javax.swing.CellRendererPane |
rendererPane
Painting variables.
|
protected java.awt.Point |
rolloverCell
Runtime variables.
|
component, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
TablePainter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.Rectangle |
extendRect(java.awt.Rectangle rect,
boolean horizontal) |
protected java.awt.Rectangle |
getHDropLineRect(javax.swing.JTable.DropLocation loc) |
protected ToolTipProvider<? extends WebTable> |
getToolTipProvider()
Returns custom WebLaF tooltip provider.
|
protected java.awt.Rectangle |
getVDropLineRect(javax.swing.JTable.DropLocation loc) |
void |
install(E c,
U ui)
Called when painter is installed onto some component.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
Paints visual data using component graphics context.
|
protected void |
paintCell(java.awt.Graphics g,
java.awt.Rectangle cellRect,
int row,
int column) |
protected void |
paintCells(java.awt.Graphics g,
int rMin,
int rMax,
int cMin,
int cMax) |
protected void |
paintDraggedArea(java.awt.Graphics g,
int rMin,
int rMax,
javax.swing.table.TableColumn draggedColumn,
int distance) |
protected void |
paintDropLines(java.awt.Graphics g) |
protected void |
paintGrid(java.awt.Graphics g,
int rMin,
int rMax,
int cMin,
int cMax) |
void |
prepareToPaint(javax.swing.CellRendererPane rendererPane)
Prepares painter to paint table.
|
void |
uninstall(E c,
U ui)
Called when painter is installed into some component.
|
protected int |
viewIndexForColumn(javax.swing.table.TableColumn aColumn) |
addPainterListener, b, borderChange, getBorders, getCompleteBorder, getPreferredSize, i, i, i, installPropertyChangeListener, isOpaque, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, propertyChange, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPainterListener, getBorders, getPreferredSize, isOpaque, removePainterListenerprotected java.awt.event.MouseAdapter mouseAdapter
protected java.awt.Point rolloverCell
protected javax.swing.CellRendererPane rendererPane
public void install(E c, U ui)
Painterinstall in interface Painter<E extends javax.swing.JTable,U extends WebTableUI>install in class AbstractPainter<E extends javax.swing.JTable,U extends WebTableUI>c - component this painter is being installed ontoui - component UIpublic void uninstall(E c, U ui)
Painteruninstall in interface Painter<E extends javax.swing.JTable,U extends WebTableUI>uninstall in class AbstractPainter<E extends javax.swing.JTable,U extends WebTableUI>c - component this painter is being uninstalled fromui - component UIpublic void prepareToPaint(javax.swing.CellRendererPane rendererPane)
ITablePainterprepareToPaint in interface ITablePainter<E extends javax.swing.JTable,U extends WebTableUI>rendererPane - renderer panepublic void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
PainterIt is highly recommended to honor provided painting bounds to avoid painting issues. These bounds might be representing full component size or contain just a small portion of the component.
paint in interface Painter<E extends javax.swing.JTable,U extends WebTableUI>g2d - graphics contextbounds - painting boundsc - painted componentui - painted component UIprotected void paintDropLines(java.awt.Graphics g)
protected java.awt.Rectangle getHDropLineRect(javax.swing.JTable.DropLocation loc)
protected java.awt.Rectangle getVDropLineRect(javax.swing.JTable.DropLocation loc)
protected java.awt.Rectangle extendRect(java.awt.Rectangle rect,
boolean horizontal)
protected void paintGrid(java.awt.Graphics g,
int rMin,
int rMax,
int cMin,
int cMax)
protected void paintCells(java.awt.Graphics g,
int rMin,
int rMax,
int cMin,
int cMax)
protected void paintCell(java.awt.Graphics g,
java.awt.Rectangle cellRect,
int row,
int column)
protected void paintDraggedArea(java.awt.Graphics g,
int rMin,
int rMax,
javax.swing.table.TableColumn draggedColumn,
int distance)
protected int viewIndexForColumn(javax.swing.table.TableColumn aColumn)
protected ToolTipProvider<? extends WebTable> getToolTipProvider()