performancemonster.graph
Class GraphModel

java.lang.Object
  extended by performancemonster.graph.GraphModel

public class GraphModel
extends java.lang.Object


Constructor Summary
GraphModel()
           
 
Method Summary
 void addChangeListener(GraphModelChangeListener listener)
           
 void addFocusListener(GraphModelFocusListener listener)
           
 void clear()
           
 java.util.Set<GraphElement> getElements()
           
 java.util.Set<java.lang.Long> getElementsInFocus()
          Gives a list of IDs for elements in focus.
 void putElement(GraphElement element)
           
 void removeChangeListener(GraphModelChangeListener listener)
           
 void removeFocusListener(GraphModelFocusListener listener)
           
 void replaceElement(GraphElement oldElement, GraphElement newElement)
           
 void setElementsInFocus(java.util.Set<java.lang.Long> elementsInFocus)
          Specifies the IDs for the elements in focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphModel

public GraphModel()
Method Detail

clear

public void clear()

putElement

public void putElement(GraphElement element)

replaceElement

public void replaceElement(GraphElement oldElement,
                           GraphElement newElement)

getElements

public java.util.Set<GraphElement> getElements()

addFocusListener

public void addFocusListener(GraphModelFocusListener listener)

removeFocusListener

public void removeFocusListener(GraphModelFocusListener listener)

addChangeListener

public void addChangeListener(GraphModelChangeListener listener)

removeChangeListener

public void removeChangeListener(GraphModelChangeListener listener)

setElementsInFocus

public void setElementsInFocus(java.util.Set<java.lang.Long> elementsInFocus)
Specifies the IDs for the elements in focus. It is up to each view of the GraphModel to interpret what it means for an element to be "in focus", e.g. painting the elements in a specific color.


getElementsInFocus

public java.util.Set<java.lang.Long> getElementsInFocus()
Gives a list of IDs for elements in focus. It is up to each view of the GraphModel to interpret what it means for an element to be "in focus", e.g. painting the elements in a specific color.



Copyright © 2005 Ole Friis. All Rights Reserved.