Class JCellRendererPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

@Deprecated public class JCellRendererPane extends JComponent implements Accessible
Deprecated.
no longer used in other JIDE classes.
Copied from CellRendererPane and make it extending JComponent so that tooltips of renderer works.
See Also:
  • Field Details

  • Constructor Details

    • JCellRendererPane

      public JCellRendererPane()
      Deprecated.
      Construct a CellRendererPane object.
  • Method Details

    • invalidate

      public void invalidate()
      Deprecated.
      Overridden to avoid propagating a invalidate up the tree when the cell renderer child is configured.
      Overrides:
      invalidate in class Container
    • paint

      public void paint(Graphics g)
      Deprecated.
      Shouldn't be called.
      Overrides:
      paint in class JComponent
    • update

      public void update(Graphics g)
      Deprecated.
      Shouldn't be called.
      Overrides:
      update in class JComponent
    • addImpl

      protected void addImpl(Component x, Object constraints, int index)
      Deprecated.
      If the specified component is already a child of this then we don't bother doing anything - stacking order doesn't matter for cell renderer components (CellRendererPane doesn't paint anyway).<
      Overrides:
      addImpl in class Container
    • paintComponent

      public void paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate)
      Deprecated.
      Paint a cell renderer component c on graphics object g. Before the component is drawn it's reparented to this (if that's necessary), it's bounds are set to w,h and the graphics object is (effectively) translated to x,y. If it's a JComponent, double buffering is temporarily turned off. After the component is painted it's bounds are reset to -w, -h, 0, 0 so that, if it's the last renderer component painted, it will not start consuming input. The Container p is the component we're actually drawing on, typically it's equal to this.getParent(). If shouldValidate is true the component c will be validated before painted.
    • paintComponent

      public void paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
      Deprecated.
      Calls this.paintComponent(g, c, p, x, y, w, h, false).
    • paintComponent

      public void paintComponent(Graphics g, Component c, Container p, Rectangle r)
      Deprecated.
      Calls this.paintComponent() with the rectangles x,y,width,height fields.
    • getAccessibleContext

      public AccessibleContext getAccessibleContext()
      Deprecated.
      Gets the AccessibleContext associated with this CellRendererPane. For CellRendererPanes, the AccessibleContext takes the form of an AccessibleCellRendererPane. A new AccessibleCellRendererPane instance is created if necessary.
      Specified by:
      getAccessibleContext in interface Accessible
      Overrides:
      getAccessibleContext in class Component
      Returns:
      an AccessibleCellRendererPane that serves as the AccessibleContext of this CellRendererPane