some work

This commit is contained in:
7u83 2018-01-03 18:39:36 +01:00
parent 16468c4b3d
commit 25aec91764
3 changed files with 6 additions and 4 deletions

View File

@ -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=

View File

@ -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);

View File

@ -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;
}