class CameraSettings extends BaseSettings {

    public CameraSettings() {
        this(false);
    }
    public CameraSettings(boolean calibrated) {
        this.calibrated = calibrated;
    }

    boolean calibrated = false;
    double monitorWindowsScale = 1.0;
    Class<? extends FrameGrabber> frameGrabber = null;

    public int getQuantity() {
        return size();
    }
    public void setQuantity(int quantity) throws PropertyVetoException {<FILL_FUNCTION_BODY>}

    public double getMonitorWindowsScale() {
        return monitorWindowsScale;
    }
    public void setMonitorWindowsScale(double monitorWindowsScale) {
        this.monitorWindowsScale = monitorWindowsScale;
    }

    public Class<? extends FrameGrabber> getFrameGrabber() {
        return frameGrabber;
    }
    public void setFrameGrabber(Class<? extends FrameGrabber> frameGrabber) {
        pcSupport.firePropertyChange("frameGrabber", this.frameGrabber, this.frameGrabber = frameGrabber);
    }

    @Override public CameraDevice.Settings[] toArray() {
        return (CameraDevice.Settings[])toArray(new CameraDevice.Settings[size()]);
    }
}

        quantity = Math.max(1, quantity);
        Object[] a = toArray();
        int i = a.length;
        while (i > quantity) {
            remove(a[i-1]);
            i--;
        }
        while (i < quantity) {
            CameraDevice.Settings c = calibrated ? new CameraDevice.CalibratedSettings() :
                                                   new CameraDevice.CalibrationSettings();
            c.setName("Camera " + String.format("%2d", i));
            c.setDeviceNumber(i);
            c.setFrameGrabber(frameGrabber);
            add(c);
            i++;
        }
        pcSupport.firePropertyChange("quantity", a.length, quantity);
    
<methods>public non-sealed void <init>() ,public void addPropertyChangeListener(java.beans.PropertyChangeListener) ,public int compareTo(org.bytedeco.javacv.BaseSettings) ,public void removePropertyChangeListener(java.beans.PropertyChangeListener) ,public java.lang.Object[] toArray() ,public java.lang.Object[] toArray(java.lang.Object[]) <variables>