|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.charts.heatmap.NFHeatmapGridBlockLayout
public class NFHeatmapGridBlockLayout
Grid block layout which specifies the number of rows and columns in the grid. If not specified, then the grid layout will automatically be configured based upon the number of data values that can fit into a square.
Field Summary | |
---|---|
static int |
DEFAULT_NUM_COLUMNS
Default value for the number of columns if not specified. |
static int |
DEFAULT_NUM_ROWS
Default value for the number of rows if not specified. |
static int |
MAX_COLUMNS
Maximum number of columns allowed in the grid |
static int |
MAX_ROWS
Maximum number of rows allowed in the grid |
Constructor Summary | |
---|---|
NFHeatmapGridBlockLayout()
Constructs a grid block layout object with the number of rows and columns set to default values. |
|
NFHeatmapGridBlockLayout(int numRows,
int numColumns)
Constructs a grid block layout object from the specified number of rows and columns. |
Method Summary | |
---|---|
java.lang.String |
getCDL()
Generate CDL parameters representing this gridlayout |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this grid layout to the given StringBuffer. |
int |
getNumColumns()
Returns the number of columns in the grid. |
int |
getNumRows()
Returns the number of rows in the grid. |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
int |
setCDL(java.lang.String[] elements,
int offset)
Configures this object from a CDL parameter representation. |
void |
setNumColumns(int numColumns)
Sets the number of columns in the grid. |
void |
setNumRows(int numRows)
Sets the number of rows in the grid. |
java.lang.String |
toString()
Returns a String object representing the grid layout. |
Methods inherited from class netcharts.pro.common.NFBaseClass |
---|
clone, getModified, getUserObject, setModified, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_NUM_ROWS
public static final int DEFAULT_NUM_COLUMNS
public static final int MAX_ROWS
public static final int MAX_COLUMNS
Constructor Detail |
---|
public NFHeatmapGridBlockLayout()
public NFHeatmapGridBlockLayout(int numRows, int numColumns)
Method Detail |
---|
public int getNumRows()
DEFAULT_NUM_ROWS
if not setpublic void setNumRows(int numRows)
DEFAULT_NUM_ROWS
is used.
The number of rows cannot exceed MAX_ROWS
.
numRows
- number of rows in the gridpublic int getNumColumns()
DEFAULT_NUM_COLUMNS
if not setpublic void setNumColumns(int numColumns)
DEFAULT_NUM_COLUMNS
is used.
The number of columns cannot exceed MAX_COLUMNS
.
numColumns
- number of columns in the gridpublic java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
(numRows, numColumns)
public void getCDL(java.lang.StringBuffer sb, boolean includeParens)
sb
- Target buffer to append the CDL parametersincludeParens
- If true, this will cause the parameters to be delimited
with parenthesis.public java.lang.String toString()
toString
in interface NFCDLGenerator
toString
in class java.lang.Object
public void setCDL(java.lang.String cdl)
setCDL
in interface NFCDLGenerator
cdl
- CDL in the form: (numRows, numColumns)
public int setCDL(java.lang.String[] elements, int offset)
elements
- Array of parameter elements. This array is expected to contain
consecutive elements containing numRows and numColumns
information.offset
- Offset into the elements array.
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |