Package com.bc.ceres.swing.figure
Interface PointFigure
- All Superinterfaces:
Cloneable
,Figure
,Restorable
- All Known Implementing Classes:
AbstractPointFigure
,DefaultPointFigure
A point figure.
Clients should not implement this interface directly, because it may change in the future.
Instead they should derive their Figure
implementation from AbstractPointFigure
.
- Since:
- Ceres 0.10
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.bc.ceres.swing.figure.Figure
Figure.Rank
-
Method Summary
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 Details
-
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
- Parameters:
location
- The current location in model coordinates.
-
getSymbol
Symbol getSymbol()- Returns:
- The symbol that is used to represent the figure.
-