Package javax.media.jai.util

Examples of javax.media.jai.util.Range


/* 1338 */       double fracy = s_y - s_iy;
/*      */
/* 1340 */       int ifracx = (int)Math.floor(fracx * 1048576.0D);
/* 1341 */       int ifracy = (int)Math.floor(fracy * 1048576.0D);
/*      */
/* 1344 */       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);
/*      */
/* 1350 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/* 1351 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*      */
/* 1354 */       Point[] startPts = advanceToStartOfScanline(dst_min_x, clipMinX, s_ix, s_iy, ifracx, ifracy);
/*      */
/* 1357 */       s_ix = startPts[0].x;
/* 1358 */       s_iy = startPts[0].y;
View Full Code Here


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

/*     */
/*  93 */     if (!(other instanceof NegotiableNumericRange)) {
/*  94 */       return null;
/*     */     }
/*  96 */     NegotiableNumericRange otherNNRange = (NegotiableNumericRange)other;
/*  97 */     Range otherRange = otherNNRange.getRange();
/*     */
/* 101 */     if (otherRange == null) {
/* 102 */       return null;
/*     */     }
/*     */
/* 105 */     if (otherRange.getElementClass() != this.range.getElementClass()) {
/* 106 */       return null;
/*     */     }
/* 108 */     Range result = this.range.intersect(otherRange);
/*     */
/* 111 */     if (result.isEmpty()) {
/* 112 */       return null;
/*     */     }
/* 114 */     return new NegotiableNumericRange(result);
/*     */   }
View Full Code Here

/* 1227 */       if ((min != null) || (max != null))
/*      */       {
/* 1230 */         if (validValues == null) {
/* 1231 */           validValues = new Object[numParams];
/*      */         }
/* 1233 */         validValues[i] = new Range(min.getClass(), (Comparable)min, (Comparable)max);
/*      */       }
/*      */     }
/*      */
/* 1237 */     return validValues;
/*      */   }
View Full Code Here

/* 225 */       int start_s_ix = s_ix;
/* 226 */       int start_s_iy = s_iy;
/* 227 */       int start_ifracx = ifracx;
/* 228 */       int start_ifracy = ifracy;
/*     */
/* 231 */       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);
/*     */
/* 237 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/* 238 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*     */
/* 240 */       if (clipMinX <= clipMaxX)
/*     */       {
/* 242 */         int destYOffset = (y - destTransY) * destScanlineStride + destDBOffset;
/*     */
View Full Code Here

/* 424 */       int start_s_ix = s_ix;
/* 425 */       int start_s_iy = s_iy;
/* 426 */       int start_ifracx = ifracx;
/* 427 */       int start_ifracy = ifracy;
/*     */
/* 430 */       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);
/*     */
/* 436 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/* 437 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*     */
/* 439 */       if (clipMinX <= clipMaxX)
/*     */       {
/* 441 */         int destYOffset = (y - destTransY) * destScanlineStride + destDBOffset;
/*     */
View Full Code Here

/* 622 */       int start_s_ix = s_ix;
/* 623 */       int start_s_iy = s_iy;
/* 624 */       int start_ifracx = ifracx;
/* 625 */       int start_ifracy = ifracy;
/*     */
/* 628 */       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);
/*     */
/* 634 */       int clipMinX = ((Integer)clipRange.getMinValue()).intValue();
/* 635 */       int clipMaxX = ((Integer)clipRange.getMaxValue()).intValue();
/*     */
/* 637 */       if (clipMinX <= clipMaxX)
/*     */       {
/* 639 */         int destYOffset = (y - destTransY) * destScanlineStride + destDBOffset;
/*     */
View Full Code Here

            }
        }
        if (type == null || !type.isAssignableFrom(descriptor.getValueClass())) {
            return false;
        }
        final Range range = listDescriptor.getParamValueRange(name);
        if (range != null) {
            Comparable c;
            c = descriptor.getMinimumValue();
            if (c!=null && !range.contains(c)) {
                return false;
            }
            c = descriptor.getMaximumValue();
            if (c!=null && !range.contains(c)) {
                return false;
            }
        }
        if (enumerated != null) {
            for (int i=0; i<enumerated.length; i++) {
View Full Code Here

            if (replacement != null) {
                desc[i + numSources] = replacement;
                continue;
            }
            final Class<?> type = classes[i];
            final Range range = descriptor.getParamValueRange(name);
            final Comparable<?> min, max;
            if (range != null) {
                min = range.getMinValue();
                max = range.getMaxValue();
            } else {
                min = null;
                max = null;
            }
            EnumeratedParameter[] validValues;
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.