|
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.common.NFVector
netcharts.pro.common.NFBaseSet
netcharts.pro.charts.multipie.NFSliceSet
public class NFSliceSet
An NFSliceSet describes a single set of 1 dimensional data along with its appearance characteristics. Data can be added via the addElement(), setElementAt(), or loadDataModel() methods. A simple example of this object's usage is shown here:
NFMultiPiechart chart = new NFMultiPiechart();
NFSliceSet sliceSet = new NFSliceSet("name", Color.red, "ON");
for (int i=0; i < 20; i++)
sliceSet.addElement(i);
chart.addSet(sliceSet);
| Constructor Summary | |
|---|---|
NFSliceSet()
Constructs a default slice set. |
|
NFSliceSet(java.awt.Color color)
Constructs a slice set with the given color. |
|
NFSliceSet(java.lang.String legendName,
java.awt.Color color)
Constructs a set with the given legend name and color. |
|
NFSliceSet(java.lang.String legendName,
java.awt.Color color,
boolean showSliceLabel)
Constructs a set with the legend name, color and show label flag. |
|
| Method Summary | |
|---|---|
void |
addElement(double doubleValue)
Add a double to the set. |
void |
addElement(int intValue)
Add an integer to the set. |
void |
addElement(java.lang.Object data)
Add an object to the set. |
void |
addElement(java.lang.Object[] data)
Add an object array to the set. |
java.lang.Object |
clone()
Does a deep copy of this object |
java.lang.String |
getCDLAppearance()
Generate the CDL that creates the appearance information. |
java.awt.Color |
getColor()
Returns the color for all slices in this set. |
java.lang.String |
getLegendName()
Returns the legend name of the set. |
boolean |
getModifiedAppearance()
Returns a flag indicating if the appearance of this set has changed. |
boolean |
getShowSliceLabel()
Returns whether the slice label is to be displayed. |
NFVector |
getSlicePositions()
Returns the slice positions for this set. |
void |
setCDLAppearance(java.lang.String s)
Configures the appearance information from a CDL parameter representation. |
void |
setColor(java.awt.Color color)
Sets the color for all slices in this set. |
void |
setElementAt(java.lang.Object[] data,
int index)
Set the object array into the vector. |
void |
setElementAt(java.lang.Object data,
int index)
Set the object into the vector. |
void |
setLegendName(java.lang.String legendName)
Set the legend name of the set. |
void |
setShowSliceLabel(boolean showSliceLabel)
Sets whether the slice label is to be displayed. |
void |
setSlicePositions(NFVector slicePositions)
Sets the slice positions for this set. |
| Methods inherited from class netcharts.pro.common.NFBaseSet |
|---|
addActiveLabel, getActiveLabels, getSetName, setActiveLabels, setSetName |
| Methods inherited from class netcharts.pro.common.NFVector |
|---|
elementAt, elementAt, getCDL, getCDL, getCDL, getCDLHasTuples, getCDLKeyValues, getCDLKeyValuesHasPoints, getMaxDimensions, getQuoteStrings, getSize, isEmptyStringAsNull, loadDataModel, loadDataModel, loadDataModel, removeElementAt, reset, setCDL, setCDLHasTuples, setCDLNullString, setEmptyStringAsNull, setQuoteStrings, setSize, size, skipNulls, toArray, toString |
| Methods inherited from class netcharts.pro.common.NFBaseClass |
|---|
getModified, getUserObject, setModified, setUserObject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NFSliceSet()
public NFSliceSet(java.awt.Color color)
color - The color of all slices in this set.
public NFSliceSet(java.lang.String legendName,
java.awt.Color color)
legendName - The name that will appear in the legend for this set. Also
used to label the slices in this set.color - The color of all slices in this set.
public NFSliceSet(java.lang.String legendName,
java.awt.Color color,
boolean showSliceLabel)
legendName - The name that will appear in the legend for this set. Also
used to label the slices in this set.color - The color of all slices in this set.param - Indicates if the slice label is to be displayed.| Method Detail |
|---|
public void setLegendName(java.lang.String legendName)
legendName - The name that will appear in the legend for this set
and also used to label the slices.public java.lang.String getLegendName()
public void setColor(java.awt.Color color)
color - Color of all slices in the set.public java.awt.Color getColor()
public void setShowSliceLabel(boolean showSliceLabel)
showSliceLabel - If true, the slice label is displayed.public boolean getShowSliceLabel()
public void setSlicePositions(NFVector slicePositions)
If the NFVector contains elements that are not numeric values, than an IllegalArgumentException will be thrown.
slicePositions - An NFVector of numeric values corresponding to each
slice position for this set.public NFVector getSlicePositions()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class NFBaseSetjava.lang.CloneNotSupportedExceptionpublic void addElement(int intValue)
intValue - data value to addpublic void addElement(double doubleValue)
doubleValue - data value to addpublic void addElement(java.lang.Object data)
If the value passed is not a valid data item an IllegalArgumentException will be thrown.
addElement in class NFVectordata - data objectpublic void addElement(java.lang.Object[] data)
If the array contains a value that is not a valid data item an IllegalArgumentException will be thrown.
addElement in class NFVectordata - data object
public void setElementAt(java.lang.Object data,
int index)
If the value passed is not a valid data item an IllegalArgumentException will be thrown.
setElementAt in class NFVectordata - object to addindex - Row index to put the object.
public void setElementAt(java.lang.Object[] data,
int index)
If the value passed is not a valid data item an IllegalArgumentException will be thrown.
data - object to addindex - Row index to put the object.public boolean getModifiedAppearance()
public java.lang.String getCDLAppearance()
("legendName", color, showSliceLabel)public void setCDLAppearance(java.lang.String s)
s - CDL in the form: ("legendName", color, showSliceLabel)
|
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 - 2018 |
Last Modified: Jan 7, 2018 |