Class GraphLayoutCache.GraphLayoutCacheEdit

java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
org.jgraph.graph.GraphLayoutCache.GraphLayoutCacheEdit
All Implemented Interfaces:
Serializable, UndoableEdit, GraphLayoutCacheEvent.GraphLayoutCacheChange
Enclosing class:
GraphLayoutCache

public class GraphLayoutCache.GraphLayoutCacheEdit extends CompoundEdit implements GraphLayoutCacheEvent.GraphLayoutCacheChange
An implementation of GraphLayoutCacheChange.
See Also:
  • Field Details

    • cells

      protected Object[] cells
    • previousCells

      protected Object[] previousCells
    • context

      protected CellView[] context
    • hidden

      protected CellView[] hidden
    • attributes

      protected Map attributes
    • previousAttributes

      protected Map previousAttributes
    • visible

      protected Object[] visible
    • invisible

      protected Object[] invisible
    • dirtyRegion

      protected Rectangle2D dirtyRegion
      The dirty region associated with this event prior to the change
    • changedCells

      protected Set changedCells
  • Constructor Details

    • GraphLayoutCacheEdit

      public GraphLayoutCacheEdit(Map nested)
      Constructs a GraphViewEdit. This modifies the attributes of the specified views and may be used to notify UndoListeners.
      Parameters:
      nested - the map that defines the new attributes
    • GraphLayoutCacheEdit

      public GraphLayoutCacheEdit(Object[] inserted, Map attributes, Object[] visible, Object[] invisible)
      Constructs a GraphViewEdit. This modifies the attributes of the specified views and may be used to notify UndoListeners. This should also take an array of removed cell views, but it is not possible to add further UndoableEdits to an already executed CompoundEdit, such as a GraphModel change. Thus, to handle implicit changes -- rather than piggybacking on the model's event -- the CompoundEdit's addEdit method should be extended to accept and instantly execute sub- sequent edits (implicit changes to the view, such as removing a mapping, hiding a view or the like).
      Parameters:
      inserted - an array of inserted cells
      attributes - the map that defines the new attributes
      visible - an array defining which cells are visible
      invisible - an array defining which cells are invisible
  • Method Details