/** * FakeQuickDraw - implements several QuickDraw routines * */ import java.awt.*; abstract public class FakeQuickDraw extends java.awt.Graphics { public void InsetRect( Rectangle theRect, int x, int y) { theRect.x = (theRect.x + x); theRect.y = (theRect.y + y); theRect.width = (theRect.width - x); theRect.height = (theRect.height - y); } public void SetRect( Rectangle theRect, int left, int top, int right, int bottom ) { theRect = new Rectangle( left, top, right, bottom ); } public void OffsetRect( Rectangle theRect, int dh, int dv ) { theRect.move( dh, dv ); } public void FrameOval( Rectangle theRect, Graphics g ) { g.drawOval( theRect.x, theRect.y, theRect.width, theRect.height ); } public void PaintOval( Rectangle theRect, Graphics g ) { g.fillOval( theRect.x, theRect.y, theRect.width, theRect.height ); } public void FrameArc( Rectangle theRect, Graphics g, int startAngle, int arcAngle ) { g.drawArc( theRect.x, theRect.y, theRect.width, theRect.height, startAngle, arcAngle ); } }