Class DefaultShapeFigure
java.lang.Object
com.bc.ceres.swing.figure.AbstractFigure
com.bc.ceres.swing.figure.AbstractShapeFigure
com.bc.ceres.swing.figure.support.DefaultShapeFigure
- All Implemented Interfaces:
Figure
,ShapeFigure
,Restorable
,Cloneable
-
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
ConstructorsConstructorDescriptionDefaultShapeFigure
(Shape shape, Figure.Rank rank, FigureStyle normalStyle) DefaultShapeFigure
(Shape shape, Figure.Rank rank, FigureStyle normalStyle, FigureStyle selectedStyle) -
Method Summary
Methods inherited from class com.bc.ceres.swing.figure.AbstractShapeFigure
addSegment, createHandles, createMemento, draw, drawShape, getBounds, getMaxSelectionStage, getRank, getSegment, isCloseTo, isCollection, move, removeSegment, rotate, scale, setMemento, setRank, setSegment
Methods inherited from class com.bc.ceres.swing.figure.AbstractFigure
addChangeListener, addFigure, addFigure, addFigureImpl, addFigureImpl, addFigures, addFiguresImpl, contains, createScaleHandles, dispose, fireFigureChanged, fireFigureChanged, fireFiguresAdded, fireFiguresRemoved, getChangeListeners, getEffectiveStyle, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getHandleStyle, getNormalStyle, getSelectedHandleStyle, getSelectedStyle, isSelectable, isSelected, removeAllFigures, removeChangeListener, removeFigure, removeFigureImpl, removeFigures, removeFiguresImpl, removeFiguresImpl, setNormalStyle, 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, contains, dispose, getChangeListeners, getEffectiveStyle, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getNormalStyle, getSelectedStyle, isSelectable, isSelected, removeAllFigures, removeChangeListener, removeFigure, removeFigures, setNormalStyle, setSelected, setSelectedStyle
-
Constructor Details
-
DefaultShapeFigure
public DefaultShapeFigure() -
DefaultShapeFigure
-
DefaultShapeFigure
public DefaultShapeFigure(Shape shape, Figure.Rank rank, FigureStyle normalStyle, FigureStyle selectedStyle)
-
-
Method Details
-
getShape
Description copied from interface:ShapeFigure
Gets the shape (geometry) for this figure.- Returns:
- The shape in model coordinates.
-
setShape
Description copied from interface:ShapeFigure
Sets the shape (geometry) for this figure.- Parameters:
path
- The shape in model coordinates.
-
clone
- Specified by:
clone
in interfaceFigure
- Overrides:
clone
in classAbstractFigure
- Returns:
- A clone of this figure.
-