Class VertexHandle
java.lang.Object
com.bc.ceres.swing.figure.AbstractFigure
com.bc.ceres.swing.figure.AbstractHandle
com.bc.ceres.swing.figure.support.VertexHandle
- All Implemented Interfaces:
Figure,Handle,ShapeFigure,Restorable,Cloneable
A
Handle that can be used to change vertex positions.- Since:
- Ceres 0.10
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.bc.ceres.swing.figure.Figure
Figure.Rank -
Field Summary
Fields inherited from class com.bc.ceres.swing.figure.AbstractFigure
NO_FIGURES, NO_HANDLES -
Constructor Summary
ConstructorsConstructorDescriptionVertexHandle(Figure figure, int vertexIndex, FigureStyle normalStyle, FigureStyle selectedStyle) -
Method Summary
Modifier and TypeMethodDescriptionintvoidmove(double dx, double dy) Moves the figure by the given delta in model coordinates.voidsetSegmentIndex(int segmentIndex) voidMethods inherited from class com.bc.ceres.swing.figure.AbstractHandle
dispose, draw, drawHandle, getBounds, getCursor, getFigure, getLocation, getRank, getShape, getX, getY, isCloseTo, isCollection, isSelectable, setLocation, setLocation, setShapeMethods 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, setSelectedStyleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, setSelectedStyleMethods inherited from interface com.bc.ceres.swing.undo.Restorable
createMemento, setMemento
-
Constructor Details
-
VertexHandle
public VertexHandle(Figure figure, int vertexIndex, FigureStyle normalStyle, FigureStyle selectedStyle)
-
-
Method Details
-
getSegmentIndex
public int getSegmentIndex() -
setSegmentIndex
public void setSegmentIndex(int segmentIndex) -
updateLocation
public void updateLocation()- Specified by:
updateLocationin classAbstractHandle
-
move
public void move(double dx, double dy) Description copied from interface:FigureMoves the figure by the given delta in model coordinates.- Specified by:
movein interfaceFigure- Specified by:
movein classAbstractHandle- Parameters:
dx- Delta X in model coordinates.dy- Delta Y in model coordinates.
-