|
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.lineset.NFLineSet
public class NFLineSet
The NFLineSet object contains information for lines, symbols, or both. This object is used widely in a number of different chart styles. An example of using a lineset for a one dimensional NFLinechart is shown here:
NFLinechart lc = new NFLinechart(); NFLineSet lineSet = new NFLineSet("Apples", Color.red); for (int j=0; j < 20; j++) lineSet.addElement(j); lc.addLineSet(lineSet);
Field Summary | |
---|---|
static java.util.Hashtable |
lineValueLabelStyleMap
The set of allowed line value label styles. |
Fields inherited from interface netcharts.pro.common.lineset.NFValueLabelConstants |
---|
BOTTOM, BOTTOMLEFT, BOTTOMRIGHT, CENTER, LEFT, NONE, RIGHT, TOP, TOPLEFT, TOPRIGHT |
Constructor Summary | |
---|---|
NFLineSet()
Constructs a default line set. |
|
NFLineSet(java.awt.Color lineColor)
Constructs a set with the given line color |
|
NFLineSet(int symbolType,
java.awt.Color symbolColor,
int symbolSize)
Constructs a set with the given symbol type, color, and size |
|
NFLineSet(int symbolType,
java.awt.Color symbolColor,
int symbolSize,
int lineStyle,
int lineThickness,
java.awt.Color lineColor)
Constructs a set with the given line style, line width, line color, sumbol type, symbol color, and symbol size. |
|
NFLineSet(int lineStyle,
int lineThickness,
java.awt.Color lineColor)
Constructs a set with the given line style, width, and color |
|
NFLineSet(java.lang.String legendName,
java.awt.Color lineColor)
Constructs a set with the given legend name and line color |
Method Summary | |
---|---|
void |
addElement(java.util.Date data)
Add a object to the set. |
void |
addElement(double doubleValue)
Add a double to the set. |
void |
addElement(int intValue)
Add an integer to the set. |
void |
addElement(java.lang.Number data)
Add a object to the set. |
void |
addElement(java.lang.Object xval,
java.lang.Object yval)
Adds the given x and y value to the set. |
java.lang.Object |
clone()
Does a deep copy of this lineset object |
java.lang.String |
getCDL()
Generate CDL parameters representing this data |
java.lang.String |
getCDLAppearance()
Generate the CDL that creates the appearance information. |
java.lang.String |
getCDLAs2D()
Generate CDL parameters representing this data in two dimensional form. |
java.lang.String |
getCDLDefault()
Perform the superclass getCDL() method. |
java.lang.String |
getCDLLineValueLabelStyle()
Get the line value label style for the set from a CDL string. |
java.lang.String |
getCDLTuples()
Generate CDL parameters representing this data |
java.awt.Color |
getColor()
Gets the default color to use for the lines and symbols. |
NFColorTable |
getColorTable()
Gets the colorTable for the symbols in this set. |
java.awt.Color |
getFillColor()
Gets the color to use for area fills |
NFFillPattern |
getFillPattern()
Gets the fill pattern this lineset should use. |
java.lang.String |
getLegendName()
Returns the data set name used in the legend. |
NFLineSetLine |
getLine()
Get this lineset's line style |
int |
getLineValueLabelStyle()
Gets the type of text labeling for lines in this set |
boolean |
getModifiedAppearance()
Returns if the appearance of this dataset has changed. |
boolean |
getModifiedValueLabel()
Returns if the positioning of value labels has changed in this set. |
NFLineSetSymbol |
getSymbol()
Get this lineset's symbol |
void |
setCDLAppearance(java.lang.String s)
Configures the appearance information from a CDL parameter representation. |
void |
setCDLLineValueLabelStyle(java.lang.String cdl)
Set the line value label style for the set from a CDL string. |
void |
setColor(java.awt.Color defaultColor)
Sets the default color to use for the lines and symbols. |
void |
setColorTable(NFColorTable colorTable)
Sets the individual color for each symbols in this set. |
void |
setFillColor(java.awt.Color color)
Sets the color to use for area fills |
void |
setFillPattern(NFFillPattern fillPattern)
Sets the fill pattern this lineset should use. |
void |
setLegendName(java.lang.String legendName)
Set the data set name to use in legend. |
void |
setLine(NFLineSetLine line)
Set this lineset's line style |
void |
setLineValueLabelStyle(int lineValueLabelStyle)
Sets the type of text labeling for lines in this set. |
void |
setSymbol(NFLineSetSymbol symbol)
Set this lineset's 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, addElement, elementAt, elementAt, getCDL, getCDL, getCDLHasTuples, getCDLKeyValues, getCDLKeyValuesHasPoints, getMaxDimensions, getQuoteStrings, getSize, isEmptyStringAsNull, loadDataModel, loadDataModel, loadDataModel, removeElementAt, reset, setCDL, setCDLHasTuples, setCDLNullString, setElementAt, 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 java.util.Hashtable lineValueLabelStyleMap
NONE, RIGHT, LEFT, TOP, BOTTOM, TOPLEFT, TOPRIGHT, BOTTOMLEFT, BOTTOMRIGHT, CENTER
.
Constructor Detail |
---|
public NFLineSet()
public NFLineSet(java.awt.Color lineColor)
lineColor
- Line color.public NFLineSet(java.lang.String legendName, java.awt.Color lineColor)
legendName
- The name that will appear in the legend for this set.lineColor
- Line color.public NFLineSet(int symbolType, java.awt.Color symbolColor, int symbolSize)
symbolType
- A NFLineSetSymbol type. One of CIRCLE, SQUARE, DIAMOND, TRIANGLEUP, TRIANGLEDOWN,
CROSS, VRECTANGLE, HRECTANGLE, IMAGE.
symbolColor
- Color of the symbol (ignored for IMAGE types).symbolSize
- Size of symbol (ignored for IMAGE types)public NFLineSet(int lineStyle, int lineThickness, java.awt.Color lineColor)
lineStyle
- A NFLineSetLine style. One of NONE, SOLID,
DOTTED, DASHED, DOTDASH
lineThickness
- Line thickness in pixels.lineColor
- Line color.public NFLineSet(int symbolType, java.awt.Color symbolColor, int symbolSize, int lineStyle, int lineThickness, java.awt.Color lineColor)
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.Number data)
data
- Number valuepublic void addElement(java.util.Date data)
data
- Date valuepublic void addElement(java.lang.Object xval, java.lang.Object yval)
If the value passed is not a valid data item an IllegalArgumentException will be thrown.
xval
- The X value objectyval
- The Y value objectpublic boolean getModifiedAppearance()
public void setSymbol(NFLineSetSymbol symbol)
symbol
- Symbol to be drawn at data point locations.public NFLineSetSymbol getSymbol()
public void setLine(NFLineSetLine line)
line
- Line style used to connect adjacent points.public NFLineSetLine getLine()
public void setFillColor(java.awt.Color color)
color
- Fill color to use.public java.awt.Color getFillColor()
public void setColor(java.awt.Color defaultColor)
defaultColor
- Default color to use for lines and symbols.public void setColorTable(NFColorTable colorTable)
colorTable
- the colors to use for the symbolspublic java.awt.Color getColor()
public NFColorTable getColorTable()
public void setFillPattern(NFFillPattern fillPattern)
fillPattern
- Fill pattern for this lineset.public NFFillPattern getFillPattern()
public void setLegendName(java.lang.String legendName)
legendName
- Name to use in legendpublic java.lang.String getLegendName()
public void setLineValueLabelStyle(int lineValueLabelStyle)
If the value passed is not a valid line value label style an IllegalArgumentException will be thrown.
lineValueLabelStyle
- One of
NONE, EXTERNAL, RIGHT, LEFT, BOTTOM, TOPLEFT, TOPRIGHT, BOTTOMRIGHT, BOTTOMLEFT, CENTER
..public int getLineValueLabelStyle()
NONE, EXTERNAL, RIGHT, LEFT, BOTTOM, TOPLEFT, TOPRIGHT, BOTTOMRIGHT, BOTTOMLEFT, CENTER
or
NONE if not set.public boolean getModifiedValueLabel()
public java.lang.String getCDLAppearance()
("legendName", defaultColor)
public void setCDLAppearance(java.lang.String s)
cdl
- CDL in the form: ("legendName", defaultColor)
public java.lang.String getCDL()
getCDL
in class NFVector
y1,y2,y3,y4,y5
public java.lang.String getCDLAs2D()
(x1,y1),(x2,y2),(x3,y3),(x4,y4),(x5,y5)
public java.lang.String getCDLTuples()
(a1,a2,a3,...aN),(b1,b2,b3,...,bN)
public java.lang.String getCDLDefault()
public java.lang.String getCDLLineValueLabelStyle()
public void setCDLLineValueLabelStyle(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 |