some work
This commit is contained in:
parent
16468c4b3d
commit
25aec91764
@ -1,4 +1,4 @@
|
||||
#Tue, 02 Jan 2018 00:55:00 +0100
|
||||
#Thu, 04 Jan 2018 17:27:18 +0100
|
||||
annotation.processing.enabled=true
|
||||
annotation.processing.enabled.in.editor=false
|
||||
annotation.processing.processors.list=
|
||||
|
@ -151,7 +151,7 @@ public class MasterChart extends javax.swing.JPanel implements QuoteReceiver {
|
||||
this.yLegend.setChartDef(chartDef);
|
||||
|
||||
OHLCChartPainter p;
|
||||
mydata = Globals.se.getOHLCdata(Globals.se.getDefaultStock(),60000*4);
|
||||
mydata = Globals.se.getOHLCdata(Globals.se.getDefaultStock(),60000*60*24);
|
||||
|
||||
this.xScrollBar.setMaximum(0);
|
||||
|
||||
|
@ -74,9 +74,11 @@ public abstract class OHLCChartPainter extends ChartPainter {
|
||||
|
||||
long t = 0;
|
||||
|
||||
int xbar = (int)((float)x/def.x_unit_width);
|
||||
double xw = def.x_unit_width*em_size;
|
||||
|
||||
System.out.printf("XBAR: %d\n",xbar);
|
||||
int xbar = (int)((float)x/(xw));
|
||||
|
||||
System.out.printf("XBAR: %d %f\n",xbar,def.x_unit_width);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user