/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/ |
H A D | LoweredBorder.java | 196 private Color getLighter(Color c, float factor){ argument 197 return new Color(Math.min((int)(c.getRed()/factor), 255), 198 Math.min((int)(c.getGreen()/factor), 255), 199 Math.min((int)(c.getBlue()/factor), 255));
|
/openjdk7/jdk/test/java/awt/Window/TranslucentShapedFrameTest/ |
H A D | TSFrame.java | 174 final float factor) 251 frame.setOpacity(factor); 169 createGui( final boolean useSwing, final boolean useShape, final boolean useTransl, final boolean useNonOpaque, final float factor) argument
|
/openjdk7/jaxp/src/javax/xml/datatype/ |
H A D | Duration.java | 627 * <p>Computes a new duration whose value is <code>factor</code> times 633 * multiply(new BigDecimal(String.valueOf(factor))) 636 * @param factor Factor times longer of new <code>Duration</code> to create. 638 * @return New <code>Duration</code> that is <code>factor</code>times longer than this <code>Duration</code>. 642 public Duration multiply(int factor) { argument 643 return multiply(new BigDecimal(String.valueOf(factor))); 647 * Computes a new duration whose value is <code>factor</code> times 681 * @param factor to multiply by 689 * @throws NullPointerException if the <code>factor</code> parameter is 693 public abstract Duration multiply(final BigDecimal factor); argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/ |
H A D | SOFMarkerSegment.java | 61 int factor = 1; 64 factor = 2; 66 factor = 1; 70 componentSpecs[i] = new ComponentSpec(componentIDs[i], factor, qsel); 213 ComponentSpec getComponentSpec(byte id, int factor, int qSelector) { argument 214 return new ComponentSpec(id, factor, qSelector); 226 ComponentSpec(byte id, int factor, int qSelector) { argument 228 HsamplingFactor = factor; 229 VsamplingFactor = factor; 275 System.out.print("H sampling factor [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/jstat/ |
H A D | Scale.java | 42 private final double factor; field in class:Scale 44 private Scale(String name, double factor) { argument 46 this.factor = factor; 144 * Returns the scaling factor of this Scale object 146 * @return the scaling factor of this Scale object 149 return factor; 183 return value/factor;
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | Spring.java | 304 private float factor; field in class:Spring.ScaleSpring 306 private ScaleSpring(Spring s, float factor) { argument 308 this.factor = factor; 312 return Math.round((factor < 0 ? s.getMaximumValue() : s.getMinimumValue()) * factor); 316 return Math.round(s.getPreferredValue() * factor); 320 return Math.round((factor < 0 ? s.getMinimumValue() : s.getMaximumValue()) * factor); 324 return Math.round(s.getValue() * factor); 635 scale(Spring s, float factor) argument [all...] |
H A D | SpringLayout.java | 434 private Spring scale(Spring s, float factor) { argument 435 return (s == null) ? null : Spring.scale(s, factor);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalUtils.java | 415 private float factor; field in class:MetalUtils.OceanDisabledButtonImageFilter 420 this.factor = (max - min) / 255f; 427 (0.0721f * (rgb & 0xFF)) + .5f) * factor + min));
|
/openjdk7/jdk/src/share/classes/javax/swing/text/html/ |
H A D | CSSBorder.java | 182 * Return the color with brightness adjusted by the specified factor. 184 * The factor values are between 0.0 (no change) and 1.0 (turn into white). 185 * Negative factor values decrease brigthness (ie, 1.0 turns into black). 187 static Color getAdjustedColor(Color c, double factor) { argument 188 double f = 1 - Math.min(Math.abs(factor), 1); 189 double inc = (factor > 0 ? 255 * (1 - f) : 0); 339 final int factor; field in class:CSSBorder.DottedDashedPainter 341 DottedDashedPainter(int factor) { argument 342 this.factor = factor; [all...] |
/openjdk7/jdk/src/share/demo/applets/GraphicsTest/ |
H A D | GraphicsTest.java | 470 static Color brighter(Color c, double factor) { argument 471 return new Color(Math.min((int) (c.getRed() * (1 / factor)), 255), 472 Math.min((int) (c.getGreen() * (1 / factor)), 255), 473 Math.min((int) (c.getBlue() * (1 / factor)), 255)); 476 static Color darker(Color c, double factor) { argument 477 return new Color(Math.max((int) (c.getRed() * factor), 0), 478 Math.max((int) (c.getGreen() * factor), 0), 479 Math.max((int) (c.getBlue() * factor), 0));
|
/openjdk7/jdk/src/share/classes/javax/sound/midi/ |
H A D | Sequencer.java | 241 * and the tempo factor. 254 * is the product of the specified value and the tempo factor. 267 * value and the tempo factor. 280 * factor. 291 * Scales the sequencer's actual playback tempo by the factor provided. 294 * The tempo factor does not affect the values returned by 298 * Note that the tempo factor cannot be adjusted when external 300 * <code>setTempoFactor</code> always sets the tempo factor to 1.0. 302 * @param factor the requested tempo scalar 305 public void setTempoFactor(float factor); argument [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/jaxp/datatype/ |
H A D | DurationImpl.java | 1464 * <p>Computes a new duration whose value is <code>factor</code> times 1470 * multiply(new BigDecimal(String.valueOf(factor))) 1473 * @param factor Factor times longer of new <code>Duration</code> to create. 1475 * @return New <code>Duration</code> that is <code>factor</code>times longer than this <code>Duration</code>. 1479 public Duration multiply(int factor) { argument 1480 return multiply(BigDecimal.valueOf(factor)); 1484 * Computes a new duration whose value is <code>factor</code> times 1518 * @param factor to multiply by 1526 * @throws NullPointerException if the <code>factor</code> parameter is 1530 public Duration multiply(BigDecimal factor) { argument [all...] |
/openjdk7/hotspot/src/share/vm/memory/ |
H A D | space.cpp | 885 void ContiguousSpace::allocate_temporary_filler(int factor) { argument 886 // allocate temporary type array decreasing free size with factor 'factor' 887 assert(factor >= 0, "just checking"); 893 if (factor > 0) { 894 size -= size/factor;
|
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | RealTimeSequencer.java | 92 * cache value for tempo factor until sequence is set 414 public void setTempoFactor(float factor) { argument 415 if (factor <= 0) { 423 cacheTempoFactor = factor; 425 getDataPump().setTempoFactor(factor); 1498 synchronized void setTempoFactor(float factor) { argument 1499 if (factor > 0 && factor != this.tempoFactor) { 1500 tempoFactor = factor; 1501 inverseTempoFactor = 1.0f / factor; [all...] |