Class ButtonData

All Implemented Interfaces:

public class ButtonData
extends java.lang.Object

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

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

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


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

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


public byte[] getUpImage()


public byte[] getDownImage()


public byte[] getDimImage()


public IPoint getPos()

Copyright ©2004 Paul Wheaton All Rights Reserved