jdraw.structure
Class Structure

java.lang.Object
  |
  +--java.util.Observable
        |
        +--mvp.Model
              |
              +--jdraw.structure.Structure
All Implemented Interfaces:
java.io.Serializable

public class Structure
extends mvp.Model

Class Structure is the Model class for graphic organization operations such as grouping, moving along the z-axis, and getting the number of selected graphics.

See Also:
Serialized Form

Field Summary
protected  JDraw jdraw
          A local reference to the top-level JDraw object.
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
Structure(mvp.View view, JDraw jdraw)
          Construct this with the given View object.
 
Method Summary
 void bringToFront()
          Bring the selected graphic(s) to the front of the picture.
 void group()
          Group all selected graphics together.
 void numberOfGraphics()
          Bring up a dialog indicating the number of selected graphics.
 void redrawActiveCanvasWindow()
          Calls the redrawPage method of the currently active CanvasWindow.
 void saveActiveWindowState()
          Calls the saveCanvasState method of the currently active CanvasWindow.
 void sendToBack()
          Send the selected graphic(s) to the back of the picture.
 void ungroup()
          Ungroup the selected group.
 
Methods inherited from class mvp.Model
getView, setView
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdraw

protected JDraw jdraw
A local reference to the top-level JDraw object.
Constructor Detail

Structure

public Structure(mvp.View view,
                 JDraw jdraw)
Construct this with the given View object.
Parameters:
view - - The View object to be passed to parent constructor.
jdraw - - The JDraw object to be set as this.jdraw.
Method Detail

group

public void group()
Group all selected graphics together.

ungroup

public void ungroup()
Ungroup the selected group.

bringToFront

public void bringToFront()
Bring the selected graphic(s) to the front of the picture.

sendToBack

public void sendToBack()
Send the selected graphic(s) to the back of the picture.

numberOfGraphics

public void numberOfGraphics()
Bring up a dialog indicating the number of selected graphics.

redrawActiveCanvasWindow

public void redrawActiveCanvasWindow()
Calls the redrawPage method of the currently active CanvasWindow.

saveActiveWindowState

public void saveActiveWindowState()
Calls the saveCanvasState method of the currently active CanvasWindow.