Class stl_SwingBuffered2

java.lang.Object
com.jackmeng.stl.stl_SwingBuffered2

public class stl_SwingBuffered2
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.awt.image.BufferedImage buffer  
    private java.awt.Graphics2D bufferGraphics  
    private boolean isDirty  
  • Constructor Summary

    Constructors
    Constructor Description
    stl_SwingBuffered2​(int width, int height)  
    stl_SwingBuffered2​(javax.swing.JComponent component)  
  • Method Summary

    Modifier and Type Method Description
    java.awt.Graphics2D getGraphics()  
    void paintComponent​(java.awt.Graphics g)  
    void setSize​(int width, int height)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • buffer

      private java.awt.image.BufferedImage buffer
    • bufferGraphics

      private java.awt.Graphics2D bufferGraphics
    • isDirty

      private boolean isDirty
  • Constructor Details

    • stl_SwingBuffered2

      public stl_SwingBuffered2​(javax.swing.JComponent component)
    • stl_SwingBuffered2

      public stl_SwingBuffered2​(int width, int height)
  • Method Details

    • getGraphics

      public java.awt.Graphics2D getGraphics()
    • paintComponent

      public void paintComponent​(java.awt.Graphics g)
    • setSize

      public void setSize​(int width, int height)