Work on y legend detail
This commit is contained in:
parent
f957dde5d4
commit
7a390c49cc
@ -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.in.editor=false
|
||||
annotation.processing.processors.list=
|
||||
|
@ -70,6 +70,7 @@ abstract public class ChartPainter implements ChartPainterInterface{
|
||||
protected float y_scaling;
|
||||
protected int y_height;
|
||||
protected float y_min;
|
||||
protected float y_max;
|
||||
|
||||
float getY(float y) {
|
||||
//c_yscaling = ctx.rect.height / c_mm.getDiff();
|
||||
@ -99,7 +100,15 @@ abstract public class ChartPainter implements ChartPainterInterface{
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
@ -108,6 +117,7 @@ abstract public class ChartPainter implements ChartPainterInterface{
|
||||
y_height = dim.height;
|
||||
y_scaling = dim.height / minmax.getDiff();
|
||||
y_min = minmax.getMin();
|
||||
y_max = minmax.getMax();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user