ar.com.fdvs.dj.core.layout
Class CrossTabColorShema

java.lang.Object
  extended by ar.com.fdvs.dj.core.layout.CrossTabColorShema
Direct Known Subclasses:
CrossTabColorShemaGenerator

public class CrossTabColorShema
extends java.lang.Object


Constructor Summary
protected CrossTabColorShema()
           
  CrossTabColorShema(DJCrosstab djcross)
          The DJCrosstab is used to get the number of columns and rows within it
  CrossTabColorShema(int rows, int cols)
          The number of rows and columns
 
Method Summary
 void create(int numCols, int numRows)
          To be overwritten
static java.awt.Color[][] createSchema(CrossTabColorShema ctColorScheme, int length, int length2)
           
 java.awt.Color[][] getColors()
           
 void setColorForMeasure(java.awt.Color col)
          Color in the area reserved for the measures
 void setColorForTotal(int row, int column, java.awt.Color color)
          Sets the color for the big total between the column and row
 void setTotalColorForColumn(int column, java.awt.Color color)
          Set the color for each total for the column
 void setTotalColorForRow(int row, java.awt.Color color)
          Sets the color for each total for the row
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossTabColorShema

protected CrossTabColorShema()

CrossTabColorShema

public CrossTabColorShema(int rows,
                          int cols)
The number of rows and columns

Parameters:
rows -
cols -

CrossTabColorShema

public CrossTabColorShema(DJCrosstab djcross)
The DJCrosstab is used to get the number of columns and rows within it

Parameters:
djcross -
Method Detail

getColors

public java.awt.Color[][] getColors()

create

public void create(int numCols,
                   int numRows)
To be overwritten

Parameters:
numCols -
numRows -

setTotalColorForColumn

public void setTotalColorForColumn(int column,
                                   java.awt.Color color)
Set the color for each total for the column

Parameters:
column - the number of the column (starting from 1)
color -

setTotalColorForRow

public void setTotalColorForRow(int row,
                                java.awt.Color color)
Sets the color for each total for the row

Parameters:
row - (starting from 1)
color -

setColorForTotal

public void setColorForTotal(int row,
                             int column,
                             java.awt.Color color)
Sets the color for the big total between the column and row

Parameters:
row - row index (starting from 1)
column - column index (starting from 1)
color -

setColorForMeasure

public void setColorForMeasure(java.awt.Color col)
Color in the area reserved for the measures

Parameters:
col -

createSchema

public static java.awt.Color[][] createSchema(CrossTabColorShema ctColorScheme,
                                              int length,
                                              int length2)


Copyright © 2006-2011 FDV Solutions. All Rights Reserved.