Sharkysoft home

lava.gui
Class ButtonImages

java.lang.Object
  |
  +--lava.gui.ButtonImages

public class ButtonImages
extends java.lang.Object

Button faces for various button states.

Details: A ButtonImages instance defines the images to be used in fancy buttons that can assume a variety of visual states. Members define images for buttons that are in or out, and hot, cold, or disabled (frozen).

Since:
1999.04.24
See Also:
GuiToolbox.configureFaces(javax.swing.AbstractButton, lava.gui.ButtonImages), GuiToolbox.buildJButton(lava.gui.ButtonImages), GuiToolbox.buildJToggleButton(lava.gui.ButtonImages)

Inner Class Summary
static class ButtonImages.StateSet
          Button faces for a single button position.
 
Field Summary
 ButtonImages.StateSet in
          Button faces for in position.
 ButtonImages.StateSet out
          Button faces for out position.
 
Constructor Summary
ButtonImages()
          Default constructor.
ButtonImages(ButtonImages original)
          Copy constructor.
 
Method Summary
 ButtonImages crop(java.awt.Rectangle r)
          Crops images.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

public final ButtonImages.StateSet in
Button faces for in position.

Details: in is the set of images to be used when the button is in the depressed position.


out

public final ButtonImages.StateSet out
Button faces for out position.

Details: out is the set of images to be used when the button is popped out (i.e., not depressed).

Constructor Detail

ButtonImages

public ButtonImages()
Default constructor.

Details: This constructor initializes all faces in both states to be null. Members must be individually filled in after construction.


ButtonImages

public ButtonImages(ButtonImages original)
Copy constructor.

Details: This constructor initializes the new instance to have the same faces as original.

Parameters:
original - the face collection to copy
Method Detail

crop

public ButtonImages crop(java.awt.Rectangle r)
Crops images.

Details: crop returns a new ButtonImages object whose images are the same as this, but cropped according to the given rectangle.

Parameters:
r - the rectangle
Returns:
the cropped images
Throws:
ButtonImages.StateSet -  
Since:
1999.07.12

Sharkysoft home