initgety not overridden anymore

This commit is contained in:
7u83 2018-01-15 12:52:51 +01:00
parent 9a2ae0665e
commit 410e9f3552
3 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#Sun, 14 Jan 2018 22:18:16 +0100
#Mon, 15 Jan 2018 12:50:01 +0100
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=

View File

@ -97,6 +97,7 @@ abstract public class ChartPainter implements ChartPainterInterface{
return (-(y - y_height)) / y_scaling + y_min;
}
int trest;
protected float getRoundNumber(float n){
@ -105,7 +106,9 @@ abstract public class ChartPainter implements ChartPainterInterface{
int ldist = this.em_size*2;
int steps = y_height/ldist;
System.out.printf("Steps = %d, h: %d\n", steps, y_height);
System.out.printf("Yheight: %d %d\n",y_height,trest);
System.out.printf("Steps = %d, h: %d\n", steps, this.y_height);
@ -118,6 +121,7 @@ abstract public class ChartPainter implements ChartPainterInterface{
y_scaling = dim.height / minmax.getDiff();
y_min = minmax.getMin();
y_max = minmax.getMax();
trest=11;
}
@Override

View File

@ -128,12 +128,14 @@ public abstract class OHLCChartPainter extends ChartPainter {
}
/* @Override
void initGetY(MinMax minmax, Dimension dim) {
y_height = dim.height;
y_scaling = dim.height / minmax.getDiff();
y_min = minmax.getMin();
}
*/
@Override
public void drawChart(Graphics2D g, ChartPanel p, ChartDef def) {
OHLCData data = getData();