Style Intelligence v12.0

inetsoft.report.filter
Class CrosstabGrid

java.lang.Object
  extended by inetsoft.report.filter.CrosstabGrid
All Implemented Interfaces:
Serializable, Cloneable

public class CrosstabGrid
extends Object
implements Serializable, Cloneable

This class defines the grid lines in a crosstab. It can be used to control how the grid is drawn in a crosstab.

See Also:
Serialized Form

Field Summary
static int BORDER_MAX
          Number of border types.
static int CELLS_BOTTOM_BORDER
          Cells label bottom border
static int CELLS_HORIZONTAL_LINES
          Cells label horizontal lines.
static int CELLS_RIGHT_BORDER
          Cells label right border
static int CELLS_VERTICAL_LINES
          Cells label vertical lines.
static int COLUMN_LABEL_BOTTOM_BORDER
          Column label bottom border
static int COLUMN_LABEL_HORIZONTAL_LINES
          Column label horizontal lines.
static int COLUMN_LABEL_LEFT_BORDER
          Column label left border.
static int COLUMN_LABEL_RIGHT_BORDER
          Column label right border
static int COLUMN_LABEL_TOP_BORDER
          Column label top border.
static int COLUMN_LABEL_VERTICAL_LINES
          Column label vertical lines.
static int ROW_LABEL_BOTTOM_BORDER
          Row label bottom border
static int ROW_LABEL_HORIZONTAL_LINES
          Row label horizontal lines.
static int ROW_LABEL_LEFT_BORDER
          Row label left border.
static int ROW_LABEL_RIGHT_BORDER
          Row label right border
static int ROW_LABEL_TOP_BORDER
          Row label top border.
static int ROW_LABEL_VERTICAL_LINES
          Row label vertical lines.
 
Constructor Summary
CrosstabGrid()
          Create a crosstab grid descriptor.
 
Method Summary
 Object clone()
           
 int getBorder(int type)
          Get the border line style of a particular type.
 Color getBorderColor(int type)
          Get the border line color of a particular type.
 void setBorder(int type, int style)
          Set the border of a particular type.
 void setBorderColor(int type, Color color)
          Set the border color of a particular type.
 void writeXML(PrintWriter writer)
          Writer a crosstab grid descriptor.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_LABEL_TOP_BORDER

public static final int COLUMN_LABEL_TOP_BORDER
Column label top border.

See Also:
Constant Field Values

COLUMN_LABEL_LEFT_BORDER

public static final int COLUMN_LABEL_LEFT_BORDER
Column label left border.

See Also:
Constant Field Values

COLUMN_LABEL_RIGHT_BORDER

public static final int COLUMN_LABEL_RIGHT_BORDER
Column label right border

See Also:
Constant Field Values

COLUMN_LABEL_BOTTOM_BORDER

public static final int COLUMN_LABEL_BOTTOM_BORDER
Column label bottom border

See Also:
Constant Field Values

COLUMN_LABEL_VERTICAL_LINES

public static final int COLUMN_LABEL_VERTICAL_LINES
Column label vertical lines.

See Also:
Constant Field Values

COLUMN_LABEL_HORIZONTAL_LINES

public static final int COLUMN_LABEL_HORIZONTAL_LINES
Column label horizontal lines.

See Also:
Constant Field Values

ROW_LABEL_TOP_BORDER

public static final int ROW_LABEL_TOP_BORDER
Row label top border.

See Also:
Constant Field Values

ROW_LABEL_LEFT_BORDER

public static final int ROW_LABEL_LEFT_BORDER
Row label left border.

See Also:
Constant Field Values

ROW_LABEL_RIGHT_BORDER

public static final int ROW_LABEL_RIGHT_BORDER
Row label right border

See Also:
Constant Field Values

ROW_LABEL_BOTTOM_BORDER

public static final int ROW_LABEL_BOTTOM_BORDER
Row label bottom border

See Also:
Constant Field Values

ROW_LABEL_VERTICAL_LINES

public static final int ROW_LABEL_VERTICAL_LINES
Row label vertical lines.

See Also:
Constant Field Values

ROW_LABEL_HORIZONTAL_LINES

public static final int ROW_LABEL_HORIZONTAL_LINES
Row label horizontal lines.

See Also:
Constant Field Values

CELLS_RIGHT_BORDER

public static final int CELLS_RIGHT_BORDER
Cells label right border

See Also:
Constant Field Values

CELLS_BOTTOM_BORDER

public static final int CELLS_BOTTOM_BORDER
Cells label bottom border

See Also:
Constant Field Values

CELLS_VERTICAL_LINES

public static final int CELLS_VERTICAL_LINES
Cells label vertical lines.

See Also:
Constant Field Values

CELLS_HORIZONTAL_LINES

public static final int CELLS_HORIZONTAL_LINES
Cells label horizontal lines.

See Also:
Constant Field Values

BORDER_MAX

public static final int BORDER_MAX
Number of border types.

See Also:
Constant Field Values
Constructor Detail

CrosstabGrid

public CrosstabGrid()
Create a crosstab grid descriptor.

Method Detail

setBorder

public void setBorder(int type,
                      int style)
Set the border of a particular type.

Parameters:
type - border type defined in this class.
style - line style to use for the border type. Use StyleConstants.NO_BORDER to turn a border off.

getBorder

public int getBorder(int type)
Get the border line style of a particular type.

Parameters:
type - border type defined in this class.
Returns:
border line style.

setBorderColor

public void setBorderColor(int type,
                           Color color)
Set the border color of a particular type.

Parameters:
type - border type defined in this class.
color - border line color.

getBorderColor

public Color getBorderColor(int type)
Get the border line color of a particular type.

Parameters:
type - border type defined in this class.
Returns:
border line color.

writeXML

public void writeXML(PrintWriter writer)
Writer a crosstab grid descriptor.


clone

public Object clone()
Overrides:
clone in class Object

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