Package java.awt

Examples of java.awt.Rectangle.intersects()


      calculateGeometry();

  if ( slider.getPaintTrack() && clip.intersects( trackRect ) ) {
      paintTrack( g );
  }
        if ( slider.getPaintTicks() && clip.intersects( tickRect ) ) {
            paintTicks( g );
        }
        if ( slider.getPaintLabels() && clip.intersects( labelRect ) ) {
            paintLabels( g );
        }
View Full Code Here


      paintTrack( g );
  }
        if ( slider.getPaintTicks() && clip.intersects( tickRect ) ) {
            paintTicks( g );
        }
        if ( slider.getPaintLabels() && clip.intersects( labelRect ) ) {
            paintLabels( g );
        }
  if ( slider.hasFocus() && clip.intersects( focusRect ) ) {
      paintFocus( g );     
  }
View Full Code Here

            paintTicks( g );
        }
        if ( slider.getPaintLabels() && clip.intersects( labelRect ) ) {
            paintLabels( g );
        }
  if ( slider.hasFocus() && clip.intersects( focusRect ) ) {
      paintFocus( g );     
  }
  if ( clip.intersects( thumbRect ) ) {
      paintThumb( g );
  }
View Full Code Here

            paintLabels( g );
        }
  if ( slider.hasFocus() && clip.intersects( focusRect ) ) {
      paintFocus( g );     
  }
  if ( clip.intersects( thumbRect ) ) {
      paintThumb( g );
  }
    }

    protected void recalculateIfInsetsChanged() {
View Full Code Here

        subcontext = getContext(slider, Region.SLIDER_THUMB);
        paintThumb(subcontext, g, thumbRect);
        subcontext.dispose();

        if (slider.getPaintTicks() && clip.intersects(tickRect)) {
            paintTicks(g);
        }

        if (slider.getPaintLabels() && clip.intersects(labelRect)) {
            paintLabels(g);
View Full Code Here

        if (slider.getPaintTicks() && clip.intersects(tickRect)) {
            paintTicks(g);
        }

        if (slider.getPaintLabels() && clip.intersects(labelRect)) {
            paintLabels(g);
        }
    }

    public void paintBorder(SynthContext context, Graphics g, int x,
View Full Code Here

        subcontext = getContext(slider, Region.SLIDER_THUMB);
        paintThumb(subcontext, g, thumbRect);
        subcontext.dispose();

        if (slider.getPaintTicks() && clip.intersects(tickRect)) {
            paintTicks(g);
        }

        if (slider.getPaintLabels() && clip.intersects(labelRect)) {
            paintLabels(g);
View Full Code Here

        if (slider.getPaintTicks() && clip.intersects(tickRect)) {
            paintTicks(g);
        }

        if (slider.getPaintLabels() && clip.intersects(labelRect)) {
            paintLabels(g);
        }
    }
   
    // Rossi: Ugly hack to change color of "ticks". Replacing this with an painter might be nicer.
View Full Code Here

        // into the table's bounds.
        bounds.x = bounds.y = 0;

        // This check prevents us from painting the entire table when the clip
        // doesn't intersect our bounds at all.
        if (table.getRowCount() <= 0 || table.getColumnCount() <= 0 || !bounds.intersects(clip)) {
            paintDropLines(context, g);
            return;
        }

        boolean ltr = table.getComponentOrientation().isLeftToRight();
View Full Code Here

      if ((block != null) && (block.getTiles() != null)) {
        Rectangle screenRect = getScreenRectangle(clip, coord.x
            - currentBlock.getPosition().x, coord.y
            - currentBlock.getPosition().y);
        // only draw if block is visible
        if (screenRect.intersects(clip)) {
          Point topLeftCorner = screenRect.getLocation();
          topLeftCorner.x = topLeftCorner.x + modifier.x;
          topLeftCorner.y = topLeftCorner.y + modifier.y;
          block.draw(gImg, topLeftCorner);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.