Style Intelligence v12.0

inetsoft.uql.asset
Class ValueRangeInfo

java.lang.Object
  extended by inetsoft.uql.asset.ValueRangeInfo
All Implemented Interfaces:
AssetObject, inetsoft.util.DataSerializable, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class ValueRangeInfo
extends Object
implements AssetObject, inetsoft.util.DataSerializable

ValueRangeInfo holds value range definition. Each range is defined by the lower and upper bounds.

See Also:
Serialized Form

Constructor Summary
ValueRangeInfo()
          Constructor.
 
Method Summary
 Object clone()
          Clone the object.
 boolean equals(Object obj)
          Check if equals another object.
 String[] getLabels()
          Get the labels.
 double[] getValues()
          Get the range boundary values.
 boolean isShowBottomValue()
          If show the bottom value.
 boolean isShowTopValue()
          If show the top value.
protected  void parseAttributes(Element elem)
          Parse contents.
protected  void parseContents(Element elem)
          Parse contents.
 boolean parseData(DataInputStream input)
          Parse data from an InputStream.
 void parseXML(Element elem)
          Method to parse an xml segment.
 void setLabels(String[] labels)
          Set the ranges' labels.
 void setShowBottomValue(boolean bottom)
          Set if show the bottom value.
 void setShowTopValue(boolean top)
          Set if show the top value.
 void setValues(double[] values)
          Set the value ranges.
 String toString()
          Get the string representation.
protected  void writeAttributes(PrintWriter writer)
          Write attributes.
protected  void writeContents(PrintWriter writer)
          Write contents.
 void writeData(DataOutputStream dos)
          Write data to a DataOutputStream.
 void writeXML(PrintWriter writer)
          Write the xml segment to print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueRangeInfo

public ValueRangeInfo()
Constructor.

Method Detail

getValues

public double[] getValues()
Get the range boundary values.

Returns:
the values.

setValues

public void setValues(double[] values)
Set the value ranges. Values are divided into n+1 ranges by the values in the list. The values must be sorted.

Parameters:
values - range boundary values.

getLabels

public String[] getLabels()
Get the labels.

Returns:
the labels.

setLabels

public void setLabels(String[] labels)
Set the ranges' labels.

Parameters:
labels - range boundary labels.

isShowBottomValue

public boolean isShowBottomValue()
If show the bottom value.

Returns:
if show the bottom value.

setShowBottomValue

public void setShowBottomValue(boolean bottom)
Set if show the bottom value.

Parameters:
bottom - if show the bottom value.

isShowTopValue

public boolean isShowTopValue()
If show the top value.

Returns:
if show the top value.

setShowTopValue

public void setShowTopValue(boolean top)
Set if show the top value.

Parameters:
top - if show the top value.

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
the string representaion.

clone

public Object clone()
Clone the object.

Specified by:
clone in interface AssetObject
Overrides:
clone in class Object
Returns:
the cloned object.

parseXML

public void parseXML(Element elem)
              throws Exception
Method to parse an xml segment.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
elem - the specified xml element.
Throws:
Exception

writeXML

public void writeXML(PrintWriter writer)
Write the xml segment to print writer.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Parameters:
writer - the destination print writer.

writeContents

protected void writeContents(PrintWriter writer)
Write contents.

Parameters:
writer - the specified writer.

parseContents

protected void parseContents(Element elem)
                      throws Exception
Parse contents.

Parameters:
elem - the specified xml element.
Throws:
Exception

writeAttributes

protected void writeAttributes(PrintWriter writer)
Write attributes.

Parameters:
writer - the specified writer.

parseAttributes

protected void parseAttributes(Element elem)
Parse contents.

Parameters:
elem - the specified xml element.

writeData

public void writeData(DataOutputStream dos)
Write data to a DataOutputStream.

Specified by:
writeData in interface inetsoft.util.DataSerializable
Parameters:
dos - the destination DataOutputStream.

parseData

public boolean parseData(DataInputStream input)
Parse data from an InputStream.

Specified by:
parseData in interface inetsoft.util.DataSerializable
Parameters:
input - the source DataInputStream.

equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class Object
Parameters:
obj - the specified object to compare to.
Returns:
true if equals the specified object, false otherwise.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.