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

Field Summary
static int ACTIVE_IMAGE
           
static int CLICKED_IMAGE
           
static int INACTIVE_IMAGE
           
static int MOUSEOVER_IMAGE
           
 
Fields inherited from class com.xith.java3d.overlay.OverlayBase
ACTIVE_BUFFER, activeBuffer, backgroundMode, canvas, consoleBranchGroup, consoleTransformGroup, POSITION, relativePosition, subOverlay, VISIBLE
 
Fields inherited from interface com.xith.java3d.overlay.Overlay
BACKGROUND_COPY, BACKGROUND_NONE, PLACE_BOTTOM, PLACE_CENTER, PLACE_LEFT, PLACE_RIGHT, PLACE_TOP, X_PLACEMENT, Y_PLACEMENT
 
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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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