Lines Matching defs:rule

132  * This value is applied as if an implicit SRC_IN rule were first
341 * in the case of the SRC rule is technically not valid if the
355 * (Porter-Duff Clear rule).
368 * (Porter-Duff Source rule).
381 * (Porter-Duff Destination rule).
395 * (Porter-Duff Source Over Destination rule).
408 * (Porter-Duff Destination Over Source rule).
421 * (Porter-Duff Source In Destination rule).
434 * (Porter-Duff Destination In Source rule).
447 * (Porter-Duff Source Held Out By Destination rule).
460 * (Porter-Duff Destination Held Out By Source rule).
478 * (Porter-Duff Source Atop Destination rule).
492 * (Porter-Duff Destination Atop Source rule).
507 * (Porter-Duff Source Xor Destination rule).
519 * <code>AlphaComposite</code> object that implements the opaque CLEAR rule
526 * <code>AlphaComposite</code> object that implements the opaque SRC rule
533 * <code>AlphaComposite</code> object that implements the opaque DST rule
541 * <code>AlphaComposite</code> object that implements the opaque SRC_OVER rule
548 * <code>AlphaComposite</code> object that implements the opaque DST_OVER rule
555 * <code>AlphaComposite</code> object that implements the opaque SRC_IN rule
562 * <code>AlphaComposite</code> object that implements the opaque DST_IN rule
569 * <code>AlphaComposite</code> object that implements the opaque SRC_OUT rule
576 * <code>AlphaComposite</code> object that implements the opaque DST_OUT rule
583 * <code>AlphaComposite</code> object that implements the opaque SRC_ATOP rule
591 * <code>AlphaComposite</code> object that implements the opaque DST_ATOP rule
599 * <code>AlphaComposite</code> object that implements the opaque XOR rule
610 int rule;
612 private AlphaComposite(int rule) {
613 this(rule, 1.0f);
616 private AlphaComposite(int rule, float alpha) {
617 if (rule < MIN_RULE || rule > MAX_RULE) {
618 throw new IllegalArgumentException("unknown composite rule");
621 this.rule = rule;
629 * Creates an <code>AlphaComposite</code> object with the specified rule.
630 * @param rule the compositing rule
631 * @throws IllegalArgumentException if <code>rule</code> is not one of
637 public static AlphaComposite getInstance(int rule) {
638 switch (rule) {
664 throw new IllegalArgumentException("unknown composite rule");
669 * Creates an <code>AlphaComposite</code> object with the specified rule and
673 * @param rule the compositing rule
679 * <code>rule</code> is not one of
685 public static AlphaComposite getInstance(int rule, float alpha) {
687 return getInstance(rule);
689 return new AlphaComposite(rule, alpha);
717 * Returns the compositing rule of this <code>AlphaComposite</code>.
718 * @return the compositing rule of this <code>AlphaComposite</code>.
721 return rule;
726 * the specified compositing rule.
727 * If this object already uses the specified compositing rule,
730 * this object that uses the specified compositing rule.
731 * @param rule the compositing rule
733 * <code>rule</code> is not one of
740 public AlphaComposite derive(int rule) {
741 return (this.rule == rule)
743 : getInstance(rule, this.extraAlpha);
763 : getInstance(this.rule, alpha);
771 return (Float.floatToIntBits(extraAlpha) * 31 + rule);
781 * compositing rule and alpha value as this object.
794 if (rule != ac.rule) {