gishur.gui2
Class DisplayModel

java.lang.Object
  |
  +--gishur.gui2.DrawAtom
        |
        +--gishur.gui2.DrawObject
              |
              +--gishur.gui2.DisplayObject
                    |
                    +--gishur.gui2.DisplayModel

public abstract class DisplayModel
extends DisplayObject

DisplayModel is an extension of DisplayMultiLevelObject for displaying of models controlled by a ModelController.

Version:
1.0
Author:
Thomas Wolf
See Also:
DisplayInteractiveModel

Fields inherited from class gishur.gui2.DrawAtom
BLOCK_REPAINT, MARK_RECALC, MARK_REPAINT, MARK_SIZE, REPAINT, UNBLOCK_REPAINT, USER_STATES_FIRST, USER_STATES_MASK
 
Constructor Summary
protected DisplayModel(java.lang.String property_prefix)
          Constructs a new DisplayModel which uses the given prefix for all properties.
 
Method Summary
 ModelController controller()
          Returns the connected ModelController.
 void setContoller(ModelController controller)
          Connects this DisplayModel with another ModelController.
 void setSource(java.lang.Object source)
          Sets a new source object for this DisplayModel.
 java.lang.Object source()
          Returns the source object of this DisplayModel (shortcut for controller().{
 
Methods inherited from class gishur.gui2.DisplayObject
addEventListener, calculateDockingPoint, calculateDockingPoint, next, parent, prev, processDrawEvent, removeEventListener
 
Methods inherited from class gishur.gui2.DrawObject
addDrawDependency, addPainter, blockRepaint, checkState, checkStateCleared, child, clear, clearCache, clearState, dependency, dirty, disableEvents, draw, draw, enableEvents, ensureRecalculate, findPainter, firstPainter, fullscreen, hide, hide, insert, levelMask, levelUsed, locate, makeDirty, makeDirty, next, nextPainter, prepeareRenderContext, prev, processEvent, propertyReader, recalculate, recalculate, remove, removeDrawDependency, repaint, screenTransformation, setFullscreen, setPaintBeforeMembers, setScreenTransformation, setState, show, show, state, state, unblockRepaint, unblockRepaint, visible
 
Methods inherited from class gishur.gui2.DrawAtom
addProperties, collectHits, dispatchEvent, displayManager, drawComponent, getBounds, getLocalProperty, getProperty, getProperty, getRequiredProperty, preprocessEvent, processMessage, properties, removeProperty, sendEvent, sendMessage, setBounds, setPropertiesTo, setProperty, setProperty, setProperty, setProperty, toString, toString, toStringDetail, toTreeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisplayModel

protected DisplayModel(java.lang.String property_prefix)
Constructs a new DisplayModel which uses the given prefix for all properties.
Parameters:
property_prefix - the prefix string used for all read properties
Method Detail

source

public java.lang.Object source()
Returns the source object of this DisplayModel (shortcut for controller().ModelController.source()).
Returns:
source object.
See Also:
controller()

controller

public ModelController controller()
Returns the connected ModelController.
Returns:
the connected ModelController.

setContoller

public void setContoller(ModelController controller)
Connects this DisplayModel with another ModelController.
Parameters:
controller - new ModelController

setSource

public void setSource(java.lang.Object source)
Sets a new source object for this DisplayModel. A new ModelController will be created in order to handle multiple views of the source object. This will not change the source object of an existing ModelController nor will it join this DisplayModel as view to an existing ModelController of the source object.
Parameters:
source - new source object (model)