View RSS Feed

Java AWT

Java Abstract Window Toolkit (AWT)

  1. Clipping the Drawing Region

    by , 03-04-2012 at 05:49 PM
    As a clipping path, shape object is used so that to restrict that drawing areas which will render. Clipping path is considered to be the portion of Graphic2D context. Call the Graphics2D.setClip & pass ahpe so that to set clip’s attributes. Clipping path gets shrink by clip method calling & then passing to other shape. A clip intersects to current shape and specified shape.

    To set clip method pass the ellipse & call clip so that for setting the clip path for intersection ...