|
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.NFVector
|
+--netcharts.pro.common.NFSet
|
+--netcharts.pro.common.rectangular.NFDataSet
|
+--netcharts.pro.charts.stock.NFStockSet
The NFStockSet object contains information for stock symbols. An example of its usage is shown here:
NFStockchart sc = new NFStockchart();
sc.setSize(new Dimension(600,300));
Object oa[][] = (Object[][])datavec.elementAt(0);
// set up the stock data model - pulls data from
// the appropriate area in the data
NFDataModelStock dms = new NFDataModelStock(oa){
public Object getOpen(int row){
Object oo[][] = (Object[][])dataObject;
return oo[row][OPEN_INDEX];
}
public Object getClose(int row){
Object oo[][] = (Object[][])dataObject;
return oo[row][CLOSE_INDEX];
}
public Object getHigh(int row){
Object oo[][] = (Object[][])dataObject;
return oo[row][HIGH_INDEX];
}
public Object getLow(int row){
Object oo[][] = (Object[][])dataObject;
return oo[row][LOW_INDEX];
}
public int getNumPoints(){
Object oo[][] = (Object[][])dataObject;
return oo.length;
}
};
NFStockSet sset = new NFStockSet("Stock", (Color)null);
sset.loadDataModel(dms);
sset.setYAxis(priceAxis);
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). |
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 |
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 |
addActiveLabel, getActiveLabels, getAxisMap, getSetName, setActiveLabels, setAxisMap, setSetName |
| Methods inherited from class netcharts.pro.common.NFVector |
addElement, addElement, elementAt, elementAt, getCDL, getCDL, getCDL, getCDLHasTuples, getCDLKeyValues, getMaxDimensions, getQuoteStrings, getSize, loadDataModel, loadDataModel, loadDataModel, removeElementAt, reset, setCDL, setCDLHasTuples, setCDLNullString, setElementAt, 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 set
public 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 set| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class NFSetpublic boolean getModifiedAppearance()
public void setColor(java.awt.Color stockColor)
stockColor - Color of stock set.public java.awt.Color getColor()
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2004 |
Last Modified: Apr 1, 2004 |