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
public class DefaultShapeFigure extends AbstractShapeFigure
-
-
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
Constructors Constructor Description DefaultShapeFigure()DefaultShapeFigure(Shape shape, Figure.Rank rank, FigureStyle normalStyle)DefaultShapeFigure(Shape shape, Figure.Rank rank, FigureStyle normalStyle, FigureStyle selectedStyle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultShapeFigureclone()ShapegetShape()Gets the shape (geometry) for this figure.voidsetShape(Shape path)Sets the shape (geometry) for this figure.-
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 Detail
-
DefaultShapeFigure
public DefaultShapeFigure()
-
DefaultShapeFigure
public DefaultShapeFigure(Shape shape, Figure.Rank rank, FigureStyle normalStyle)
-
DefaultShapeFigure
public DefaultShapeFigure(Shape shape, Figure.Rank rank, FigureStyle normalStyle, FigureStyle selectedStyle)
-
-
Method Detail
-
getShape
public Shape getShape()
Description copied from interface:ShapeFigureGets the shape (geometry) for this figure.- Returns:
- The shape in model coordinates.
-
setShape
public void setShape(Shape path)
Description copied from interface:ShapeFigureSets the shape (geometry) for this figure.- Parameters:
path- The shape in model coordinates.
-
clone
public DefaultShapeFigure clone()
- Specified by:
clonein interfaceFigure- Overrides:
clonein classAbstractFigure- Returns:
- A clone of this figure.
-
-