|
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.NFLine
netcharts.pro.common.lineset.NFLineSetLine
public class 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 | |
---|---|
static int |
FILL_CONDITIONAL
Fill is enabled if there is a non null fill color specified. |
static int |
FILL_DISABLED
Fill is disabled |
static int |
FILL_ENABLED
Fill is enabled |
boolean |
includeCDLFillConditionalAttribute
Whether or not the conditional fill attribute should be included. |
boolean |
includeCDLSplineAttribute
Whether or not the spline function should be included. |
static int |
LINE_AND_SPLINE
Draw the line and spline curve |
static int |
LINE_ONLY
Draw only the line |
static int |
SPLINE_ONLY
Draw only the spline curve |
Fields inherited from class netcharts.pro.common.NFLine |
---|
DASHED, DOTDASH, DOTTED, 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()
Deprecated. Use getLineType |
boolean |
getDrawSplineCurveAndLine()
Deprecated. Use getLineType |
java.awt.Color |
getFillColor()
Gets the fill color |
int |
getFillStatus()
Get the line type. |
int |
getLineType()
Get the line type. |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
void |
setDrawSplineCurve(boolean drawSpline)
Deprecated. Use setLineType |
void |
setDrawSplineCurveAndLine(boolean drawSplineAndLine)
Deprecated. Use setLineType |
void |
setFillColor(java.awt.Color fillColor)
Sets the fill color. |
void |
setFillStatus(int fillStatus)
Set the fill status. |
void |
setLineType(int lineType)
Set the line type. |
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 static final int LINE_ONLY
public static final int LINE_AND_SPLINE
public static final int SPLINE_ONLY
public static final int FILL_ENABLED
public static final int FILL_DISABLED
public static final int FILL_CONDITIONAL
public boolean includeCDLSplineAttribute
public boolean includeCDLFillConditionalAttribute
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, DOTDASH
color
- 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, DOTDASH
color
- 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 setLineType(int lineType)
public int getLineType()
public void setFillStatus(int fillStatus)
public int getFillStatus()
public void getCDL(java.lang.StringBuffer sb, boolean includeParens)
getCDL
in class NFLine
sb
- 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 NFCDLGenerator
setCDL
in class NFLine
cdl
- CDL in the form: (style, thickness, color, fillColor, spline)
|
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 |