/* @(#)Methods.java 6 September 2007 */ import edu.neu.ccs.*; import edu.neu.ccs.gui.*; import edu.neu.ccs.codec.*; import edu.neu.ccs.console.*; import edu.neu.ccs.filter.*; import edu.neu.ccs.jpf.*; import edu.neu.ccs.parser.*; import edu.neu.ccs.pedagogy.*; import edu.neu.ccs.quick.*; import edu.neu.ccs.util.*; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.awt.font.*; import java.awt.image.*; import javax.swing.*; import javax.swing.border.*; import java.io.*; import java.util.*; import java.math.*; import java.beans.*; import java.lang.reflect.*; import java.net.URL; import java.util.regex.*; import java.text.ParseException; /** The sample starter class for Java Power Framework. */ public class Methods extends JPF { public static void main(String[] args) { // To optionally adjust the look and feel, remove // the comment from one of the two statements below // In the second statement, the font size adjustment // should be a small integer between 2 and 12 // LookAndFeelTools.showSelectLookAndFeelDialog(); // LookAndFeelTools.adjustAllDefaultFontSizes(2); Methods methods = new Methods(); // To install the simple mouse actions in the graphics // window, remove the comment below // // The parameter true brings the clicked object to the // top. False leaves an object in its current layer. // methods.window.installSimpleMouseActions(true); } // place methods and data below // public methods with "simple" parameters will connect to // buttons in the automatic JPF graphical user interface // that will then execute the methods // Below is a sample test method // Remove the comments if you want to try this test method /* public void Test() { Shape shape1 = new XRect(100, 100, 100, 50); Paintable paintable1 = new ShapePaintable (shape1, PaintMode.FILL_DRAW, Colors.red); Shape shape2 = new XOval(150, 125, 100, 50); Paintable paintable2 = new ShapePaintable (shape2, PaintMode.FILL_DRAW, Colors.yellow, Colors.blue); window.clearSequence(); window.appendPaintable(paintable1); window.appendPaintable(paintable2); window.repaint(); } */ }