|
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.common.NFSet
netcharts.pro.common.rectangular.NFDataSet
netcharts.pro.charts.box.NFBoxSet
public class NFBoxSet
An NFBoxSet 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:
NFBoxchart bc = new NFBoxchart();
NFBoxSet boxSet = new NFBoxSet("Apples", Color.red);
for (int j=0; j < 20; j++)
boxSet.addElement(j);
bc.addBoxSet(boxSet);
| Constructor Summary | |
|---|---|
NFBoxSet()
Constructs a default box set |
|
NFBoxSet(java.awt.Color boxColor)
Constructs a box set with the given data color. |
|
NFBoxSet(java.lang.String legendName,
java.awt.Color boxColor)
Constructs a box set with the given legend name and data color. |
|
| 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 a object to the set. |
java.lang.Object |
clone()
Does a deep copy of this boxset object |
java.lang.String |
getCDLAppearance()
Generate the CDL that creates the appearance information. |
java.awt.Color |
getColor()
Gets the color for this set's box. |
NFVector |
getDataPointActiveLabels()
Returns the data point active labels for this set. |
NFLineSetSymbol |
getDataPointSymbol()
Returns the data point symbol. |
NFVector |
getFenceActiveLabels()
Returns the fence active labels for this set |
NFFillPattern |
getFillPattern()
Gets the fill pattern for this set's box. |
java.lang.String |
getLegendName()
Returns the data set name used in the legend. |
NFLineSetSymbol |
getMeanSymbol()
Returns the mean symbol. |
boolean |
getModifiedAppearance()
Returns if the appearance of this dataset has changed. |
boolean |
getModifiedDataPointSymbols()
Returns if the data point symbols of this dataset has changed. |
boolean |
getModifiedMeanSymbols()
Returns if the mean symbols of this dataset has changed. |
boolean |
getModifiedOutlierSymbols()
Returns if the outlier symbols of this dataset has changed. |
NFVector |
getOutlierActiveLabels()
Returns the outlier active labels for this set |
NFLineSetSymbol |
getOutlierSymbol()
Returns the outlier symbol. |
void |
setCDLAppearance(java.lang.String s)
Configures the appearance information from a CDL parameter representation. |
void |
setColor(java.awt.Color boxColor)
Sets the color for this set's box. |
void |
setDataPointActiveLabels(NFVector dataPointActiveLabels)
Set the data point active labels for this set. |
void |
setDataPointSymbol(NFLineSetSymbol dataPointSymbol)
Sets the data point symbol. |
void |
setElementAt(java.lang.Object data,
int index)
Set the object into the vector. |
void |
setFenceActiveLabels(NFVector fenceActiveLabels)
Set the fence active labels for this set. |
void |
setFillPattern(NFFillPattern fillPattern)
Sets the fill pattern for this set's box. |
void |
setLegendName(java.lang.String legendName)
Set the data set name to use in legend. |
void |
setMeanSymbol(NFLineSetSymbol meanSymbol)
Sets the mean symbol. |
void |
setOutlierActiveLabels(NFVector outlierActiveLabels)
Set the outlier active labels for this set. |
void |
setOutlierSymbol(NFLineSetSymbol outlierSymbol)
Sets the outlier symbol. |
| Methods inherited from class netcharts.pro.common.rectangular.NFDataSet |
|---|
setXAxis, setYAxis |
| Methods inherited from class netcharts.pro.common.NFSet |
|---|
getAxisMap, setAxisMap |
| Methods inherited from class netcharts.pro.common.NFBaseSet |
|---|
addActiveLabel, getActiveLabels, getSetName, setActiveLabels, setSetName |
| Methods inherited from class netcharts.pro.common.NFVector |
|---|
addElement, 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 NFBoxSet()
public NFBoxSet(java.awt.Color boxColor)
boxColor - The color of the box representing this data set.
public NFBoxSet(java.lang.String legendName,
java.awt.Color boxColor)
legendName - The name that will appear in the legend for this set.boxColor - The color of the box representing this data set.| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class NFSetjava.lang.CloneNotSupportedExceptionpublic void addElement(int intValue)
intValue - datum to addpublic void addElement(double doubleValue)
doubleValue - datum 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 - 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 boolean getModifiedAppearance()
public boolean getModifiedDataPointSymbols()
public boolean getModifiedMeanSymbols()
public boolean getModifiedOutlierSymbols()
public void setColor(java.awt.Color boxColor)
boxColor - The color for this set's boxpublic java.awt.Color getColor()
public void setFillPattern(NFFillPattern fillPattern)
fillPattern - Fill pattern for this set's box.public NFFillPattern getFillPattern()
fill - pattern for this set's box.public void setLegendName(java.lang.String legendName)
legendName - Name to use in legendpublic java.lang.String getLegendName()
public void setMeanSymbol(NFLineSetSymbol meanSymbol)
meanSymbol - NFSymbol objectpublic NFLineSetSymbol getMeanSymbol()
public void setDataPointSymbol(NFLineSetSymbol dataPointSymbol)
dataPointSymbol - NFSymbol objectpublic NFLineSetSymbol getDataPointSymbol()
public void setOutlierSymbol(NFLineSetSymbol outlierSymbol)
outlierSymbol - NFSymbol objectpublic NFLineSetSymbol getOutlierSymbol()
public void setDataPointActiveLabels(NFVector dataPointActiveLabels)
If the vector contains elements that are not NFActiveLabel objects, an IllegalArgumentException will be thrown.
dataPointActiveLabels - Vector of NFActiveLabelspublic NFVector getDataPointActiveLabels()
public void setFenceActiveLabels(NFVector fenceActiveLabels)
If the vector contains elements that are not NFActiveLabel objects, an IllegalArgumentException will be thrown.
fenceActiveLabels - Vector of NFActiveLabelspublic NFVector getFenceActiveLabels()
public void setOutlierActiveLabels(NFVector outlierActiveLabels)
If the vector contains elements that are not NFActiveLabel objects, an IllegalArgumentException will be thrown.
outlierActiveLabels - Vector of NFActiveLabelspublic NFVector getOutlierActiveLabels()
public java.lang.String getCDLAppearance()
("legendName", boxColor)public void setCDLAppearance(java.lang.String s)
cdl - CDL in the form: ("legendName", boxColor)
|
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 |