com.swfm.mica.editors
Class MiLayerManager

java.lang.Object
  extended bycom.swfm.mica.model.MiModelEntity
      extended bycom.swfm.mica.editors.MiLayerManager
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiModelEntity, MiiModelTypes, MiiPropertyTypes, MiiTypes

public class MiLayerManager
extends MiModelEntity
implements MiiActionHandler, MiiTypes

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
           
Constructor Summary
MiLayerManager(MiEditor editor)
           
 
Method Summary
 void appendNewLayer()
           
 boolean getKeepConnectionsBelowNodes()
          Gets whether the connections are to be drawn before (behind) nodes.
 MiLayerAttributes getLayerAttributes(int index)
           
 boolean processAction(MiiAction action)
          Processes the given action.
 void setKeepConnectionsBelowNodes(boolean flag)
          Sets whether the order of the MiParts in the layers are kept such that MiConnections are at the begining of the list.
 
Methods inherited from class com.swfm.mica.model.MiModelEntity
appendModelChangeHandler, appendModelEntity, appendModelRelation, appendPropertyChangeHandler, copy, copy, createModelEntity, createModelRelation, deepCopy, deepCopy, deleteSelf, dispatchModelChangeEvent, dispatchPropertyChange, dispatchPropertyChangeEvent, dump, dump, equals, equalsProperties, getChild, getChildren, getDefaultPropertyValue, getEditingPermissions, getIgnoreCase, getIndexOfModelEntity, getLocation, getModelChangeHandler, getModelEntities, getModelEntity, getModelEntity, getModelRelations, getName, getNumberOfModelChangeHandlers, getNumberOfModelEntities, getNumberOfPropertyChangeHandlers, getParent, getPropertiesAreOrdered, getPropertyChangeHandler, getPropertyDescriptions, getPropertyNames, getPropertyValue, getTitle, getType, getUserData, hasUserData, insertModelEntity, insertModelRelation, isObservedProperty, isToCopyEntitysRelationsWhenDeepCopyEntity, removeAllModelEntities, removeAllModelRelations, removeAllProperties, removeModelChangeHandler, removeModelEntity, removeModelRelation, removeProperty, removePropertyChangeHandler, removeSelf, replaceSelf, setIgnoreCase, setLocation, setModelChangeEventDispatchingEnabled, setName, setParent, setPropertiesAreOrdered, setPropertiesToDefaultValues, setPropertyChangeEventDispatchingEnabled, setPropertyDescriptions, setPropertyValue, setTitle, setToCopyEntitysRelationsWhenDeepCopyEntity, setType, toString, toString, validateModelEntity, validateModelRelation, validatePropertyValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MiLayerManager

public MiLayerManager(MiEditor editor)
Method Detail

appendNewLayer

public void appendNewLayer()

getLayerAttributes

public MiLayerAttributes getLayerAttributes(int index)

setKeepConnectionsBelowNodes

public void setKeepConnectionsBelowNodes(boolean flag)
Sets whether the order of the MiParts in the layers are kept such that MiConnections are at the begining of the list. This is useful when and one does not want connections to be drawn in front of the nodes.

Parameters:
flag - true if connections to be drawn first
See Also:
MiConnection.setTruncateLineAtEndPointPartBoundries(boolean), MiContainer.setKeepConnectionsBelowNodes(boolean), getKeepConnectionsBelowNodes()

getKeepConnectionsBelowNodes

public boolean getKeepConnectionsBelowNodes()
Gets whether the connections are to be drawn before (behind) nodes.

Returns:
true if connections to be drawn first
See Also:
setKeepConnectionsBelowNodes(boolean), MiContainer.setKeepConnectionsBelowNodes(boolean)

processAction

public boolean processAction(MiiAction action)
Description copied from interface: MiiActionHandler
Processes the given action.

Specified by:
processAction in interface MiiActionHandler
Overrides:
processAction in class MiModelEntity