Examples of MissingParameterException


Examples of net.sourceforge.align.ui.console.command.exception.MissingParameterException

  }

  protected void run(CommandLine commandLine) {
    String cls = commandLine.getOptionValue('c');
    if (cls == null) {
      throw new MissingParameterException("class");
    }

    Filter filter;
    if (cls.equals("galechurch")) {
      filter = new GaleAndChurchMacro();
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    MissingParameterException,
    WrongParameterException
  {
    if (in == null)
    {
      throw new MissingParameterException("Missing input image.");
    }
    if (!
         (
          (in instanceof BilevelImage)
         )
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    if (in instanceof RGB24Image)
    {
      init(templateData, in.getWidth());
      if (quantizer == null)
      {
        throw new MissingParameterException("No quantizer was specified.");
      }
      if (useTruecolorOutput)
      {
        process((RGB24Image)in, (RGB24Image)out);
      }
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    MissingParameterException,
    WrongParameterException 
  {
    if (areaWidth == 0)
    {
      throw new MissingParameterException("Area width has not been initialized.");
    }
    if (areaHeight == 0)
    {
      throw new MissingParameterException("Area height has not been initialized.");
    }
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    PixelImage out = getOutputImage();
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    MissingParameterException,
    WrongParameterException
  {
    if (in == null)
    {
      throw new MissingParameterException("Missing input image.");
    }
    if (!
         (
          (in instanceof BilevelImage) ||
          (in instanceof Gray8Image)
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

  public void process() throws MissingParameterException, WrongParameterException
  {
    if (destBits == null)
    {
      throw new MissingParameterException("The number of destination bits has not been specified.");
    }
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
    PixelImage in = getInputImage();
    boolean gray8 = in instanceof Gray8Image;
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

  public void process() throws MissingParameterException, OperationFailedException, WrongParameterException
  {
    if (quantizer == null)
    {
      throw new MissingParameterException("No MedianCutQuantizer object was specified.");
    }
    ensureInputImageIsAvailable();
    PixelImage pixelImage = getInputImage();
    if (!(pixelImage instanceof RGB24Image))
    {
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

  public void process() throws MissingParameterException, WrongParameterException
  {
    if (destBits == null)
    {
      throw new MissingParameterException(
        "The number of destination bits has not been specified.");
    }
    int bits = destBits.intValue();
    ensureInputImageIsAvailable();
    ensureImagesHaveSameResolution();
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    WrongParameterException
  {
    PixelImage in = getInputImage();
    if (in == null)
    {
      throw new MissingParameterException("Input image missing.");
    }
    if (!(in instanceof GrayIntegerImage))
    {
      throw new WrongParameterException("Input image must implement GrayIntegerImage.");
    }
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    WrongParameterException
  {
    PixelImage in = getInputImage();
    if (in == null)
    {
      throw new MissingParameterException("Input image missing.");
    }
    PixelImage out = getOutputImage();
    if (out == null)
    {
      out = in.createCompatibleImage(in.getWidth(), in.getHeight());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.