Work on y legend detail

This commit is contained in:
7u83 2018-01-10 10:56:55 +01:00
parent f957dde5d4
commit 7a390c49cc
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#Sun, 07 Jan 2018 23:34:07 +0100 #Wed, 10 Jan 2018 10:18:15 +0100
annotation.processing.enabled=true annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false annotation.processing.enabled.in.editor=false
annotation.processing.processors.list= annotation.processing.processors.list=

View File

@ -70,6 +70,7 @@ abstract public class ChartPainter implements ChartPainterInterface{
protected float y_scaling; protected float y_scaling;
protected int y_height; protected int y_height;
protected float y_min; protected float y_min;
protected float y_max;
float getY(float y) { float getY(float y) {
//c_yscaling = ctx.rect.height / c_mm.getDiff(); //c_yscaling = ctx.rect.height / c_mm.getDiff();
@ -99,7 +100,15 @@ abstract public class ChartPainter implements ChartPainterInterface{
protected float getRoundNumber(float n){ protected float getRoundNumber(float n){
System.out.printf("Rounded number", 0);
int ldist = this.em_size*2;
int steps = y_height/ldist;
System.out.printf("Steps = %d, h: %d\n", steps, y_height);
return (float)0.0; return (float)0.0;
} }
@ -108,6 +117,7 @@ abstract public class ChartPainter implements ChartPainterInterface{
y_height = dim.height; y_height = dim.height;
y_scaling = dim.height / minmax.getDiff(); y_scaling = dim.height / minmax.getDiff();
y_min = minmax.getMin(); y_min = minmax.getMin();
y_max = minmax.getMax();
} }
@Override @Override