gishur.gui2
Class DisplayInteractiveModel

java.lang.Object
  |
  +--gishur.gui2.DrawAtom
        |
        +--gishur.gui2.DrawObject
              |
              +--gishur.gui2.DisplayObject
                    |
                    +--gishur.gui2.DisplayInteractiveObject
                          |
                          +--gishur.gui2.DisplayInteractiveModel
Direct Known Subclasses:
DisplayGraph, DisplayXObject, DisplayXObject

public abstract class DisplayInteractiveModel
extends DisplayInteractiveObject

DisplayInteractiveModel is an extension of DisplayInteractiveObject for displaying of models controlled by a ModelController.

Version:
1.0
Author:
Thomas Wolf
See Also:
DisplayModel

Fields inherited from class gishur.gui2.DisplayInteractiveObject
ACTIVE, ACTIVE1, ACTIVE2, ACTIVE3, ACTIVE4, NORMAL, SELECTED
 
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 DisplayInteractiveModel(java.lang.String propertyprefix)
          Constructs a new DisplayInteractiveModel which uses the specified property prefix for all properties it needs.
 
Method Summary
 ModelController controller()
          Returns the connected ModelController.
 void setContoller(ModelController controller)
          Connects this DisplayInteractiveModel with another ModelController.
 void setSource(java.lang.Object source)
          Sets a new source object for this DisplayInteractiveModel.
 java.lang.Object source()
          Returns the source object of this DisplayInteractiveModel (shortcut for controller().{
 
Methods inherited from class gishur.gui2.DisplayInteractiveObject
activate, activate, active, checkActiveElement, createElementTransform, deactivate, elementTransform, refreshPropertyStatus, select, selected, setActiveElement, setSupportActivation, setSupportElementTransform, setSupportSelection, supportActivation, supportElementTransform, supportSelection, unselect
 
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

DisplayInteractiveModel

protected DisplayInteractiveModel(java.lang.String propertyprefix)
Constructs a new DisplayInteractiveModel which uses the specified property prefix for all properties it needs.
Parameters:
propertyprefix - the prefix string for all properties used
Method Detail

source

public java.lang.Object source()
Returns the source object of this DisplayInteractiveModel (shortcut for controller().ModelController.source()).
Overrides:
source in class DisplayInteractiveObject
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 DisplayInteractiveModel with another ModelController.
Parameters:
controller - new ModelController

setSource

public void setSource(java.lang.Object source)
Sets a new source object for this DisplayInteractiveModel. 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 DisplayInteractiveModel as view to an existing ModelController of the source object.
Parameters:
source - new source object (model)