|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
org.freehep.swing.undo.AbstractDoableEdit
org.freehep.swing.undo.AnimatedEdit
hep.wired.edit.WiredEdit
hep.wired.edit.AnimatedWiredEdit
hep.wired.edit.Scale
public class Scale
Scales a plot in 2D or 3D.
Field Summary |
---|
Fields inherited from class hep.wired.edit.WiredEdit |
---|
format |
Fields inherited from class org.freehep.swing.undo.AbstractDoableEdit |
---|
firstTimeDone |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
RedoName, UndoName |
Constructor Summary | |
---|---|
Scale()
Creates a scale edit with no scaling done. |
|
Scale(double s)
Creates a scale edit with uniform given scale factor. |
|
Scale(double sx,
double sy)
Creates a scale edit with given scale factors. |
|
Scale(double sx,
double sy,
double sz)
Creates a scale edit with given scale factors. |
|
Scale(double sx,
double sy,
double sz,
Shape shape,
int frames)
Creates a scale edit with given scale factor, animation shape and number of frames. |
Method Summary | |
---|---|
boolean |
addEdit(UndoableEdit edit)
|
WiredEdit |
copy(RecordPlot plot)
Creates a copy of the edit which is attached to the plot, and thus can be (re/un)done. |
Shape |
createTransformedShape(Component component,
Shape shape)
|
String |
getPresentationName()
|
protected Shape[] |
getShapes(Shape shape,
int steps)
Returns an array of 'frames' shapes deformed from the given initial shape. |
boolean |
isSupportedBy(GraphicsPanel p)
Returns true if this edit is supported by the given graphics panel. |
protected void |
redoEdit()
|
String |
toString()
Returns a string representation of the edit. |
protected void |
undoEdit()
|
Methods inherited from class hep.wired.edit.AnimatedWiredEdit |
---|
endAnimation, getShape, showAnimation, startAnimation |
Methods inherited from class hep.wired.edit.WiredEdit |
---|
getID, getRecordPlot, setRecordPlot |
Methods inherited from class org.freehep.swing.undo.AnimatedEdit |
---|
getFrames, getNextEdit, getParent, getPreviousEdit, redo, setNextEdit, setParent, setPreviousEdit, undo |
Methods inherited from class org.freehep.swing.undo.AbstractDoableEdit |
---|
canRedo, canUndo |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
die, getRedoPresentationName, getUndoPresentationName, isSignificant, 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 |
---|
canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit |
Constructor Detail |
---|
public Scale()
public Scale(double s)
public Scale(double sx, double sy)
public Scale(double sx, double sy, double sz)
public Scale(double sx, double sy, double sz, Shape shape, int frames)
Method Detail |
---|
public WiredEdit copy(RecordPlot plot)
WiredEdit
copy
in class WiredEdit
protected Shape[] getShapes(Shape shape, int steps)
AnimatedWiredEdit
getShapes
in class AnimatedWiredEdit
public Shape createTransformedShape(Component component, Shape shape)
createTransformedShape
in class org.freehep.swing.undo.AnimatedEdit
public String getPresentationName()
getPresentationName
in interface UndoableEdit
getPresentationName
in class AbstractUndoableEdit
public String toString()
AnimatedWiredEdit
toString
in class AnimatedWiredEdit
public boolean addEdit(UndoableEdit edit)
addEdit
in interface UndoableEdit
addEdit
in class AbstractUndoableEdit
public boolean isSupportedBy(GraphicsPanel p)
GraphicsPanelEdit
isSupportedBy
in interface GraphicsPanelEdit
p
- panel by which this edit will be handled.
protected void redoEdit()
redoEdit
in class org.freehep.swing.undo.AnimatedEdit
protected void undoEdit()
undoEdit
in class org.freehep.swing.undo.AnimatedEdit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |