afreechart/src/main/java/org/afree/chart/plot/CombinedDomainXYPlot.java
/**
     * Adds a subplot with the specified weight and sends a
     * {@link PlotChangeEvent} to all registered listeners.  The weight
     * determines how much space is allocated to the subplot relative to all
     * the other subplots.
     * <P>
     * 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).
     */
Adds a subplot with the specified weight and sends a
PlotChangeEvent to all registered listeners.  The weight
determines how much space is allocated to the subplot relative to all
the other subplots.

The domain axis for the subplot will be set to null.  You
must ensure that the subplot has a non-null range axis.

@param subplot  the subplot (null not permitted).
@param weight  the weight (must be >= 1).
Adds a subplot with the specified weight and sends a PlotChangeEvent to all registered listeners . The weight determines how much space is allocated to the subplot relative to all the other subplots . The domain axis for the subplot will be set to null . You must ensure that the subplot has a non - null range axis . @param subplot the subplot ( null not permitted ) . @param weight the weight ( must be > = 1 ) .
public void add(XYPlot subplot, int weight) {
        if (subplot == null) {
            throw new IllegalArgumentException("Null 'subplot' argument.");
        }
        if (weight <= 0) {
            throw new IllegalArgumentException("Require weight >= 1.");
        }
        subplot.setParent(this);
        subplot.setWeight(weight);
        subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0), false);
        subplot.setDomainAxis(null);
        subplot.addChangeListener(this);
        this.subplots.add(subplot);
        ValueAxis axis = getDomainAxis();
        if (axis != null) {
            axis.configure();
        }
        fireChangeEvent();
    }
public void add ( XYPlot subplot , int weight ) { if ( subplot == null ) { throw new IllegalArgumentException ( "Null 'subplot' argument." ) ; } if ( weight <= 0 ) { throw new IllegalArgumentException ( "Require weight >= 1." ) ; } subplot . setParent ( this ) ; subplot . setWeight ( weight ) ; subplot . setInsets ( new RectangleInsets ( 0.0 , 0.0 , 0.0 , 0.0 ) , false ) ; subplot . setDomainAxis ( null ) ; subplot . addChangeListener ( this ) ; this . subplots . add ( subplot ) ; ValueAxis axis = getDomainAxis ( ) ; if ( axis != null ) { axis . configure ( ) ; } fireChangeEvent ( ) ; }
Adds a subplot with the specified weight and sends a
 {@link PlotChangeEvent} to all registered listeners.
Adds a subplot with the specified weight and sends a { @link PlotChangeEvent } to all registered listeners .
// store the plot and its weight