org.kahina.core.visual.tree
Class KahinaLayeredTreeView

java.lang.Object
  extended by org.kahina.core.visual.KahinaView<KahinaTree>
      extended by org.kahina.core.visual.tree.KahinaAbstractTreeView
          extended by org.kahina.core.visual.tree.KahinaLayeredTreeView
All Implemented Interfaces:
KahinaListener

public class KahinaLayeredTreeView
extends KahinaAbstractTreeView


Field Summary
 
Fields inherited from class org.kahina.core.visual.KahinaView
config, model
 
Constructor Summary
KahinaLayeredTreeView(boolean displaySecondDimensionInTopLayer, KahinaController control, int... layers)
           
KahinaLayeredTreeView(KahinaController control, int... layers)
           
 
Method Summary
 void displaySecondaryTree(KahinaTree treeModel)
           
 void doDisplay()
          Subclasses may override this method to take certain actions directly after KahinaView.model has changed.
 KahinaTreeViewConfiguration getConfig()
           
 KahinaTree getModel()
           
 KahinaTree getSecondaryModel()
           
 KahinaTreeView getView(int index)
           
protected  void processEvent(KahinaUpdateEvent e)
           
 void selectStep(int stepID)
           
 void setConfig(KahinaViewConfiguration config)
           
 void setStatusColorEncoding(int status, Color color)
           
 JComponent wrapInPanel(KahinaController control)
          Returns the panel that represents this view in the GUI.
 
Methods inherited from class org.kahina.core.visual.KahinaView
display, getTitle, processEvent, recalculate, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KahinaLayeredTreeView

public KahinaLayeredTreeView(KahinaController control,
                             int... layers)

KahinaLayeredTreeView

public KahinaLayeredTreeView(boolean displaySecondDimensionInTopLayer,
                             KahinaController control,
                             int... layers)
Method Detail

doDisplay

public void doDisplay()
Description copied from class: KahinaView
Subclasses may override this method to take certain actions directly after KahinaView.model has changed. This default implementation does nothing.

Overrides:
doDisplay in class KahinaView<KahinaTree>

displaySecondaryTree

public void displaySecondaryTree(KahinaTree treeModel)
Specified by:
displaySecondaryTree in class KahinaAbstractTreeView

getModel

public KahinaTree getModel()
Overrides:
getModel in class KahinaView<KahinaTree>

getSecondaryModel

public KahinaTree getSecondaryModel()
Specified by:
getSecondaryModel in class KahinaAbstractTreeView

wrapInPanel

public JComponent wrapInPanel(KahinaController control)
Description copied from class: KahinaView
Returns the panel that represents this view in the GUI. This method must be invoked from the event dispatch thread.

Specified by:
wrapInPanel in class KahinaView<KahinaTree>
Returns:

getView

public KahinaTreeView getView(int index)

setStatusColorEncoding

public void setStatusColorEncoding(int status,
                                   Color color)
Specified by:
setStatusColorEncoding in class KahinaAbstractTreeView

selectStep

public void selectStep(int stepID)

processEvent

protected void processEvent(KahinaUpdateEvent e)
Overrides:
processEvent in class KahinaView<KahinaTree>

getConfig

public KahinaTreeViewConfiguration getConfig()
Overrides:
getConfig in class KahinaView<KahinaTree>

setConfig

public void setConfig(KahinaViewConfiguration config)
Overrides:
setConfig in class KahinaView<KahinaTree>