jdraw.jdraw
Class Commands

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

public class Commands
extends mvp.Model

Class Commands is the top-level Model class for the MenuBar. It contains an instance of all necessary model classes for method-access by menu items. ....

See Also:
Serialized Form

Field Summary
protected  Align align
          Local reference to Align object
protected  BrushPatternColor bpc
          Local reference to BrushPatternColor object
protected  Edit edit
          Local reference to Edit object
protected  File file
          Local reference to File object
protected  Options options
          Local reference to Options object
protected  Structure structure
          Local reference to Structure object
protected  Text text
          Local reference to Text object
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
Commands(mvp.View view, JDraw jdraw)
          Construct this with the given View component.
 
Method Summary
 Align getAlign()
          Return the system's Align component
 BrushPatternColor getBrushPatternColor()
          Return the system's BrushPatternColor component
 Edit getEdit()
          Return the system's Edit component
 File getFile()
          Return the system's File component
 Options getOptions()
          Return the system's Options component
 Structure getStructure()
          Return the system's Structure component
 Text getText()
          Return the system's Text component
 
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

file

protected File file
Local reference to File object

edit

protected Edit edit
Local reference to Edit object

structure

protected Structure structure
Local reference to Structure object

text

protected Text text
Local reference to Text object

bpc

protected BrushPatternColor bpc
Local reference to BrushPatternColor object

align

protected Align align
Local reference to Align object

options

protected Options options
Local reference to Options object
Constructor Detail

Commands

public Commands(mvp.View view,
                JDraw jdraw)
Construct this with the given View component. Call the super constructor and setup local references to necessary submodel objects.
Parameters:
view - - The View object to be passed to parent constructor.
jdraw - - The JDraw object to be used building subviews.
Method Detail

getFile

public File getFile()
Return the system's File component
Returns:
- The system's File object.

getEdit

public Edit getEdit()
Return the system's Edit component
Returns:
- The system's Edit object.

getStructure

public Structure getStructure()
Return the system's Structure component
Returns:
- The system's Structure object.

getText

public Text getText()
Return the system's Text component
Returns:
- The system's Text object.

getBrushPatternColor

public BrushPatternColor getBrushPatternColor()
Return the system's BrushPatternColor component
Returns:
- The system's BrushPatternColor object.

getOptions

public Options getOptions()
Return the system's Options component
Returns:
- The system's Options object.

getAlign

public Align getAlign()
Return the system's Align component
Returns:
- The system's Align object.