org.naokishibata.generic
Class AnimationPanel
java.lang.Object
org.naokishibata.generic.AnimationPanel
- All Implemented Interfaces:
- java.awt.event.WindowListener, java.util.EventListener
public class AnimationPanel
- extends java.lang.Object
- implements java.awt.event.WindowListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnimationPanel
public AnimationPanel(int width,
int height,
boolean ebs)
AnimationPanel
public AnimationPanel(int width,
int height)
AnimationPanel
public AnimationPanel(java.awt.Window w,
int width,
int height,
boolean ebs)
AnimationPanel
public AnimationPanel(java.awt.Window w,
int width,
int height)
makePanel
public javax.swing.JPanel makePanel()
makeFrame
public javax.swing.JFrame makeFrame(java.lang.String name)
makeFrame
public javax.swing.JFrame makeFrame()
frame
public java.awt.Frame frame()
setVisible
public void setVisible(boolean b)
setIconifyWhenClosed
public void setIconifyWhenClosed(boolean b)
setExitWhenClosed
public void setExitWhenClosed(boolean b)
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
- Specified by:
windowClosing
in interface java.awt.event.WindowListener
getDisplayModes
public java.awt.DisplayMode[] getDisplayModes()
render
public void render(java.awt.Graphics g)
getWidth
public int getWidth()
getHeight
public int getHeight()
setSize
public void setSize(int width,
int height)
newVolatileImage
public static java.awt.image.VolatileImage newVolatileImage(int width,
int height)
getGraphics2D
public java.awt.Graphics2D getGraphics2D()
swapBuffer
public void swapBuffer()
setBackgroundColor
public void setBackgroundColor(java.awt.Color c)
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
- Specified by:
windowOpened
in interface java.awt.event.WindowListener
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
- Specified by:
windowActivated
in interface java.awt.event.WindowListener
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
- Specified by:
windowClosed
in interface java.awt.event.WindowListener
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
- Specified by:
windowDeactivated
in interface java.awt.event.WindowListener
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
- Specified by:
windowDeiconified
in interface java.awt.event.WindowListener
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
- Specified by:
windowIconified
in interface java.awt.event.WindowListener