jdraw.options
Class Options

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

public class Options
extends mvp.Model

Class Options is the Model class for picture/canvas options operations such as resizing, gridding, and orientation

See Also:
Serialized Form

Field Summary
protected static JDraw jdraw
          A local reference to the top-level JDraw object.
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
Options(mvp.View view, JDraw jdraw)
          Construct this with the given View object.
 
Method Summary
static void enlarge()
          Increase the active CanvasWindow's zoom factor by double.
static void griddingOnOff()
          Toggle gridding on the drawing Canvas.
static void griddingVisibleInvisible()
          Toggle grid visibility.
static void gridSpacing()
          Edit the grid spacing value.
static void normalSize()
          Set the active CanvasWindow's zoom factor to unity (1).
static void orientation()
          Toggle the printing Page's orientation between Horizontal and Vertical.
static void reduce()
          Reduce the active CanvasWindow's zoom factor by half.
static void returnHome()
          Sets the current Canvas Window to the 'home' position.
 
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 static JDraw jdraw
A local reference to the top-level JDraw object.
Constructor Detail

Options

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

reduce

public static void reduce()
Reduce the active CanvasWindow's zoom factor by half.

enlarge

public static void enlarge()
Increase the active CanvasWindow's zoom factor by double.

normalSize

public static void normalSize()
Set the active CanvasWindow's zoom factor to unity (1).

returnHome

public static void returnHome()
Sets the current Canvas Window to the 'home' position.

griddingOnOff

public static void griddingOnOff()
Toggle gridding on the drawing Canvas.

griddingVisibleInvisible

public static void griddingVisibleInvisible()
Toggle grid visibility.

gridSpacing

public static void gridSpacing()
Edit the grid spacing value. Opens the grid spacing dialog.

orientation

public static void orientation()
Toggle the printing Page's orientation between Horizontal and Vertical.