Class DefaultPointFigure
java.lang.Object
com.bc.ceres.swing.figure.AbstractFigure
com.bc.ceres.swing.figure.AbstractPointFigure
com.bc.ceres.swing.figure.support.DefaultPointFigure
- All Implemented Interfaces:
Figure,PointFigure,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
ConstructorsConstructorDescriptionDefaultPointFigure(Point2D location, double radius) DefaultPointFigure(Point2D location, double radius, FigureStyle style) DefaultPointFigure(Point2D location, double radius, FigureStyle normalStyle, FigureStyle selectedStyle) -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetX()doublegetY()voidsetLocation(double x, double y) Methods inherited from class com.bc.ceres.swing.figure.AbstractPointFigure
draw, drawPoint, getBounds, getEffectiveStyle, getLocation, getRank, getSymbol, isCloseTo, isCollection, move, rotate, scale, setLocationMethods inherited from class com.bc.ceres.swing.figure.AbstractFigure
addChangeListener, addFigure, addFigure, addFigureImpl, addFigureImpl, addFigures, addFiguresImpl, addSegment, clone, contains, createHandles, createMemento, createScaleHandles, dispose, fireFigureChanged, fireFigureChanged, fireFiguresAdded, fireFiguresRemoved, getChangeListeners, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getHandleStyle, getMaxSelectionStage, getNormalStyle, getSegment, getSelectedHandleStyle, getSelectedStyle, isSelectable, isSelected, removeAllFigures, removeChangeListener, removeFigure, removeFigureImpl, removeFigures, removeFiguresImpl, removeFiguresImpl, removeSegment, 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, dispose, getChangeListeners, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getMaxSelectionStage, getNormalStyle, getSegment, getSelectedStyle, isSelectable, isSelected, removeAllFigures, removeChangeListener, removeFigure, removeFigures, removeSegment, setNormalStyle, setSegment, setSelected, setSelectedStyleMethods inherited from interface com.bc.ceres.swing.undo.Restorable
createMemento, setMemento
-
Constructor Details
-
DefaultPointFigure
-
DefaultPointFigure
-
DefaultPointFigure
public DefaultPointFigure(Point2D location, double radius, FigureStyle normalStyle, FigureStyle selectedStyle)
-
-
Method Details
-
getX
public double getX()- Returns:
- The X-coordinate of the current location in model coordinates.
-
getY
public double getY()- Returns:
- The Y-coordinate of the current location in model coordinates.
-
getRadius
public double getRadius()- Specified by:
getRadiusin classAbstractPointFigure- Returns:
- The point radius in model coordinates.
-
setLocation
public void setLocation(double x, double y) - Specified by:
setLocationin classAbstractPointFigure
-