Package civquest.swing.fieldview

Examples of civquest.swing.fieldview.InvalidImageException


    int imageHeight = image.getHeight(this);

    if (imageWidth != -1 && imageHeight != -1) {
      // Width and height are already known
      if (imageWidth != size.x || imageHeight != size.y) {
        throw new InvalidImageException("QuadFlatLayTerrainView.paint got image of size "
                        + imageWidth + "x" + imageHeight
                        + ", but excepted one of size " + size);
      }

      // If this would be located outside the if, it might override the
View Full Code Here


    // but it might get available between this "if" and the drawImage-call -
    // then the test wouldn't be executed...
    if (imageWidth != -1 && imageHeight != -1) {
      // Width and height are already known
      if (imageWidth != size.x || imageHeight != size.y) {
        throw new InvalidImageException("QuadIsoLayTerrainView.paint got image of " +
                        "size " + imageWidth + "x" + imageHeight
                        + ", but excepted one of size " + size +
                        " (" + text + ")");
      }
    }     
View Full Code Here

      // but it might get available between this "if" and the drawImage-call -
      // then the test wouldn't be executed...
      if (imageWidth != -1 && imageHeight != -1) {
        // Width and height are already known
        if (imageWidth != size.x || imageHeight != size.y) {
          throw new InvalidImageException("QuadIsoLayCityView.paint got image of size "
                          + imageWidth + "x" + imageHeight
                          + ", but excepted one of size " + size);
        }
      }   
    }
View Full Code Here

        // Width and height are already known
        if (imageWidth != size.x || imageHeight != size.y) {
          String msg = "QuadIsoLayUnitView.paint got image of size "
            + imageWidth + "x" + imageHeight
            + ", but excepted one of size " + size;
          throw new InvalidImageException(msg);
        }
      }
     
      if (paintUnitNationMark) {
        int halfCellWidth = properties.getHalfCellWidth();
View Full Code Here

TOP

Related Classes of civquest.swing.fieldview.InvalidImageException

Copyright © 2018 www.massapicom. 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.