    001/*
    002 *  Licensed under the Apache License, Version 2.0 (the "License");
    003 *  you may not use this file except in compliance with the License.
    004 *  You may obtain a copy of the License at
    005 *
    006 *       http://www.apache.org/licenses/LICENSE-2.0
    007 *
    008 *  Unless required by applicable law or agreed to in writing, software
    009 *  distributed under the License is distributed on an "AS IS" BASIS,
    010 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    011 *  See the License for the specific language governing permissions and
    012 *  limitations under the License.
    013 *  under the License.
    014 */
    015
    016package org.apache.commons.imaging.formats.pcx;
    017
    018import org.apache.commons.imaging.ImagingParameters;
    019
    020/**
    021 * Parameters used by the Pcx format.
    022 *
    023 * @since 1.0-alpha3
    024 */
    025public class PcxImagingParameters extends ImagingParameters<PcxImagingParameters> {
    026
    027    private int planes = -1;
    028    private int bitDepth = -1;
    029    private int compression = PcxConstants.PCX_COMPRESSION_UNCOMPRESSED;
    030
    031    public int getBitDepth() {
    032        return bitDepth;
    033    }
    034
    035    public int getCompression() {
    036        return compression;
    037    }
    038
    039    public int getPlanes() {
    040        return planes;
    041    }
    042
    043    public PcxImagingParameters setBitDepth(final int bitDepth) {
    044        this.bitDepth = bitDepth;
    045        return asThis();
    046    }
    047
    048    public PcxImagingParameters setCompression(final int compression) {
    049        this.compression = compression;
    050        return asThis();
    051    }
    052
    053    public PcxImagingParameters setPlanes(final int planes) {
    054        this.planes = planes;
    055        return asThis();
    056    }
    057
    058}