ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataviewer
Class BandObject

java.lang.Object
  extended bycom.elegantj.data.dataviewer.BandObject
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class BandObject
extends java.lang.Object
implements java.io.Externalizable

The BandObject provides the properties of the band for the data viewer.

See Also:
Serialized Form

Constructor Summary
BandObject()
           
BandObject(java.lang.String bandLabel)
           
BandObject(java.lang.String bandLabel, java.awt.Color bandColor)
           
BandObject(java.lang.String bandLabel, java.awt.Color bandColor, int bandHeight)
          Creates a BandObject with specified band label, band color and band height
BandObject(java.lang.String bandLabel, int bandHeight)
           
 
Method Summary
 java.lang.Object clone()
          Returns the clone of the caller object
 boolean equals(java.lang.Object obj)
          Compares the specified Object with this BandObject for equality.
 java.awt.Color getBandColor()
          Gets the band color
 int getBandHeight()
          Gets the band height
 java.lang.String getBandLabel()
          Gets the band label
 void readExternal(java.io.ObjectInput in)
           
 void setBandColor(java.awt.Color bandColor)
          Sets the band color
 void setBandHeight(int bandHeight)
          Sets the band height
 void setBandLabel(java.lang.String bandLabel)
          Sets the band label
 java.lang.String toString()
          Converts the object to a string
 void writeExternal(java.io.ObjectOutput out)
          Externalizable interface implementation to save and retrieve the state of this object
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BandObject

public BandObject()

BandObject

public BandObject(java.lang.String bandLabel)

BandObject

public BandObject(java.lang.String bandLabel,
                  java.awt.Color bandColor)

BandObject

public BandObject(java.lang.String bandLabel,
                  int bandHeight)

BandObject

public BandObject(java.lang.String bandLabel,
                  java.awt.Color bandColor,
                  int bandHeight)
Creates a BandObject with specified band label, band color and band height

Parameters:
bandLabel - the label of the band, default "Label"
bandColor - the color of the band, default Color.white
bandHeight - the height of the band, default 0
Method Detail

setBandLabel

public void setBandLabel(java.lang.String bandLabel)
Sets the band label

Parameters:
bandLabel - the label of the band

getBandLabel

public java.lang.String getBandLabel()
Gets the band label

Returns:
the label of the band

setBandColor

public void setBandColor(java.awt.Color bandColor)
Sets the band color

Parameters:
bandColor - the color of the band

getBandColor

public java.awt.Color getBandColor()
Gets the band color

Returns:
the color of the band

setBandHeight

public void setBandHeight(int bandHeight)
Sets the band height

Parameters:
bandHeight - the height of the band

getBandHeight

public int getBandHeight()
Gets the band height

Returns:
the height of the band

clone

public java.lang.Object clone()
Returns the clone of the caller object


equals

public boolean equals(java.lang.Object obj)
Compares the specified Object with this BandObject for equality. Returns true if and only if the specified Object is also a BandObject, both BandObjects have the same properties.

Parameters:
obj - the Object to be compared for equality with this BandObject.
Returns:
true if the specified Object is equal to this BandObject

toString

public java.lang.String toString()
Converts the object to a string

Returns:
a string representation of this class object

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Externalizable interface implementation to save and retrieve the state of this object

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.