public class PointFigure extends AbstractAttributedFigure
| Modifier and Type | Field and Description |
|---|---|
protected Rectangle2D.Double |
bounds |
changingDepth, listenerListpropertySupportCONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY| Constructor and Description |
|---|
PointFigure() |
PointFigure(double[] pt) |
PointFigure(List<double[]> pts) |
| Modifier and Type | Method and Description |
|---|---|
PointFigure |
clone() |
boolean |
contains(Point2D.Double p)
Checks if a Point2D.Double is near any point contained in the figure
|
List<Handle> |
createHandles(int detailLevel) |
void |
draw(Graphics2D g) |
protected void |
drawFill(Graphics2D g) |
protected void |
drawStroke(Graphics2D g) |
Rectangle2D.Double |
getBounds() |
Rectangle2D.Double |
getDrawingArea() |
List<double[]> |
getPoints() |
Object |
getTransformRestoreData() |
double |
getX() |
double |
getY() |
void |
move(double dx,
double dy) |
void |
restoreTransformTo(Object geometry) |
void |
setBounds(Point2D.Double anchor,
Point2D.Double lead) |
void |
setFillColor(ColorRGB c) |
void |
setLineColor(ColorRGB c) |
void |
setPoints(List<double[]> pts) |
void |
transform(AffineTransform tx)
Moves the Figure to a new location.
|
applyAttributesTo, drawText, get, getAttributeKey, getAttributes, getAttributesRestoreData, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, read, readAttributes, removeAttribute, restoreAttributesTo, set, setAttributeEnabled, setAttributes, write, writeAttributesaddFigureListener, addNotify, changed, findCompatibleConnector, findConnector, findFigureInside, fireAreaInvalidated, fireAreaInvalidated, fireAreaInvalidated, fireAttributeChanged, fireFigureAdded, fireFigureChanged, fireFigureChanged, fireFigureChanged, fireFigureHandlesChanged, fireFigureRemoved, fireFigureRequestRemove, fireUndoableEditHappened, getActions, getChangingDepth, getConnectors, getCursor, getDecomposition, getDrawing, getEndPoint, getFontRenderContext, getLayer, getLock, getPreferredSize, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, invalidate, isChanging, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, removeNotify, requestRemove, setBounds, setConnectable, setRemovable, setSelectable, setTransformable, setVisible, toString, validate, willChangeaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, removePropertyChangeListenerprotected Rectangle2D.Double bounds
public PointFigure()
public PointFigure(double[] pt)
public PointFigure(List<double[]> pts)
public void setPoints(List<double[]> pts)
public void setFillColor(ColorRGB c)
public void setLineColor(ColorRGB c)
public double getX()
public double getY()
public List<double[]> getPoints()
public void move(double dx,
double dy)
protected void drawFill(Graphics2D g)
drawFill in class AbstractAttributedFigureprotected void drawStroke(Graphics2D g)
drawStroke in class AbstractAttributedFigurepublic Rectangle2D.Double getBounds()
public Rectangle2D.Double getDrawingArea()
getDrawingArea in interface FiguregetDrawingArea in class AbstractAttributedFigurepublic boolean contains(Point2D.Double p)
public void setBounds(Point2D.Double anchor, Point2D.Double lead)
setBounds in interface FiguresetBounds in class AbstractFigurepublic void transform(AffineTransform tx)
tx - the transformation matrix.public void restoreTransformTo(Object geometry)
public Object getTransformRestoreData()
public PointFigure clone()
clone in interface Figureclone in class AbstractAttributedFigurepublic List<Handle> createHandles(int detailLevel)
createHandles in interface FigurecreateHandles in class AbstractFigurepublic void draw(Graphics2D g)
draw in interface Figuredraw in class AbstractAttributedFigureCopyright © 2014–2022 ImageJ. All rights reserved.