de.uka.algo.algovis3d.quanten
Class ChangeEdgePickInformation

java.lang.Object
  extended by de.uka.algo.algovis3d.quanten.ChangeEdgePickInformation
All Implemented Interfaces:
VisualizationQuantum

public class ChangeEdgePickInformation
extends java.lang.Object
implements VisualizationQuantum

This quantum changes the pick-information of one edge or a set of edges. "Picking" an edge means - in this context - that the user clicks on the cone, that represents the edge.

Author:
ITI, Universitaet Karlsruhe (TH) - Florian Boehl
See Also:
VisualizationQuantum, Graph

Constructor Summary
ChangeEdgePickInformation(edu.uci.ics.jung.graph.Edge edge, java.lang.String information)
          Changes the pick-information of edge to information.
ChangeEdgePickInformation(java.util.Set<edu.uci.ics.jung.graph.Edge> edges, java.lang.String information)
          Changes the pick-information of all edges to information.
 
Method Summary
 void apply(Visualizer visualizer)
          Applies the quantum on the given visualizer and remembers the state of the objects, that were changed.
 void reset()
           
 java.lang.String toString()
           
 void undo(Visualizer visualizer)
          Undoes the changes on the given visualizer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeEdgePickInformation

public ChangeEdgePickInformation(edu.uci.ics.jung.graph.Edge edge,
                                 java.lang.String information)
Changes the pick-information of edge to information.

Parameters:
edge - The target
information - The new pick-information

ChangeEdgePickInformation

public ChangeEdgePickInformation(java.util.Set<edu.uci.ics.jung.graph.Edge> edges,
                                 java.lang.String information)
Changes the pick-information of all edges to information. (If undo() is called on this object, the pick-information of every target edge will be set to its old one).

Parameters:
edges - The targets
information - The new pick-information
Method Detail

apply

public void apply(Visualizer visualizer)
Description copied from interface: VisualizationQuantum
Applies the quantum on the given visualizer and remembers the state of the objects, that were changed.

Specified by:
apply in interface VisualizationQuantum
Parameters:
visualizer - The visualizer object the quantum is applied on.

undo

public void undo(Visualizer visualizer)
Description copied from interface: VisualizationQuantum
Undoes the changes on the given visualizer. That means the during the apply() call remembered state will be restored.

Specified by:
undo in interface VisualizationQuantum
Parameters:
visualizer - The visualizer object the quantum is undone on.

reset

public void reset()
Specified by:
reset in interface VisualizationQuantum

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object