xAxis.setEnd(1);
yAxis.setStart(0);
yAxis.setEnd(1);
xAxis.setPreferredSize(new Dimension(1, 10));
yAxis.setPreferredSize(new Dimension(10, 1));
xAxis.setTickMarkCalculator(new TickMarkCalculator() {
@Override
public double[][] calculateTickMarks(Axis axis) {
return new double[][] { { 0, .25, .5, .75, 1 }, {} };
}
});
yAxis.setTickMarkCalculator(new TickMarkCalculator() {
@Override
public double[][] calculateTickMarks(Axis axis) {
return new double[][] { { 0, .25, .5, .75, 1 }, {} };
}
});