|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--netcharts.pro.common.NFBaseClass
|
+--netcharts.pro.common.NFLine
|
+--netcharts.pro.common.lineset.NFLineSetLine
The NFLineSetLine object is throughout several different chart types to define data lines. In addition to the features found in it's parent, NFLine, NFLineSetLine also provides the ability to specify a fill color and spline functions.
For most applications, the developer will not need to explicitly manipulate the NFLineSetLine object. Data line attributes can usually be modified via the NFLineSet and other, similar, compound objects that provide convenience methods. However, an example of NFLineSetLine's use within an NFLinechart is provided here:
... NFLinechart chart = new NFLinechart(); NFLineSet lineSet = new NFLineSet(); // configure a dotted blue line appearance NFLineSetLine line = new NFLineSetLine(Color.blue); line.setStyle(NFLineSetLine.DOTTED); // set the configuration information into the line set object. lineSet.setLine(line); // load dummy data into the line set object for (int j=0; j < 20; j++) lineSet.addElement(new Double(Math.random()*100)); chart.addLineSet(lineSet); // add this lineset. ...
| Field Summary | |
boolean |
includeCDLSplineAttribute
Whether or not the spline function should be included. |
| Fields inherited from class netcharts.pro.common.NFLine |
DASHED, DOTDASH, DOTTED, lineTypeMap, NONE, SOLID |
| Constructor Summary | |
NFLineSetLine()
Constructs a default line object |
|
NFLineSetLine(java.awt.Color color)
Constructs a SOLID 1-pixel-thick line with the given color |
|
NFLineSetLine(int style,
java.awt.Color lineColor,
java.awt.Color fillColor,
int thickness)
Constructs a line with the given line style, color, fill color, and thickness |
|
NFLineSetLine(int style,
java.awt.Color color,
int thickness)
Constructs a line with the given style, color, and thickness. |
|
| Method Summary | |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this line to the given StringBuffer. |
boolean |
getDrawSplineCurve()
Gets whether or not spline curves should be drawn. |
boolean |
getDrawSplineCurveAndLine()
Gets whether or not spline curves and default line/symbol should be drawn. |
java.awt.Color |
getFillColor()
Gets the fill color |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setDrawSplineCurve(boolean drawSpline)
Sets whether or not spline curves should be drawn. |
void |
setDrawSplineCurveAndLine(boolean drawSplineAndLine)
Sets whether or not spline curves and default line/symbol should be drawn. |
void |
setFillColor(java.awt.Color fillColor)
Sets the fill color. |
| Methods inherited from class netcharts.pro.common.NFLine |
getCDL, getColor, getStyle, getThickness, setCDL, setCDL, setColor, setStyle, setThickness, toString |
| 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 |
| Methods inherited from interface netcharts.pro.common.NFCDLGenerator |
getCDL, toString |
| Field Detail |
public boolean includeCDLSplineAttribute
| Constructor Detail |
public NFLineSetLine()
public NFLineSetLine(java.awt.Color color)
color -
public NFLineSetLine(int style,
java.awt.Color color,
int thickness)
style - One of NONE, SOLID, DOTTED, DASHED, DOTDASHcolor - Line color.thickness - Line thickness in pixels.
public NFLineSetLine(int style,
java.awt.Color lineColor,
java.awt.Color fillColor,
int thickness)
style - One of NONE, SOLID, DOTTED, DASHED, DOTDASHcolor - Line ColorfillColor - Fill Color.thickness - Line thickness in pixels.| Method Detail |
public void setFillColor(java.awt.Color fillColor)
fillColor - The fill color.public java.awt.Color getFillColor()
public void setDrawSplineCurve(boolean drawSpline)
drawSpline - When true, spline curve is shown.public boolean getDrawSplineCurve()
public void setDrawSplineCurveAndLine(boolean drawSplineAndLine)
drawSplineAndLine - When true spline curve and line/symbol will be drawnpublic boolean getDrawSplineCurveAndLine()
public void getCDL(java.lang.StringBuffer sb,
boolean includeParens)
getCDL in class NFLinesb - Target buffer to append the CDL parametersincludeParens - If true, this will cause the parameters to be delimited
with parenthesis.public void setCDL(java.lang.String cdl)
setCDL in interface NFCDLGeneratorsetCDL in class NFLinecdl - CDL in the form: (style, thickness, color, fillColor, spline)
|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2006 |
Last Modified: Apr 14, 2006 |