Compare commits
No commits in common. "master" and "master" have entirely different histories.
|
@ -486,14 +486,8 @@ public class JDiagram extends JComponent implements PlotProviderListener, Bounde
|
|||
Point2D pmin = mapDiagramToMouse(new Point2D.Double(0, bg.getMin()));
|
||||
Point2D pmax = mapDiagramToMouse(new Point2D.Double(0, bg.getMax()));
|
||||
|
||||
int x,y,width,height;
|
||||
width = this.plotWidth;
|
||||
height = (int)(pmin.getY() - pmax.getY());
|
||||
x = getWidth() - this.plotWidth - this.bRight;
|
||||
y = (int)(pmax.getY());
|
||||
|
||||
g.setColor(bg.getColor());
|
||||
g.fillRect(0,y,getWidth(),height);
|
||||
g.fillRect(0, (int)pmax.getY(), getWidth(), (int)(pmax.getY() - pmin.getX()));
|
||||
}
|
||||
|
||||
paintOrdinates ((Graphics2D) g);
|
||||
|
@ -858,7 +852,7 @@ public class JDiagram extends JComponent implements PlotProviderListener, Bounde
|
|||
this.num = num;
|
||||
|
||||
this.colDraw = Color.BLACK;
|
||||
this.colGrid = Color.GRAY;
|
||||
this.colGrid = Color.LIGHT_GRAY;
|
||||
|
||||
this.scaler = new LinearScaler();
|
||||
}
|
||||
|
@ -948,8 +942,4 @@ public class JDiagram extends JComponent implements PlotProviderListener, Bounde
|
|||
public List<ColoredBackground> getColoredBackgrounds() {
|
||||
return coloredBackgrounds;
|
||||
}
|
||||
public void setColoredBackgrounds(List<ColoredBackground> backgrounds){
|
||||
this.coloredBackgrounds.clear();
|
||||
this.coloredBackgrounds.addAll(backgrounds);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue