Class GraphicsDebugPane

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.inductiveautomation.rm.viewer.GraphicsDebugPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class GraphicsDebugPane extends JComponent
A JComponent subclass that can be installed as the glass pane of another component, to help show the regions that get repainted.
See Also:
  • Constructor Details

    • GraphicsDebugPane

      protected GraphicsDebugPane()
      Protected constructor. To debug a component, call GraphicsDebugPane.installDebugPane() instead
  • Method Details

    • installDebugPane

      public static void installDebugPane(JComponent aComponent)
      Call this to start debugging a component and all its children.
    • removeDebugPane

      public static void removeDebugPane(JComponent aComponent)
    • isDebugPaneInstalled

      public static boolean isDebugPaneInstalled(JComponent aComponent)
    • displayDirty

      public void displayDirty(Rectangle r)
      Called by the repaintManager with the rect that is about to be redrawn.
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent