|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.mytrendtimer.trendtimer.MttChart
public class MttChart
The MttChart rely on JFreeChart to quickly plot the calculated data onto a chart. Quotes are a line serie, buy and sell signals are histogram series.
| Field Summary | |
|---|---|
static java.lang.String |
OUT_IMG_FILE_PATH
The path (relative to baseDir !) |
| Constructor Summary | |
|---|---|
MttChart()
|
|
| Method Summary | |
|---|---|
static void |
chartFileCopy(java.lang.String sourceFileArg,
java.lang.String targetFileArg)
Chart file (.png) copy. |
org.jfree.chart.JFreeChart |
createChart(java.lang.String title,
float minYAxisArg,
float maxYAxisArg,
boolean detailedChart)
Creates the overlaid (quote, buy, sell, osc1 and osc2) chart. |
void |
saveChart(java.lang.String title,
float minYaxisArg,
float maxYaxisArg,
boolean detailedChart,
QuoteSourceFile quoteSrvFileArg)
Save the chart into a png image. |
void |
showChartInJFrame()
Display the chart in a JFrame |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OUT_IMG_FILE_PATH
| Constructor Detail |
|---|
public MttChart()
| Method Detail |
|---|
public static void chartFileCopy(java.lang.String sourceFileArg,
java.lang.String targetFileArg)
sourceFileArg - The source file to copytargetFileArg - The target file
public org.jfree.chart.JFreeChart createChart(java.lang.String title,
float minYAxisArg,
float maxYAxisArg,
boolean detailedChart)
title - The frame title.minYAxisArg - The lowest point on the chart y scalemaxYAxisArg - The highest point on the chart y scaledetailedChart - The display to osc1 and osc2 on the chart.
public void saveChart(java.lang.String title,
float minYaxisArg,
float maxYaxisArg,
boolean detailedChart,
QuoteSourceFile quoteSrvFileArg)
throws java.io.IOException
title - The frame title.minYaxisArg - The lowest point on the chart y scalemaxYaxisArg - The highest point on the chart y scale
java.io.IOExceptionpublic void showChartInJFrame()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||