Description: Writing a Graphical
Editor---The graphical editor allows you to create and edit three kinds of graphical objects
– rectangles, ovals, and line segments – in a drawing. There is a linear
ordering of the objects, from front to back, so that if two objects overlap, the
one in front is what you see. Each object can appear in either red, green, or
blue. The editing operations allow you to change an object’s color, to drag an
object, to delete an object, to move an object to the front of the linear order, to
move an object to the back of the linear order, and to exchange the locations of
two objects.
File list (Check if you may need any files):
hw2-project\.classpath
...........\.project
...........\.settings\org.eclipse.jdt.core.prefs
...........\bin\cn\edu\nju\software\grapheditor\cmd\BackButtonCmd.class
...........\...\..\...\...\........\...........\...\BlueButtonCmd.class
...........\...\..\...\...\........\...........\...\Command.class
...........\...\..\...\...\........\...........\...\DeleteButtonCmd.class
...........\...\..\...\...\........\...........\...\ExchangeCmd.class
...........\...\..\...\...\........\...........\...\FrontButtonCmd.class
...........\...\..\...\...\........\...........\...\GreenButtonCmd.class
...........\...\..\...\...\........\...........\...\MoveButtonCmd.class
...........\...\..\...\...\........\...........\...\OvalCmd.class
...........\...\..\...\...\........\...........\...\RectangleCmd.class
...........\...\..\...\...\........\...........\...\RedButtonCmd.class
...........\...\..\...\...\........\...........\...\SegmentCmd.class
...........\...\..\...\...\........\...........\Drawing.class
...........\...\..\...\...\........\...........\Editor$BackButtonListener.class
...........\...\..\...\...\........\...........\Editor$BlueButtonListener.class
...........\...\..\...\...\........\...........\Editor$CanvasPanel.class
...........\...\..\...\...\........\...........\Editor$ColorIndicator.class
...........\...\..\...\...\........\...........\Editor$DeleteButtonListener.class
...........\...\..\...\...\........\...........\Editor$ExchangeButtonListener.class
...........\...\..\...\...\........\...........\Editor$FrontButtonListener.class
...........\...\..\...\...\........\...........\Editor$GreenButtonListener.class
...........\...\..\...\...\........\...........\Editor$LineButtonListener.class
...........\...\..\...\...\........\...........\Editor$MoveButtonListener.class
...........\...\..\...\...\........\...........\Editor$OvalButtonListener.class
...........\...\..\...\...\........\...........\Editor$RectButtonListener.class
...........\...\..\...\...\........\...........\Editor$RedButtonListener.class
...........\...\..\...\...\........\...........\Editor.class
...........\...\..\...\...\........\...........\shape\Oval.class
...........\...\..\...\...\........\...........\.....\Rectangle.class
...........\...\..\...\...\........\...........\.....\Segment.class
...........\...\..\...\...\........\...........\.....\Shape.class
...........\...\cn.edu.nju.software.grapheditor.Editor1242782076190.html
...........\...\cn.edu.nju.software.grapheditor.Editor1243674015367.html
...........\...\java.policy.applet
...........\src\cn\edu\nju\software\grapheditor\cmd\BackButtonCmd.java
...........\...\..\...\...\........\...........\...\BlueButtonCmd.java
...........\...\..\...\...\........\...........\...\Command.java
...........\...\..\...\...\........\...........\...\DeleteButtonCmd.java
...........\...\..\...\...\........\...........\...\ExchangeCmd.java
...........\...\..\...\...\........\...........\...\FrontButtonCmd.java
...........\...\..\...\...\........\...........\...\GreenButtonCmd.java
...........\...\..\...\...\........\...........\...\MoveButtonCmd.java
...........\...\..\...\...\........\...........\...\OvalCmd.java
...........\...\..\...\...\........\...........\...\RectangleCmd.java
...........\...\..\...\...\........\...........\...\RedButtonCmd.java
...........\...\..\...\...\........\...........\...\SegmentCmd.java
...........\...\..\...\...\........\...........\Drawing.java
...........\...\..\...\...\........\...........\Editor.java
...........\...\..\...\...\........\...........\shape\Oval.java
...........\...\..\...\...\........\...........\.....\Rectangle.java
...........\...\..\...\...\........\...........\.....\Segment.java
...........\...\..\...\...\........\...........\.....\Shape.java
...........\bin\cn\edu\nju\software\grapheditor\cmd
...........\...\..\...\...\........\...........\shape
...........\src\cn\edu\nju\software\grapheditor\cmd
...........\...\..\...\...\........\...........\shape
...........\bin\cn\edu\nju\software\grapheditor
...........\src\cn\edu\nju\software\grapheditor
...........\bi