Class ScaleHandle
- java.lang.Object
-
- com.bc.ceres.swing.figure.AbstractFigure
-
- com.bc.ceres.swing.figure.AbstractHandle
-
- com.bc.ceres.swing.figure.support.ScaleHandle
-
- All Implemented Interfaces:
Figure
,Handle
,ShapeFigure
,Restorable
,Cloneable
public class ScaleHandle extends AbstractHandle
AHandle
that can be used to scale figures.- Since:
- Ceres 0.10
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.bc.ceres.swing.figure.Figure
Figure.Rank
-
-
Field Summary
Fields Modifier and Type Field Description static int
E
static int
N
static int
NE
static int
NW
static int
S
static int
SE
static int
SW
static int
W
-
Fields inherited from class com.bc.ceres.swing.figure.AbstractFigure
NO_FIGURES, NO_HANDLES
-
-
Constructor Summary
Constructors Constructor Description ScaleHandle(Figure figure, int type, double dx, double dy, FigureStyle style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cursor
getCursor()
void
move(double dx, double dy)
Moves the figure by the given delta in model coordinates.void
updateLocation()
-
Methods inherited from class com.bc.ceres.swing.figure.AbstractHandle
dispose, draw, drawHandle, getBounds, getFigure, getLocation, getRank, getShape, getX, getY, isCloseTo, isCollection, isSelectable, setLocation, setLocation, setShape
-
Methods inherited from class com.bc.ceres.swing.figure.AbstractFigure
addChangeListener, addFigure, addFigure, addFigureImpl, addFigureImpl, addFigures, addFiguresImpl, addSegment, clone, contains, createHandles, createMemento, createScaleHandles, fireFigureChanged, fireFigureChanged, fireFiguresAdded, fireFiguresRemoved, getChangeListeners, getEffectiveStyle, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getHandleStyle, getMaxSelectionStage, getNormalStyle, getSegment, getSelectedHandleStyle, getSelectedStyle, isSelected, removeAllFigures, removeChangeListener, removeFigure, removeFigureImpl, removeFigures, removeFiguresImpl, removeFiguresImpl, removeSegment, rotate, scale, setMemento, setNormalStyle, setSegment, setSelectable, setSelected, setSelectedStyle
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.bc.ceres.swing.figure.Figure
addChangeListener, addFigure, addFigure, addFigures, addSegment, clone, contains, createHandles, getChangeListeners, getEffectiveStyle, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getMaxSelectionStage, getNormalStyle, getSegment, getSelectedStyle, isSelected, removeAllFigures, removeChangeListener, removeFigure, removeFigures, removeSegment, rotate, scale, setNormalStyle, setSegment, setSelected, setSelectedStyle
-
Methods inherited from interface com.bc.ceres.swing.undo.Restorable
createMemento, setMemento
-
-
-
-
Field Detail
-
E
public static final int E
- See Also:
- Constant Field Values
-
NE
public static final int NE
- See Also:
- Constant Field Values
-
N
public static final int N
- See Also:
- Constant Field Values
-
NW
public static final int NW
- See Also:
- Constant Field Values
-
W
public static final int W
- See Also:
- Constant Field Values
-
SW
public static final int SW
- See Also:
- Constant Field Values
-
S
public static final int S
- See Also:
- Constant Field Values
-
SE
public static final int SE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScaleHandle
public ScaleHandle(Figure figure, int type, double dx, double dy, FigureStyle style)
-
-
Method Detail
-
updateLocation
public void updateLocation()
- Specified by:
updateLocation
in classAbstractHandle
-
move
public void move(double dx, double dy)
Description copied from interface:Figure
Moves the figure by the given delta in model coordinates.- Specified by:
move
in interfaceFigure
- Specified by:
move
in classAbstractHandle
- Parameters:
dx
- Delta X in model coordinates.dy
- Delta Y in model coordinates.
-
getCursor
public Cursor getCursor()
- Specified by:
getCursor
in interfaceHandle
- Overrides:
getCursor
in classAbstractHandle
- Returns:
- The mouse cursor that will appear if users point the mouse over a handle.
-
-