net.sourceforge.toscanaj.controller.fca
Class DiagramReference

java.lang.Object
  extended bynet.sourceforge.toscanaj.controller.fca.DiagramReference

public class DiagramReference
extends java.lang.Object

Used to store references to diagrams, including the concept used for filtering in past diagrams. Beneath adding the concept reference (which is null for current and future diagrams) this gives the references identity, otherwise we would get problems in adding a diagram twice to the history.


Constructor Summary
DiagramReference(Diagram2D diagram, Concept filterConcept)
          Initialises a new reference.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 Diagram2D getDiagram()
          Returns the diagram we refer to.
 Concept getFilterConcept()
          Returns the concept used as filter (null for current and future diagrams).
 int hashCode()
           
 void setFilterConcept(Concept filterConcept)
           
 java.lang.String toString()
          Returns the diagram title for usage in a view.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiagramReference

public DiagramReference(Diagram2D diagram,
                        Concept filterConcept)
Initialises a new reference.

Method Detail

getDiagram

public Diagram2D getDiagram()
Returns the diagram we refer to.


getFilterConcept

public Concept getFilterConcept()
Returns the concept used as filter (null for current and future diagrams).


setFilterConcept

public void setFilterConcept(Concept filterConcept)

toString

public java.lang.String toString()
Returns the diagram title for usage in a view.


equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()


The ToscanaJ project