slopeLabel.setText("");
slopeLabel.setPreferredSize(size);
XYPlot plot = parentPlot.getPlotView();
plot.add(slopeLabel);
XYPlotContents contents = plot.getContents();
SpringLayout layout2 = (SpringLayout) plot.getLayout();
layout2.putConstraint(SpringLayout.NORTH, slopeLabel, 0, SpringLayout.NORTH, plot);
layout2.putConstraint(SpringLayout.EAST, slopeLabel, 0, SpringLayout.EAST, contents);
layout2.putConstraint(SpringLayout.WEST, timeSystemFormattedLabel, 0, SpringLayout.WEST, contents);
layout2.putConstraint(SpringLayout.NORTH, timeSystemFormattedLabel, 0, SpringLayout.NORTH, plot);