public class PointFigure extends AbstractAttributedFigure
Modifier and Type | Field and Description |
---|---|
protected Rectangle2D.Double |
bounds |
changingDepth, listenerList
propertySupport
CONNECTABLE_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, writeAttributes
addFigureListener, 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, willChange
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
protected 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 AbstractAttributedFigure
protected void drawStroke(Graphics2D g)
drawStroke
in class AbstractAttributedFigure
public Rectangle2D.Double getBounds()
public Rectangle2D.Double getDrawingArea()
getDrawingArea
in interface Figure
getDrawingArea
in class AbstractAttributedFigure
public boolean contains(Point2D.Double p)
public void setBounds(Point2D.Double anchor, Point2D.Double lead)
setBounds
in interface Figure
setBounds
in class AbstractFigure
public void transform(AffineTransform tx)
tx
- the transformation matrix.public void restoreTransformTo(Object geometry)
public Object getTransformRestoreData()
public PointFigure clone()
clone
in interface Figure
clone
in class AbstractAttributedFigure
public List<Handle> createHandles(int detailLevel)
createHandles
in interface Figure
createHandles
in class AbstractFigure
public void draw(Graphics2D g)
draw
in interface Figure
draw
in class AbstractAttributedFigure
Copyright © 2014–2022 ImageJ. All rights reserved.