protected void crop(CategoryPlot plot) { // crop extra space around the graph plot.setInsets(new RectangleInsets(0, 0, 0, 5.0)); }
plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
protected void crop(CategoryPlot plot) { // crop extra space around the graph plot.setInsets(new RectangleInsets(0, 0, 0, 5.0)); }
/** * Adds a subplot to the combined chart and sends a {@link PlotChangeEvent} * to all registered listeners. * <br><br> * The domain axis for the subplot will be set to <code>null</code>. You * must ensure that the subplot has a non-null range axis. * * @param subplot the subplot (<code>null</code> not permitted). * @param weight the weight (must be >= 1). */ public void add(CategoryPlot subplot, int weight) { if (subplot == null) { throw new IllegalArgumentException("Null 'subplot' argument."); } if (weight < 1) { throw new IllegalArgumentException("Require weight >= 1."); } subplot.setParent(this); subplot.setWeight(weight); subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0)); subplot.setDomainAxis(null); subplot.setOrientation(getOrientation()); subplot.addChangeListener(this); this.subplots.add(subplot); CategoryAxis axis = getDomainAxis(); if (axis != null) { axis.configure(); } fireChangeEvent(); }
subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0)); subplot.setRangeAxis(null); subplot.setOrientation(getOrientation());
/** * Adds a subplot to the combined chart and sends a {@link PlotChangeEvent} * to all registered listeners. * <br><br> * The domain axis for the subplot will be set to {@code null}. You * must ensure that the subplot has a non-null range axis. * * @param subplot the subplot ({@code null} not permitted). * @param weight the weight (must be >= 1). */ public void add(CategoryPlot subplot, int weight) { Args.nullNotPermitted(subplot, "subplot"); if (weight < 1) { throw new IllegalArgumentException("Require weight >= 1."); } subplot.setParent(this); subplot.setWeight(weight); subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0)); subplot.setDomainAxis(null); subplot.setOrientation(getOrientation()); subplot.addChangeListener(this); this.subplots.add(subplot); CategoryAxis axis = getDomainAxis(); if (axis != null) { axis.configure(); } fireChangeEvent(); }
/** * Adds a subplot and sends a {@link PlotChangeEvent} to all registered * listeners. * <br><br> * You must ensure that the subplot has a non-null domain axis. The range * axis for the subplot will be set to {@code null}. * * @param subplot the subplot ({@code null} not permitted). * @param weight the weight (must be >= 1). */ public void add(CategoryPlot subplot, int weight) { Args.nullNotPermitted(subplot, "subplot"); if (weight <= 0) { throw new IllegalArgumentException("Require weight >= 1."); } // store the plot and its weight subplot.setParent(this); subplot.setWeight(weight); subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0)); subplot.setRangeAxis(null); subplot.setOrientation(getOrientation()); subplot.addChangeListener(this); this.subplots.add(subplot); // configure the range axis... ValueAxis axis = getRangeAxis(); if (axis != null) { axis.configure(); } fireChangeEvent(); }
plot.setRangeGridlinesVisible(true); plot.setRangeGridlinePaint(Color.black); plot.setInsets(new RectangleInsets(5.0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(UnitType.ABSOLUTE, 0, 20, 0, 20)); plot.getRangeAxis().setRange(0.0, aMaxValue); ((NumberAxis) plot.getRangeAxis()).setNumberFormatOverride(new DecimalFormat("0"));
plot.setInsets(new RectangleInsets(5.0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(5.0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(5.0, 0, 0, 5.0));
ColorPalette.apply(renderer); plot.setInsets(new RectangleInsets(5.0, 0, 0, 5.0));
plot.setInsets(new RectangleInsets(5.0, 0, 0, 5.0));