|
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.common.barset.NFBarSet
public class NFBarSet
An NFBarSet 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:
NFBarchart bc = new NFBarchart(); NFBarSet barSet = new NFBarSet("Apples", Color.red); for (int j=0; j < 20; j++) barSet.addElement(j); barSet.setBarType(NFBarSet.TRIANGLEBAR); bc.addBarSet(barSet);
Field Summary | |
---|---|
static int |
BAR
Bar style |
static java.util.Hashtable |
barValueLabelStyleMap
The set of allwoed bar value label styles. |
static int |
BOTTOM
Bottom value label style - shows value at bar bottom |
static int |
CYLINDER
Cylindrical bar style |
static int |
DIAMONDBAR
Diamond bar style |
static int |
EXTERNAL
External value label style - shows value outside of bar |
static int |
MIDDLE
Middle value label style - shows value at bar midpoint |
static int |
NONE
No value label style |
static int |
PIEHORIZONTAL
Horizontal pie style - considers data to be a percentage value less than or equal to 100. |
static int |
PIEVERTICAL
Vertical pie style - considers data to be a percentage value less than or equal to 100. |
static int |
TOP
Top value label style - shows value on inside of bar top |
static int |
TRIANGLEBAR
Triangular bar style |
Constructor Summary | |
---|---|
NFBarSet()
Constructs a default bar set |
|
NFBarSet(java.awt.Color barColor)
Constructs a bar set with the given data color. |
|
NFBarSet(java.lang.String legendName,
java.awt.Color barColor)
Constructs a bar 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. |
void |
addElement(java.lang.Object[] data)
Add a object array to the set. |
java.lang.Object |
clone()
Does a deep copy of this barset object |
int |
getBarStyle()
Gets the display style for all bars in this set. |
int |
getBarValueLabelStyle()
Gets the type of text labeling for bars in this set |
java.lang.String |
getCDLAppearance()
Generate the CDL that creates the appearance information. |
java.lang.String |
getCDLBarValueLabelStyle()
Get the bar value label style for the set from a CDL string. |
java.awt.Color |
getColor()
Gets the color for all bars in this set. |
NFColorTable |
getColorTable()
Gets the colorTable for the bars in this set. |
NFFillPattern |
getFillPattern()
Gets the fill pattern for all bars in this set. |
NFVector |
getGroupStackFillPatterns()
Returns the fill patterns for a GROUPSTACK bar chart. |
NFVector |
getGroupStackRightFillPatterns()
Returns the right fill patterns for a GROUPSTACK bar chart. |
NFVector |
getGroupStackTopFillPatterns()
Returns the Top fill patterns for a GROUPSTACK bar chart. |
java.lang.String |
getLegendName()
Returns the legend name |
boolean |
getModifiedAppearance()
Returns if the appearance of this dataset has changed in this set. |
boolean |
getModifiedValueLabel()
Returns if the positioning of value labels has changed in this set. |
NFFillPattern |
getRightFillPattern()
Gets the right fill pattern for all bars in this set. |
NFBarSymbol |
getSymbol()
Gets the bar symbol for all bars in this set. |
NFFillPattern |
getTopFillPattern()
Gets the top fill pattern for all bars in this set. |
void |
setBarStyle(int barStyle)
Sets the display style for all bars in this set. |
void |
setBarValueLabelStyle(int barValueLabelStyle)
Sets the type of text labeling for bars in this set. |
void |
setCDLAppearance(java.lang.String s)
Configures the appearance information from a CDL parameter representation. |
void |
setCDLBarValueLabelStyle(java.lang.String cdl)
Set the bar value label style for the set from a CDL string. |
void |
setColor(java.awt.Color barColor)
Sets the color for all bars in this set. |
void |
setColorTable(NFColorTable colorTable)
Sets the individual color for each bar 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 |
setFillPattern(NFFillPattern fillPattern)
Sets the fill pattern for all bars in this set. |
void |
setGroupStackFillPatterns(NFVector groupStackFillPatterns)
Sets the fill patterns for a GROUPSTACK bar chart. |
void |
setGroupStackRightFillPatterns(NFVector groupStackRightFillPatterns)
Sets the right fill patterns for a GROUPSTACK bar chart. |
void |
setGroupStackTopFillPatterns(NFVector groupStackTopFillPatterns)
Sets the top fill patterns for a GROUPSTACK bar chart. |
void |
setLegendName(java.lang.String legendName)
Set the legend name of the set |
void |
setRightFillPattern(NFFillPattern rightFillPattern)
Sets the right fill pattern for all bars in this set. |
void |
setSymbol(NFBarSymbol barSymbol)
Sets the bar symbol for all bars in this set. |
void |
setTopFillPattern(NFFillPattern topFillPattern)
Sets the top fill pattern for all bars in this set. |
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 |
---|
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 |
Field Detail |
---|
public static final int BAR
public static final int TRIANGLEBAR
public static final int DIAMONDBAR
public static final int CYLINDER
public static final int PIEVERTICAL
public static final int PIEHORIZONTAL
public static final int NONE
public static final int EXTERNAL
public static final int TOP
public static final int MIDDLE
public static final int BOTTOM
public static java.util.Hashtable barValueLabelStyleMap
NONE, EXTERNAL, TOP, MIDDLE, BOTTOM
Constructor Detail |
---|
public NFBarSet()
public NFBarSet(java.awt.Color barColor)
barColor
- The color of the bars in this barset.public NFBarSet(java.lang.String legendName, java.awt.Color barColor)
legendName
- The name that will appear in the legend for this set.barColor
- The color of the bars in this barset.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class NFSet
java.lang.CloneNotSupportedException
public 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 NFVector
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 NFVector
data
- Objectpublic 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 NFVector
data
- 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 boolean getModifiedValueLabel()
public void setSymbol(NFBarSymbol barSymbol)
barSymbol
- Bar symbol for this barset.public NFBarSymbol getSymbol()
public void setBarStyle(int barStyle)
If the value passed is not a valid bar style an IllegalArgumentException will be thrown.
barStyle
- One of
BAR, TRIANGLEBAR, DIAMONDBAR, CYLINDER, PIEVERTICAL, PIEHORIZONTAL
.public int getBarStyle()
BAR, TRIANGLEBAR, DIAMONDBAR, CYLINDER, PIEVERTICAL, PIEHORIZONTAL
or
BAR if not set.public void setColor(java.awt.Color barColor)
barColor
- The color for this set's bars.public void setColorTable(NFColorTable colorTable)
colorTable
- the colors to use for the bars in the setpublic java.awt.Color getColor()
public NFColorTable getColorTable()
public void setFillPattern(NFFillPattern fillPattern)
fillPattern
- Fill pattern for this barset.public NFFillPattern getFillPattern()
public void setTopFillPattern(NFFillPattern topFillPattern)
topFillPattern
- Top Fill pattern for this barset.public NFFillPattern getTopFillPattern()
public void setRightFillPattern(NFFillPattern rightFillPattern)
rightFillPattern
- Right Fill pattern for this barset.public NFFillPattern getRightFillPattern()
public void setGroupStackFillPatterns(NFVector groupStackFillPatterns)
If the vector contains elements that are not NFFillPattern objects, an IllegalArgumentException will be thrown.
groupStackFillPatterns
- Vector of NFFillPatternpublic NFVector getGroupStackFillPatterns()
public void setGroupStackTopFillPatterns(NFVector groupStackTopFillPatterns)
If the vector contains elements that are not NFFillPattern objects, an IllegalArgumentException will be thrown.
groupStackTopFillPatterns
- Vector of NFFillPatternpublic NFVector getGroupStackTopFillPatterns()
public void setGroupStackRightFillPatterns(NFVector groupStackRightFillPatterns)
If the vector contains elements that are not NFFillPattern objects, an IllegalArgumentException will be thrown.
groupStackRightFillPatterns
- Vector of NFFillPatternpublic NFVector getGroupStackRightFillPatterns()
public void setBarValueLabelStyle(int barValueLabelStyle)
If the value passed is not a valid bar value label style an IllegalArgumentException will be thrown.
barValueLabelStyle
- One of
NONE, EXTERNAL, TOP, MIDDLE, BOTTOM
.public int getBarValueLabelStyle()
NONE, EXTERNAL, TOP, MIDDLE, BOTTOM
or
NONE if not set.public void setLegendName(java.lang.String legendName)
legendName
- Name of the set to use.public java.lang.String getLegendName()
public java.lang.String getCDLAppearance()
("legendName", barColor, barStyle)
public void setCDLAppearance(java.lang.String s)
s
- CDL in the form: ("legendName", barColor, barStyle)
public java.lang.String getCDLBarValueLabelStyle()
public void setCDLBarValueLabelStyle(java.lang.String cdl)
cdl
-
|
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 |