Class GenericCellEditorPainter

  extended by com.alee.extended.painter.AbstractPainter<GenericCellEditor>
      extended by com.alee.laf.table.editors.GenericCellEditorPainter
All Implemented Interfaces:

public class GenericCellEditorPainter
extends AbstractPainter<GenericCellEditor>

Custom painter to provide visual feedback for invalid editor cells.

Mikle Garin
See Also:
AbstractPainter, Painter

Field Summary
Fields inherited from class com.alee.extended.painter.AbstractPainter
listeners, margin, opaque, preferredSize
Constructor Summary
          Constructs new generic cell editor painter.
Method Summary
 java.awt.Insets getMargin(GenericCellEditor c)
          Returns margin required for visual data provided by this painter.
 void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, GenericCellEditor c)
          Paints visual data onto the component graphics.
Methods inherited from class com.alee.extended.painter.AbstractPainter
addPainterListener, getPreferredSize, install, isOpaque, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, updateAll, updateOpacity
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public GenericCellEditorPainter()
Constructs new generic cell editor painter.

Method Detail


public java.awt.Insets getMargin(GenericCellEditor c)
Returns margin required for visual data provided by this painter. This margin is usually added to component's margin when the final component border is calculated. You may pass null instead of zero margin - it will simply be ignored in that case.

Specified by:
getMargin in interface Painter<GenericCellEditor>
getMargin in class AbstractPainter<GenericCellEditor>
c - component to process
margin required for visual data provided by this painter or null for zero margin


public void paint(java.awt.Graphics2D g2d,
                  java.awt.Rectangle bounds,
                  GenericCellEditor c)
Paints visual data onto the component graphics. Provided graphics and component are taken directly from component UI paint method. Provided bounds are usually fake (zero location, component size) but in some cases it might be specified by componentUI.

g2d - component graphics
bounds - bounds for painter visual data
c - component to process