|
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.multipie.NFPieLayout
public class NFPieLayout
The pie layout parameters specifies the layout direction (horizontal or vertical) and the number of rows and columns in the chart in which to draw each pie. If the number of rows and columns are not specified, then they will automatically be set based upon the number of pies that can fit into a square. The pie layout direction determines the direction to start with when drawing the pies.
Field Summary | |
---|---|
static int |
DEFAULT_LAYOUT_DIRECTION
Default value for the pie layout if not specified. |
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 |
HORIZONTAL
Horizontal pie layout direction. |
static java.util.Hashtable |
layoutDirectionMap
Pie layout direction hashtable |
static int |
VERTICAL
Vertical pie layout direction. |
Constructor Summary | |
---|---|
NFPieLayout()
Constructs a pie layout object with default values. |
|
NFPieLayout(int layoutDirection)
Constructs a pie layout object from the specified layout direction and defaults for the number of rows and columns. |
|
NFPieLayout(int numRows,
int numColumns)
Constructs a pie layout object from the specified number of rows and columns and a default layout direction. |
|
NFPieLayout(int layoutDirection,
int numRows,
int numColumns)
Constructs a pie layout object from the specified layout direction and from the specified number of rows and columns. |
Method Summary | |
---|---|
java.lang.String |
getCDL()
Generate CDL parameters representing this pie layout |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this pie layout to the given StringBuffer. |
int |
getLayoutDirection()
Returns the pie layout direction. |
int |
getNumColumns()
Returns the number of columns to draw the pies in. |
int |
getNumRows()
Returns the number of rows to draw the pies in. |
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 |
setLayoutDirection(int layoutDirection)
Sets the pie layout direction (VERTICAL or HORIZONTAL). |
void |
setNumColumns(int numColumns)
Sets the number of columns to draw the pies in. |
void |
setNumRows(int numRows)
Sets the number of rows to draw the pies in. |
java.lang.String |
toString()
Returns a String object representing the pie 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 HORIZONTAL
public static final int VERTICAL
public static final int DEFAULT_LAYOUT_DIRECTION
public static final int DEFAULT_NUM_ROWS
public static final int DEFAULT_NUM_COLUMNS
public static java.util.Hashtable layoutDirectionMap
Constructor Detail |
---|
public NFPieLayout()
public NFPieLayout(int layoutDirection)
public NFPieLayout(int numRows, int numColumns)
public NFPieLayout(int layoutDirection, int numRows, int numColumns)
Method Detail |
---|
public int getLayoutDirection()
public void setLayoutDirection(int layoutDirection)
If the specified layout direction is not valid then an IllegalArgumentException will be thrown.
pie
- layout directionpublic int getNumRows()
public void setNumRows(int numRows)
numRows
- number of rows to draw the pies inpublic int getNumColumns()
public void setNumColumns(int numColumns)
numColumns
- number of columns to draw the pies inpublic java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
(layoutDirection, 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: (layoutDirection, 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 layout direction, 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 |