Style Intelligence v12.0

inetsoft.report
Class SectionBand.Separator

java.lang.Object
  extended by inetsoft.report.SectionBand.Separator
All Implemented Interfaces:
Comparer, inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparator
Enclosing class:
SectionBand

public static class SectionBand.Separator
extends Object
implements Serializable, Cloneable, Comparer, inetsoft.util.XMLSerializable

Separator is used for describe a vertical seperator in section. Includes the seperator's line style, position and color.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface inetsoft.report.Comparer
NEGATIVE_DOUBLE_ERROR, NEGATIVE_FLOAT_ERROR, POSITIVE_DOUBLE_ERROR, POSITIVE_FLOAT_ERROR
 
Constructor Summary
SectionBand.Separator()
          Create a section vertial separator based on the position border and color.
SectionBand.Separator(int position, int border, Color c)
          Create a section vertial separator based on the position border and color.
SectionBand.Separator(SectionBand.Separator s)
          Create a section vertial separator based on another separator.
 
Method Summary
 Object clone()
          Clone method of the vertical separator.
 int compare(double v1, double v2)
          This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2.
 int compare(float v1, float v2)
          This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2.
 int compare(int v1, int v2)
          This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2.
 int compare(long v1, long v2)
          This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2.
 int compare(Object obj1, Object obj2)
          Compare two separator regarding their position.
 int compare(short v1, short v2)
          This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2.
 boolean equals(Object obj)
           
 int getBorder()
          Get border of the vertical separator.
 Color getColor()
          Get color of the vertical separator.
 int getPosition()
          Get position of the vertical separator.
 void parseXML(Element elem)
          Reads in the properties from the specified XML Element.
 void setBorder(int i)
          Set border of the vertical separator.
 void setColor(Color c)
          Set color of the vertical separator.
 void setPosition(int i)
          Set position of the vertical separator.
 void writeXML(PrintWriter writer)
          Writes this object as an XML entity to the specified print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionBand.Separator

public SectionBand.Separator()
Create a section vertial separator based on the position border and color.


SectionBand.Separator

public SectionBand.Separator(int position,
                             int border,
                             Color c)
Create a section vertial separator based on the position border and color.


SectionBand.Separator

public SectionBand.Separator(SectionBand.Separator s)
Create a section vertial separator based on another separator.

Method Detail

getPosition

public int getPosition()
Get position of the vertical separator.


setPosition

public void setPosition(int i)
Set position of the vertical separator.


getBorder

public int getBorder()
Get border of the vertical separator.


setBorder

public void setBorder(int i)
Set border of the vertical separator.


getColor

public Color getColor()
Get color of the vertical separator.


setColor

public void setColor(Color c)
Set color of the vertical separator.


clone

public Object clone()
Clone method of the vertical separator.

Overrides:
clone in class Object

compare

public int compare(Object obj1,
                   Object obj2)
Compare two separator regarding their position.

Specified by:
compare in interface Comparer
Specified by:
compare in interface Comparator
Parameters:
obj1 - comparison value.
obj2 - comparison value.
Returns:
< 0, 0, or > 0 for v1v2.

compare

public int compare(double v1,
                   double v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. It must handle null values for the comparison values.

Specified by:
compare in interface Comparer
Parameters:
v1 - comparison value.
v2 - comparison value.
Returns:
< 0, 0, or > 0 for v1v2.

compare

public int compare(float v1,
                   float v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. It must handle null values for the comparison values.

Specified by:
compare in interface Comparer
Parameters:
v1 - comparison value.
v2 - comparison value.
Returns:
< 0, 0, or > 0 for v1v2.

compare

public int compare(long v1,
                   long v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. It must handle null values for the comparison values.

Specified by:
compare in interface Comparer
Parameters:
v1 - comparison value.
v2 - comparison value.
Returns:
< 0, 0, or > 0 for v1v2.

compare

public int compare(int v1,
                   int v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. It must handle null values for the comparison values.

Specified by:
compare in interface Comparer
Parameters:
v1 - comparison value.
v2 - comparison value.
Returns:
< 0, 0, or > 0 for v1v2.

compare

public int compare(short v1,
                   short v2)
This method should return > 0 if v1 is greater than v2, 0 if v1 is equal to v2, or < 0 if v1 is less than v2. It must handle null values for the comparison values.

Specified by:
compare in interface Comparer
Parameters:
v1 - comparison value.
v2 - comparison value.
Returns:
< 0, 0, or > 0 for v1v2.

writeXML

public void writeXML(PrintWriter writer)
Writes this object as an XML entity to the specified print writer.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable

parseXML

public void parseXML(Element elem)
              throws IOException
Reads in the properties from the specified XML Element.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Throws:
IOException

equals

public boolean equals(Object obj)
Specified by:
equals in interface Comparator
Overrides:
equals in class Object

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