Interface ComponentPaintCache.Cacheable

All Known Implementing Classes:
ImageViewWindow, InternalManagedWindow, InternalWindow, SlotWindow, Spells
Enclosing class:
ComponentPaintCache

public static interface ComponentPaintCache.Cacheable
Interface for components that use ComponentPaintCache. JComponents support by default all but paintComponent(Graphics) and paintBorder(Graphics), which are by default protected
  • Method Details

    • getWidth

      int getWidth()
      Get the total width of the component, including borders.
      Returns:
      component width.
    • getHeight

      int getHeight()
      Get the total height of the component, including borders.
      Returns:
      component height.
    • paintComponent

      void paintComponent(Graphics g)
      Paint the component.
      Parameters:
      g - graphics
    • paintBorder

      void paintBorder(Graphics g)
      Paint the component border.
      Parameters:
      g - graphics
    • paintChildren

      void paintChildren(Graphics g)
      Paint everything, including the child components.
      Parameters:
      g - graphics
    • getGraphicsConfiguration

      GraphicsConfiguration getGraphicsConfiguration()
      Get the component graphics configuration.
      Returns:
      graphics configuration