com.xith.java3d.overlay
Class ImageButtonOverlay
java.lang.Object
|
+--com.xith.java3d.overlay.OverlayBase
|
+--com.xith.java3d.overlay.ImageButtonOverlay
- All Implemented Interfaces:
- Overlay, ScreenComponent, UpdatableEntity
- public class ImageButtonOverlay
- extends OverlayBase
- Author:
- Will Holcomb
Constructor Summary |
ImageButtonOverlay(javax.media.j3d.Canvas3D canvas,
java.awt.Rectangle imageSpace,
boolean clipAlpha,
boolean blendAlpha,
java.awt.image.BufferedImage[] image)
|
ImageButtonOverlay(javax.media.j3d.Canvas3D canvas,
java.awt.Rectangle imageSpace,
java.awt.image.BufferedImage[] image)
|
Method Summary |
void |
repaint()
This is called to trigger a repaint of the overlay. |
protected void |
switchButtons()
Called on a state change to update the buttons |
Methods inherited from class com.xith.java3d.overlay.OverlayBase |
addMouseListener, dirty, getBackgroundImage, getBounds, getCanvas, getGraphics, getPolygonAttributes, getRenderingAttributes, getRoot, getTextureAttributes, getTransparencyAttributes, getUpdateManager, hasAlphaComponent, initialize, isAntialiased, isVisible, paint, removeMouseListener, setActiveBuffer, setAntialiased, setBackgroundColor, setBackgroundImage, setBackgroundMode, setOffset, setOffset, setRelativePosition, setRelativePosition, setUpdateManager, setVisible, update, updateBuffer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INACTIVE_IMAGE
public static final int INACTIVE_IMAGE
ACTIVE_IMAGE
public static final int ACTIVE_IMAGE
CLICKED_IMAGE
public static final int CLICKED_IMAGE
MOUSEOVER_IMAGE
public static final int MOUSEOVER_IMAGE
ImageButtonOverlay
public ImageButtonOverlay(javax.media.j3d.Canvas3D canvas,
java.awt.Rectangle imageSpace,
java.awt.image.BufferedImage[] image)
ImageButtonOverlay
public ImageButtonOverlay(javax.media.j3d.Canvas3D canvas,
java.awt.Rectangle imageSpace,
boolean clipAlpha,
boolean blendAlpha,
java.awt.image.BufferedImage[] image)
switchButtons
protected void switchButtons()
- Called on a state change to update the buttons
repaint
public void repaint()
- Description copied from class:
OverlayBase
- This is called to trigger a repaint of the overlay. This will return once
the back buffer has been built, but before the swap.
- Overrides:
repaint
in class OverlayBase