public class Scale extends AnimatedWiredEdit implements GraphicsPanelEdit
RedoName, UndoName| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
endAnimation, getShape, showAnimation, startAnimationgetID, getRecordPlot, setRecordPlotgetFrames, getNextEdit, getParent, getPreviousEdit, redo, setNextEdit, setParent, setPreviousEdit, undodie, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEditclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIDcanRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEditpublic 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)
public WiredEdit copy(RecordPlot plot)
WiredEditprotected Shape[] getShapes(Shape shape, int steps)
AnimatedWiredEditgetShapes in class AnimatedWiredEditpublic Shape createTransformedShape(Component component, Shape shape)
createTransformedShape in class org.freehep.swing.undo.AnimatedEditpublic String getPresentationName()
getPresentationName in interface UndoableEditgetPresentationName in class AbstractUndoableEditpublic String toString()
AnimatedWiredEdittoString in class AnimatedWiredEditpublic boolean addEdit(UndoableEdit edit)
addEdit in interface UndoableEditaddEdit in class AbstractUndoableEditpublic boolean isSupportedBy(GraphicsPanel p)
GraphicsPanelEditisSupportedBy in interface GraphicsPanelEditp - panel by which this edit will be handled.protected void redoEdit()
redoEdit in class org.freehep.swing.undo.AnimatedEditprotected void undoEdit()
undoEdit in class org.freehep.swing.undo.AnimatedEditCopyright © 1996-2014 FreeHEP. All Rights Reserved.