org.nakedobjects.viewer.lightweight
Class GraphicalViewingMechanism

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.GraphicalViewingMechanism
All Implemented Interfaces:
ObjectViewingMechanism

public class GraphicalViewingMechanism
extends java.lang.Object
implements ObjectViewingMechanism

A Window wrapper that contains the views of the objects that the user has chosen to work with. This provides a vector of object views, the popup menu, a status buffer, and double-buffering. The graphical representation is made of a number of layers: background - the lowest layer that provides the background to all the layers above icon - show all the iconized views, particularly the class icons window - shows all the objects open as windows drag - working above all the others it rhe drag layer in which there is only ever one view, the current dragged view


Constructor Summary
GraphicalViewingMechanism()
           
 
Method Summary
 void addNotificationView(ObjectView view)
           
 void clearStatus()
          Sets the status string and refreshes that part of the screen.
 NakedClassList getClasses()
           
 DragView getDraggingView()
           
 DragHandler getDragHandler()
           
 Location getLocation()
           
 Padding getPadding()
           
 Size getSize()
           
 UpdateNotifier getUpdateNotifier()
           
 boolean hasFocus(KeyboardAccessible view)
           
 void init(NakedClassList set)
           
 void makeFocus(KeyboardAccessible view)
           
 void menuOptions(MenuOptionSet options)
           
 void paint(java.awt.Graphics g)
           
 void removeFromNotificationList(ObjectView view)
           
 void repaint()
           
 void repaint(int x, int y, int width, int height)
           
 void setCursor(java.awt.Cursor cursor)
           
 void setObjectStore(NakedObjectStore objectStore)
           
 void setStatus(java.lang.String status)
          Sets the status string and refreshes that part of the screen.
 void shutdown()
           
 void start()
           
 void status(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicalViewingMechanism

public GraphicalViewingMechanism()
Method Detail

getClasses

public NakedClassList getClasses()

setCursor

public void setCursor(java.awt.Cursor cursor)

getDragHandler

public DragHandler getDragHandler()

getDraggingView

public DragView getDraggingView()

getLocation

public Location getLocation()

setObjectStore

public void setObjectStore(NakedObjectStore objectStore)
Specified by:
setObjectStore in interface ObjectViewingMechanism

getPadding

public Padding getPadding()

getSize

public Size getSize()

setStatus

public void setStatus(java.lang.String status)
Sets the status string and refreshes that part of the screen.

Parameters:
status -

getUpdateNotifier

public UpdateNotifier getUpdateNotifier()
Specified by:
getUpdateNotifier in interface ObjectViewingMechanism

addNotificationView

public void addNotificationView(ObjectView view)

clearStatus

public void clearStatus()
Sets the status string and refreshes that part of the screen.


hasFocus

public boolean hasFocus(KeyboardAccessible view)

init

public void init(NakedClassList set)
Specified by:
init in interface ObjectViewingMechanism

makeFocus

public void makeFocus(KeyboardAccessible view)

menuOptions

public void menuOptions(MenuOptionSet options)

paint

public void paint(java.awt.Graphics g)

removeFromNotificationList

public void removeFromNotificationList(ObjectView view)

repaint

public void repaint(int x,
                    int y,
                    int width,
                    int height)

repaint

public void repaint()

shutdown

public void shutdown()
Specified by:
shutdown in interface ObjectViewingMechanism

start

public void start()
Specified by:
start in interface ObjectViewingMechanism

status

public void status(java.lang.String text)