Package com.bc.ceres.swing.figure
Interface PointFigure
-
- All Superinterfaces:
Cloneable
,Figure
,Restorable
- All Known Implementing Classes:
AbstractPointFigure
,DefaultPointFigure
public interface PointFigure extends Figure
A point figure.Clients should not implement this interface directly, because it may change in the future. Instead they should derive their
Figure
implementation fromAbstractPointFigure
.- Since:
- Ceres 0.10
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.bc.ceres.swing.figure.Figure
Figure.Rank
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Point2D
getLocation()
Symbol
getSymbol()
double
getX()
double
getY()
void
setLocation(Point2D location)
-
Methods inherited from interface com.bc.ceres.swing.figure.Figure
addChangeListener, addFigure, addFigure, addFigures, addSegment, clone, contains, createHandles, dispose, draw, getBounds, getChangeListeners, getEffectiveStyle, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getMaxSelectionStage, getNormalStyle, getRank, getSegment, getSelectedStyle, isCloseTo, isCollection, isSelectable, isSelected, move, removeAllFigures, removeChangeListener, removeFigure, removeFigures, removeSegment, rotate, scale, setNormalStyle, setSegment, setSelected, setSelectedStyle
-
Methods inherited from interface com.bc.ceres.swing.undo.Restorable
createMemento, setMemento
-
-
-
-
Method Detail
-
getX
double getX()
- Returns:
- The X-coordinate of the current location in model coordinates.
-
getY
double getY()
- Returns:
- The Y-coordinate of the current location in model coordinates.
-
getLocation
Point2D getLocation()
- Returns:
- The current location in model coordinates.
-
setLocation
void setLocation(Point2D location)
- Parameters:
location
- The current location in model coordinates.
-
getSymbol
Symbol getSymbol()
- Returns:
- The symbol that is used to represent the figure.
-
-