Package com.jackmeng.stl
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.BufferedImagebufferprivate java.awt.Graphics2DbufferGraphicsprivate booleanisDirty -
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.Graphics2DgetGraphics()voidpaintComponent(java.awt.Graphics g)voidsetSize(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)
-