The ImageSelection class is simply a wrapper for Image objects.Objects that you want to transfer via the clipboard must implement the Transferable interface.We build an ImageSelection class that can be used to transfer images through the local clipboard.
The Java2D platform has the beginning of a robust printing model that is fully integrated with 2D graphics. We can easily print a drawing on a single sheet of paper. We can also manage a multipages printout and easily generate a print preview dialog.
By using a sufficient number of lines and curves we can draw essentially any shape. It is easier to describe a shape(rectangles, polygons, or ellipses) by composing it from areas. The Java2D supports four constructive area geometry operations that combine two areas to a new area:1)add 2)subtract 3)intersect 4)exclusiveOr.
When you fill a shape, its inside is covered with paint. You use the setPaint method to set the paint style to an object whose class implements the paint interface. In Java2d, there are three classes 1)Color 2)GradientPaint 3)TexturePaint.
By setting a clipping shape in the graphics(graphics means to the creation, storage and manipulation of pictures and drawings using a digital computer) context, you constrain all drawing operations to the interior of that clipping shape. The clip method intersects the existing clipping shape with the new one .