|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFGraph
netcharts.pro.common.zoomable.NFZoomableChart
netcharts.pro.common.rectangular.NFDataChart
netcharts.pro.common.lineset.NFAbstractLineChart
netcharts.pro.charts.combo.NFCombochart
netcharts.pro.charts.stock.NFStockchart
public class NFStockchart
Represents a stock chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
Field Summary | |
---|---|
static int |
STOCK_ANIMATION_STYLE_FADE
Stock animation style fade |
static int |
STOCK_ANIMATION_STYLE_GROW
Stock animation style grow |
static int |
STOCK_ANIMATION_STYLE_NONE
No stock animation style |
Fields inherited from class netcharts.pro.charts.combo.NFCombochart |
---|
BAR_ANIMATION_STYLE_FADE, BAR_ANIMATION_STYLE_GROW, BAR_ANIMATION_STYLE_NONE, BOTTOMUP, connectorTypeMap, DRAWBAR, DRAWFILL, DRAWLINE, drawOrderMap, DRAWSTOCK, FILL, GROUP, GROUPSTACK, HORIZONTAL, ITEM, LINE, OFF, ROWS, STACK, stackDisplayOrderMap, TOPDOWN, TOTAL, VERTICAL |
Fields inherited from class netcharts.pro.common.lineset.NFAbstractLineChart |
---|
LINE_ANIMATION_STYLE_BEND, LINE_ANIMATION_STYLE_FADE, LINE_ANIMATION_STYLE_NONE, LINE_SYMBOL_ANIMATION_STYLE_FADE, LINE_SYMBOL_ANIMATION_STYLE_NONE, LINE_SYMBOL_ANIMATION_STYLE_SCALE |
Fields inherited from class netcharts.pro.common.rectangular.NFDataChart |
---|
GRID_ANIMATION_STYLE_FADE, GRID_ANIMATION_STYLE_NONE |
Fields inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
---|
NOZOOM, zoomActionsMap, ZOOMIN, ZOOMOUT |
Fields inherited from class netcharts.pro.common.NFGraph |
---|
ANTIALIAS_OFF, ANTIALIAS_ON, ANTIALIAS_ONDRAW, ANTIALIAS_ONTEXT, antiAliasModeMap, BAR, BAR3D, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, DWELL_ANIMATION_STYLE_HIGHLIGHT, DWELL_ANIMATION_STYLE_NONE, FADE, HEATMAP, HIGHLIGHT, HISTOGRAM, LABEL_ANIMATION_STYLE_FADE, LABEL_ANIMATION_STYLE_NONE, LEGEND_ANIMATION_STYLE_FADE, LEGEND_ANIMATION_STYLE_NONE, LEGEND_DWELL_ANIMATION_STYLE_HIGHLIGHT, LEGEND_DWELL_ANIMATION_STYLE_NONE, MULTIPIE, PARETO, PIE, POLAR, RADAR, STOCK, STRIP, TIME, XY |
Constructor Summary | |
---|---|
NFStockchart()
Constructs a default chart object. |
|
NFStockchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFStockchart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFStockchart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
Method Summary | |
---|---|
void |
addStockSet(NFStockSet stockSet)
Adds a stock set to the current list of stocksets. |
java.lang.String |
getDefaultData()
Returns a string of default data |
int |
getOrientation()
Always returns vertical |
int |
getStockAnimationStyle()
Get the stock animation style. |
int |
getStockBarWidth()
This parameter specifies the relative size of each bar used when displaying stock values. |
boolean |
getStockLabelsEnabled()
Get whether or not popups over lines are enabled. |
NFStockSeries |
getStockSeries()
Get the stock series. |
int |
getTicLength()
The ticLength attribute defines the length of the open/close tic marks in pixels. |
int |
getType()
Gets the chart type. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setDataLegendEnabled(boolean dataLegendEnabled)
Noop - Stockcharts cannot contain data legends. |
void |
setDataLegendGridBackground(NFGridBackground dataLegendGridBackground)
Noop - Stockcharts cannot contain data legends grid backgrounds. |
void |
setDataLegendGridLine(NFGridLine dataLegendGridLine)
Noop - Stockcharts cannot contain data legends grid lines. |
void |
setOrientation(int orientation)
Noop - Stockchart bars are vertical only. |
void |
setStockAnimationStyle(int style)
Set the stock animation style. |
void |
setStockBarWidth(int stockBarWidth)
This parameter specifies the relative size of each bar used when displaying stock values. |
void |
setStockLabelsEnabled(boolean stockLabelsEnabled)
Set enable popup labels over stock lines. |
void |
setStockSeries(NFStockSeries stockSeries)
Set the stock series. |
void |
setTicLength(int ticLength)
This parameter specifies the relative size of each tic mark used when displaying stock values. |
void |
writeChart(java.lang.StringBuffer sb)
Writes this chart into a string buffer |
void |
writeExternal(java.io.ObjectOutput out)
Writes this chart into an object for serialization. |
Methods inherited from class netcharts.pro.common.lineset.NFAbstractLineChart |
---|
getDepth, getLineAnimationStyle, getLineDropShadow, getLineSymbolAnimationStyle, getLineSymbolSpotlightSeries, getLineValueLabel, getLineValueLabelRegion, getLineZWidth, setDepth, setLineAnimationStyle, setLineDropShadow, setLineSymbolAnimationStyle, setLineSymbolSpotlightSeries, setLineValueLabel, setLineValueLabelRegion, setLineZWidth |
Methods inherited from class netcharts.pro.common.rectangular.NFDataChart |
---|
addGrid, getAutoscalePad, getAxesSizes, getAxisThickness, getBottomAxis, getBottomAxisSeries, getGrid, getGridAnimationStyle, getGridDepth, getGridSeries, getLeftAxis, getLeftAxisSeries, getRightAxis, getRightAxisSeries, getTopAxis, getTopAxisSeries, getXAxis, getYAxis, setAutoscalePad, setAxesSizes, setAxisThickness, setBottomAxis, setBottomAxisSeries, setGrid, setGridAnimationStyle, setGridDepth, setGridSeries, setLeftAxis, setLeftAxisSeries, setRightAxis, setRightAxisSeries, setTopAxis, setTopAxisSeries |
Methods inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
---|
getMouseControlDown, getMouseMetaDown, getMouseShiftDown, getZoomingEnabled, setMouseControlDown, setMouseMetaDown, setMouseShiftDown, setZoomingEnabled, zoom |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STOCK_ANIMATION_STYLE_NONE
public static final int STOCK_ANIMATION_STYLE_GROW
public static final int STOCK_ANIMATION_STYLE_FADE
Constructor Detail |
---|
public NFStockchart()
public NFStockchart(javax.swing.JPanel panel)
panel
- Panel to draw chart on.public NFStockchart(java.util.Properties initProperties)
initProperties
- A java.util.Properties object containing the set
of runtime properties to use when generating the chart. See the
netcharts.pro.common.NFGraph(java.util.Properties)
constructor
for a list of valid Properties.public NFStockchart(javax.swing.JPanel panel, java.util.Properties initProperties)
panel
- Panel to draw chart on.initProperties
- A java.util.Properties object containing the set
of runtime properties to use when generating the chart. See the
netcharts.pro.common.NFGraph(java.util.Properties)
constructor
for a list of valid Properties.Method Detail |
---|
public java.lang.String getDefaultData()
getDefaultData
in class NFCombochart
public int getType()
getType
in class NFCombochart
netcharts.pro.charts.stock.NFGraph.STOCK
public void setStockBarWidth(int stockBarWidth)
stockBarWidth
- public int getStockBarWidth()
public void setTicLength(int ticLength)
ticLength
- public int getTicLength()
public void setOrientation(int orientation)
setOrientation
in class NFCombochart
orientation
- public int getOrientation()
getOrientation
in class NFCombochart
public void addStockSet(NFStockSet stockSet)
stockSet
- The stockset to add.public void setStockSeries(NFStockSeries stockSeries) throws NFParamException
NFStockchart chart = new NFStockchart(); NFStockSeries ss = chart.getStockSeries(); NFStockSet set = (NFStockSet)ss.elementAt(0); // Set some of the properties on the NFStockSet ... ss.setElementAt(set, 0); chart.setStockSeries(ss);
stockSeries
-
NFParamException
public NFStockSeries getStockSeries()
NFStockchart chart = new NFStockchart(); NFStockSeries ss = chart.getStockSeries(); NFStockSet set = (NFStockSet)ss.elementAt(0); // Set some of the properties on the NFStockSet ... ss.setElementAt(set, 0); chart.setStockSeries(ss);
public void setStockLabelsEnabled(boolean stockLabelsEnabled)
stockLabelsEnabled
- When popups will appear over stock lines of the chart.public boolean getStockLabelsEnabled()
public void setStockAnimationStyle(int style)
If the value passed is not a valid stock animation style, STOCK_ANIMATION_STYLE_NONE will be used.
style
- One of STOCK_ANIMATION_STYLE_NONE (default), STOCK_ANIMATION_STYLE_GROW or STOCK_ANIMATION_STYLE_FADE
public int getStockAnimationStyle()
STOCK_ANIMATION_STYLE_NONE (default), STOCK_ANIMATION_STYLE_GROW or STOCK_ANIMATION_STYLE_FADE
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFCombochart
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFCombochart
public void resetState()
resetState
in class NFCombochart
public void setDataLegendEnabled(boolean dataLegendEnabled)
setDataLegendEnabled
in class NFCombochart
dataLegendEnabled
- public void setDataLegendGridBackground(NFGridBackground dataLegendGridBackground)
setDataLegendGridBackground
in class NFCombochart
dataLegendGridBackground
- public void setDataLegendGridLine(NFGridLine dataLegendGridLine)
setDataLegendGridLine
in class NFCombochart
dataLegendGridLine
-
|
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 |