hep.wired.edit
Class FitToWindow

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by javax.swing.undo.CompoundEdit
          extended by org.freehep.swing.undo.AnimatedCompoundEdit
              extended by hep.wired.edit.WiredCompoundEdit
                  extended by hep.wired.edit.FitToWindow
All Implemented Interfaces:
GraphicsPanelEdit, Edit, WiredRegistry.ID, Serializable, UndoableEdit, org.freehep.swing.undo.DoableEdit, org.freehep.swing.undo.LinkableEdit

public class FitToWindow
extends WiredCompoundEdit
implements GraphicsPanelEdit

Fits plot to window by translation and scaling. If rotation is available a fit (translate and scale) will also be done perpendicular to the visible plane.

Version:
$Id: FitToWindow.java 8598 2006-08-14 20:38:02Z duns $
Author:
Mark Donszelmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.CompoundEdit
edits
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
FitToWindow()
          Creates a Fit to Window edit.
 
Method Summary
 boolean addEdit(UndoableEdit edit)
           
 WiredCompoundEdit copy(RecordPlot plot)
          Creates a copy of the compound edit and its contained edits.
 boolean isSupportedBy(GraphicsPanel p)
          Returns true if this edit is supported by the given graphics panel.
 
Methods inherited from class hep.wired.edit.WiredCompoundEdit
getID, getRecordPlot, setRecordPlot, toString
 
Methods inherited from class org.freehep.swing.undo.AnimatedCompoundEdit
addEdit, canRedo, canUndo, die, end, getFirstEdit, getLastEdit, getName, getNextEdit, getParent, getPresentationName, getPreviousEdit, getRedoPresentationName, getUndoPresentationName, isInProgress, isSignificant, lastEdit, redo, setNextEdit, setParent, setPreviousEdit, undo
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
replaceEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hep.wired.util.WiredRegistry.ID
getID
 
Methods inherited from interface javax.swing.undo.UndoableEdit
replaceEdit
 

Constructor Detail

FitToWindow

public FitToWindow()
Creates a Fit to Window edit.

Method Detail

copy

public WiredCompoundEdit copy(RecordPlot plot)
Description copied from class: WiredCompoundEdit
Creates a copy of the compound edit and its contained edits. This copy method calls setRecordPlot() on each of them to initialize the recordPlot variable(s).

Overrides:
copy in class WiredCompoundEdit

isSupportedBy

public boolean isSupportedBy(GraphicsPanel p)
Description copied from interface: GraphicsPanelEdit
Returns true if this edit is supported by the given graphics panel.

Specified by:
isSupportedBy in interface GraphicsPanelEdit
Parameters:
p - panel by which this edit will be handled.
Returns:
true if the edit is supported.

addEdit

public boolean addEdit(UndoableEdit edit)
Specified by:
addEdit in interface UndoableEdit
Overrides:
addEdit in class org.freehep.swing.undo.AnimatedCompoundEdit


Copyright © 1996-2013 FreeHEP. All Rights Reserved.