Class DemoPaintable

  • All Implemented Interfaces:
    Paintable


    public class DemoPaintable
    extends Object
    implements Paintable
    A simple paintable object to test with.

    new com.bric.awt.DemoPaintable(360, 240, "xyz")

    • Constructor Detail

      • DemoPaintable

        public DemoPaintable(int width,
                             int height,
                             String id)
    • Method Detail

      • getHeight

        public int getHeight()
      • getWidth

        public int getWidth()
      • createAffineTransform

        public static AffineTransform createAffineTransform(Rectangle2D r1,
                                                            Rectangle2D r2)
        Create an AffineTransform that transforms from r1 to r2.
        Parameters:
        r1 - the initial rectangle
        r2 - the rectangle to transform r1 into.
        Returns:
        the transform mapping r1 to r2