protoj.view_ui
Class ViewMenu

java.lang.Object
  extended by mvp.View
      extended by protoj.view_ui.ViewMenu
All Implemented Interfaces:
java.io.Serializable, java.util.Observer

public class ViewMenu
extends mvp.View

ViewMenu class definition. This is the view class that has all the menu items of the ViewMenu.

See Also:
Serialized Form

Field Summary
protected  int cShowHide
          Component show/hide indicator
protected  GridSpacingDialog gridSpacingDialog
          local reference to the GridSpacingDialog.
protected  LayersDialog layersDialog
          local reference to the LayersDialog.
protected  PagesDialog pagesDialog
          local reference to the PagesDialog.
protected  ProtoJUI protojUI
          A Reference to the parent UI.
protected  View view
          View model object
 
Fields inherited from class mvp.View
closeAdapter, editable, model, screen, shown, widget, window
 
Constructor Summary
ViewMenu(mvp.Screen screen, View view, ProtoJUI protojUI)
          Construct the ViewMenu object
 
Method Summary
protected  void addCenterPage()
          Add the 'Center Page' menu item.
protected  void addGriddingOn()
          Add the 'Gridding On' menu item.
protected  void addGridSpacing()
          Add the 'Grid Spacing' menu item.
protected  void addHideComponents()
          Add the 'Hide Components' menu item.
protected  void addHideDrawing()
          Add the 'Hide Drawing' menu item.
protected  void addHideGridLines()
          Add the 'Hide Grid Lines' menu item.
protected  void addHideText()
          Add the 'Hide Text' menu item.
protected  void addHome()
          Add the 'Home' menu item.
protected  void addLayers()
          Add the 'Layers' menu item.
protected  void addNormalSize()
          Add the 'Normal Size' menu item.
protected  void addPage()
          Add the 'Page' menu item.
protected  void addSeparator()
          Add the "Separator" menu item.
protected  void addShowGrouping()
          Add the 'ShowGrouping' menu item.
protected  void addWindows()
          Add the 'Windows' menu item.
protected  void addZoomIn()
          Add the 'Zoom In' menu item.
protected  void addZoomOut()
          Add the 'Zoom Out' menu item.
 java.awt.Component compose()
          Compose view menu items
 View getView()
          Return the View object
 
Methods inherited from class mvp.View
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setExitOnClose, setModel, show, show, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected View view
View model object


gridSpacingDialog

protected GridSpacingDialog gridSpacingDialog
local reference to the GridSpacingDialog.


cShowHide

protected int cShowHide
Component show/hide indicator


layersDialog

protected LayersDialog layersDialog
local reference to the LayersDialog.


pagesDialog

protected PagesDialog pagesDialog
local reference to the PagesDialog.


protojUI

protected ProtoJUI protojUI
A Reference to the parent UI. This could probably go at some point, but as of right now layer and page dialogs are built anew every time to harvest the current canvas info.

Constructor Detail

ViewMenu

public ViewMenu(mvp.Screen screen,
                View view,
                ProtoJUI protojUI)
Construct the ViewMenu object

Method Detail

compose

public java.awt.Component compose()
Compose view menu items

Overrides:
compose in class mvp.View

addZoomIn

protected void addZoomIn()
Add the 'Zoom In' menu item.


addZoomOut

protected void addZoomOut()
Add the 'Zoom Out' menu item.


addNormalSize

protected void addNormalSize()
Add the 'Normal Size' menu item.


addCenterPage

protected void addCenterPage()
Add the 'Center Page' menu item.


addHome

protected void addHome()
Add the 'Home' menu item.


addGriddingOn

protected void addGriddingOn()
Add the 'Gridding On' menu item.


addHideGridLines

protected void addHideGridLines()
Add the 'Hide Grid Lines' menu item.


addGridSpacing

protected void addGridSpacing()
Add the 'Grid Spacing' menu item.


addHideDrawing

protected void addHideDrawing()
Add the 'Hide Drawing' menu item.


addHideComponents

protected void addHideComponents()
Add the 'Hide Components' menu item.


addHideText

protected void addHideText()
Add the 'Hide Text' menu item.


addShowGrouping

protected void addShowGrouping()
Add the 'ShowGrouping' menu item.


addLayers

protected void addLayers()
Add the 'Layers' menu item.


addPage

protected void addPage()
Add the 'Page' menu item.


addWindows

protected void addWindows()
Add the 'Windows' menu item.


addSeparator

protected void addSeparator()
Add the "Separator" menu item.


getView

public View getView()
Return the View object