|
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.stock.NFStockSet
public class NFStockSet
The NFStockSet object contains information for stock symbols. An example of its usage is shown here:
NFStockchart sc = new NFStockchart(); sc.setStockBarWidth(5); sc.setTicLength(5); sc.setSize(new Dimension(600,300)); NFStockSet sset = new NFStockSet("Stock Set 1", Color.blue); // Add some values in the form: high, low, open, close sset.addElement(90,40,50,80); sset.addElement(89,55,80,77); sc.addStockSet(sset); ...
Constructor Summary | |
---|---|
NFStockSet()
Constructs a default stock set |
|
NFStockSet(java.awt.Color stockColor)
Constructs a stock set with the given stock symbol color. |
|
NFStockSet(java.lang.String legendName,
java.awt.Color stockColor)
Constructs a stock set with the given stock symbol color and legend name |
Method Summary | |
---|---|
void |
addElement(double high,
double low,
double open,
double close)
Adds a new stock symbol. |
java.lang.Object |
clone()
Does a deep copy of this stockset object |
int |
getBarWidth()
The barWidth attribute defines the width of the vertical bar (hi/lo) in pixels. |
java.lang.String |
getCDLAppearance()
Generate the CDL that creates the appearance information. |
java.awt.Color |
getColor()
The color attribute defines the bar color to be used for the vertical bar (hi/lo) and the horizontal ticks (open/close). |
NFColorTable |
getColorTable()
Gets the colorTable for the bars in this set. |
NFFillPattern |
getFillPattern()
The fillPattern attribute is used to provide either gradient fills, image fills, or pattern fills for this stock set. |
java.lang.String |
getLegendName()
Get the name of the dataset |
boolean |
getModifiedAppearance()
Returns if the appearance of this dataset has changed. |
int |
getTicLength()
The ticLength attribute defines the length of the open/close tic marks in pixels. |
void |
setBarWidth(int barWidth)
The barWidth attribute defines the width of the vertical bar (hi/lo) in pixels. |
void |
setCDLAppearance(java.lang.String cdl)
Configures the appearance information from a CDL parameter representation. |
void |
setColor(java.awt.Color stockColor)
The color attribute defines the bar color to be used for the vertical bar (hi/lo) and the horizontal ticks (open/close). |
void |
setColorTable(NFColorTable colorTable)
Sets the individual color for each vertical bar (hi/lo) in this set. |
void |
setFillPattern(NFFillPattern fillPattern)
The fillPattern attribute is used to provide either gradient fills, image fills, or pattern fills for this stock set. |
void |
setLegendName(java.lang.String legendName)
Set the name of the dataset |
void |
setTicLength(int ticLength)
The ticLength attribute defines the length of the open/close tic marks in pixels. |
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, 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 |
Constructor Detail |
---|
public NFStockSet()
public NFStockSet(java.awt.Color stockColor)
stockColor
- Color to use when displaying symbols in this stock setpublic NFStockSet(java.lang.String legendName, java.awt.Color stockColor)
legendName
- Text to use in the legendstockColor
- Color to use when displaying symbols in this stock setMethod Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class NFSet
java.lang.CloneNotSupportedException
public boolean getModifiedAppearance()
public void setColor(java.awt.Color stockColor)
stockColor
- Color of stock set.public void setColorTable(NFColorTable colorTable)
colorTable
- the colors to use for the vertical bars and horizontal tics in the setpublic java.awt.Color getColor()
public NFColorTable getColorTable()
public void setBarWidth(int barWidth)
barWidth
- Width of stock "bars".public int getBarWidth()
public void setTicLength(int ticLength)
ticLength
- Length of open/close tic marks in pixels.public int getTicLength()
public void setFillPattern(NFFillPattern fillPattern)
fillPattern
- public NFFillPattern getFillPattern()
public void addElement(double high, double low, double open, double close)
high
- low
- open
- close
- public void setLegendName(java.lang.String legendName)
legendName
- Name of the set to use in legend
if not overridden by the legend object itself.public java.lang.String getLegendName()
legendName
- Name of the set to use in legend or
null if not defined.public java.lang.String getCDLAppearance()
("legendName", stockColor, barWidth, ticLength)
public void setCDLAppearance(java.lang.String cdl)
cdl
- CDL in the form: ("legendName", stockColor, barWidth, ticLength)
|
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 |