com.javaranch.common
Class ButtonData

java.lang.Object
  |
  +--com.javaranch.common.ButtonData
All Implemented Interfaces:
java.io.Serializable

public class ButtonData
extends java.lang.Object
implements java.io.Serializable

This is a serializable object that can be passed in to create a new LButton.

- - - - - - - - - - - - - - - - -

Copyright (c) 1998-2004 Paul Wheaton

You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ...

My goal in giving this away and maintaining the copyright is to hopefully direct developers back to JavaRanch.

The original source can be found at JavaRanch

- - - - - - - - - - - - - - - - -

Author:
Paul Wheaton
See Also:
Serialized Form

Constructor Summary
ButtonData(byte[] upImage, byte[] downImage, byte[] dimImage, IPoint pos)
          Create a new ButtonData object.
 
Method Summary
 byte[] getDimImage()
           
 byte[] getDownImage()
           
 IPoint getPos()
           
 byte[] getUpImage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonData

public ButtonData(byte[] upImage,
                  byte[] downImage,
                  byte[] dimImage,
                  IPoint pos)
Create a new ButtonData object.

Parameters:
upImage - Represents the button in the "up" state - can be a GIF or JPEG.

downImage - Represents the button in the "down" state - can be a GIF or JPEG.

dimImage - Represents the button in the "dim" state - can be a GIF or JPEG.

pos - The button's location.

Method Detail

getUpImage

public byte[] getUpImage()

getDownImage

public byte[] getDownImage()

getDimImage

public byte[] getDimImage()

getPos

public IPoint getPos()


Copyright ©2004 Paul Wheaton All Rights Reserved