Package javax.media.jai.util

Examples of javax.media.jai.util.Range


            JaiI18N.formatMsg("ParameterListDescriptorImpl5",
            new Object[] { paramNames[i] }));

        } else if (validParamValues[i] instanceof Range) {

      Range range = (Range)validParamValues[i];

      // If the validParamValues[i] is a Range, then
      // the Range's class must match with paramClass[i]
      if (!paramClasses[i].isAssignableFrom(
              range.getElementClass()))
          throw new IllegalArgumentException(
            JaiI18N.formatMsg("ParameterListDescriptorImpl6",
            new Object[]
        { range.getElementClass().getName(),
          paramClasses[i].getName(),
          paramNames[i] }));

        } else {
View Full Code Here


            int start_s_iy = s_iy;
            int start_ifracx = ifracx;
            int start_ifracy = ifracy;

            // Compute clipMinX, clipMinY
            Range clipRange =
    performScanlineClipping(src_rect_x1, src_rect_y1,
          // Last point in the source is
          // x2 = x1 + width - 1
          // y2 = y1 + height - 1
          src_rect_x2 - 1, src_rect_y2 - 1,
          s_ix, s_iy,
          ifracx, ifracy,
          dst_min_x, dst_max_x,
          0, 0, 0, 0);
            int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
            int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();

            if(clipMinX > clipMaxX) continue;

            int destYOffset = (y - destTransY)*
                destScanlineStride + destDBOffset;
View Full Code Here

            int start_s_iy = s_iy;
            int start_ifracx = ifracx;
            int start_ifracy = ifracy;

            // Compute clipMinX, clipMinY
            Range clipRange =
    performScanlineClipping(src_rect_x1, src_rect_y1,
          // Last point in the source is
          // x2 = x1 + width - 1
          // y2 = y1 + height - 1
          src_rect_x2 - 1, src_rect_y2 - 1,
          s_ix, s_iy,
          ifracx, ifracy,
          dst_min_x, dst_max_x,
          0, 0, 0, 0);
            int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
            int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();

            if(clipMinX > clipMaxX) continue;

            int destYOffset = (y - destTransY)*
                destScanlineStride + destDBOffset;
View Full Code Here

            int start_s_iy = s_iy;
            int start_ifracx = ifracx;
            int start_ifracy = ifracy;

            // Compute clipMinX, clipMinY
            Range clipRange =
    performScanlineClipping(src_rect_x1, src_rect_y1,
          // Last point in the source is
          // x2 = x1 + width - 1
          // y2 = y1 + height - 1
          src_rect_x2 - 1, src_rect_y2 - 1,
          s_ix, s_iy,
          ifracx, ifracy,
          dst_min_x, dst_max_x,
          0, 0, 0, 0);
            int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
            int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();

            if(clipMinX > clipMaxX) continue;

            int destYOffset = (y - destTransY)*
                destScanlineStride + destDBOffset;
View Full Code Here

        switch (index) {
        case 1:
        case 2:
        case 4:
        case 5:
            return new Range(Integer.class, new Integer(1), null);
        }
        return null;
    }
View Full Code Here

/*  394 */       double fracy = s_y - s_iy;
/*      */
/*  396 */       int ifracx = (int)Math.floor(fracx * 1048576.0D);
/*  397 */       int ifracy = (int)Math.floor(fracy * 1048576.0D);
/*      */
/*  400 */       Range clipRange = performScanlineClipping(src_rect_x1, src_rect_y1, src_rect_x2, src_rect_y2, s_ix, s_iy, ifracx, ifracy, dst_min_x, dst_max_x, 0, 0, 0, 0);
/*      */
/*  406 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/*  407 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*      */
/*  410 */       Point[] startPts = advanceToStartOfScanline(dst_min_x, clipMinX, s_ix, s_iy, ifracx, ifracy);
/*      */
/*  413 */       s_ix = startPts[0].x;
/*  414 */       s_iy = startPts[0].y;
View Full Code Here

/*  554 */       double fracy = s_y - s_iy;
/*      */
/*  556 */       int ifracx = (int)Math.floor(fracx * 1048576.0D);
/*  557 */       int ifracy = (int)Math.floor(fracy * 1048576.0D);
/*      */
/*  560 */       Range clipRange = performScanlineClipping(src_rect_x1, src_rect_y1, src_rect_x2, src_rect_y2, s_ix, s_iy, ifracx, ifracy, dst_min_x, dst_max_x, 0, 0, 0, 0);
/*      */
/*  566 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/*  567 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*      */
/*  570 */       Point[] startPts = advanceToStartOfScanline(dst_min_x, clipMinX, s_ix, s_iy, ifracx, ifracy);
/*      */
/*  573 */       s_ix = startPts[0].x;
/*  574 */       s_iy = startPts[0].y;
View Full Code Here

/*  880 */       double fracy = s_y - s_iy;
/*      */
/*  882 */       int ifracx = (int)Math.floor(fracx * 1048576.0D);
/*  883 */       int ifracy = (int)Math.floor(fracy * 1048576.0D);
/*      */
/*  886 */       Range clipRange = performScanlineClipping(src_rect_x1, src_rect_y1, src_rect_x2, src_rect_y2, s_ix, s_iy, ifracx, ifracy, dst_min_x, dst_max_x, 0, 0, 0, 0);
/*      */
/*  892 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/*  893 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*      */
/*  896 */       Point[] startPts = advanceToStartOfScanline(dst_min_x, clipMinX, s_ix, s_iy, ifracx, ifracy);
/*      */
/*  899 */       s_ix = startPts[0].x;
/*  900 */       s_iy = startPts[0].y;
View Full Code Here

/* 1034 */       double fracy = s_y - s_iy;
/*      */
/* 1036 */       int ifracx = (int)Math.floor(fracx * 1048576.0D);
/* 1037 */       int ifracy = (int)Math.floor(fracy * 1048576.0D);
/*      */
/* 1040 */       Range clipRange = performScanlineClipping(src_rect_x1, src_rect_y1, src_rect_x2, src_rect_y2, s_ix, s_iy, ifracx, ifracy, dst_min_x, dst_max_x, 0, 0, 0, 0);
/*      */
/* 1046 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/* 1047 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*      */
/* 1050 */       Point[] startPts = advanceToStartOfScanline(dst_min_x, clipMinX, s_ix, s_iy, ifracx, ifracy);
/*      */
/* 1053 */       s_ix = startPts[0].x;
/* 1054 */       s_iy = startPts[0].y;
View Full Code Here

/* 1188 */       double fracy = s_y - s_iy;
/*      */
/* 1190 */       int ifracx = (int)Math.floor(fracx * 1048576.0D);
/* 1191 */       int ifracy = (int)Math.floor(fracy * 1048576.0D);
/*      */
/* 1194 */       Range clipRange = performScanlineClipping(src_rect_x1, src_rect_y1, src_rect_x2, src_rect_y2, s_ix, s_iy, ifracx, ifracy, dst_min_x, dst_max_x, 0, 0, 0, 0);
/*      */
/* 1200 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/* 1201 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*      */
/* 1204 */       Point[] startPts = advanceToStartOfScanline(dst_min_x, clipMinX, s_ix, s_iy, ifracx, ifracy);
/*      */
/* 1207 */       s_ix = startPts[0].x;
/* 1208 */       s_iy = startPts[0].y;
View Full Code Here

TOP

Related Classes of javax.media.jai.util.Range

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.