public class GeneralPathFigure extends AbstractAttributedFigure
BezierFigure
s.
The described figures are always winding rule even/odd.changingDepth, listenerList
propertySupport
CONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY
Constructor and Description |
---|
GeneralPathFigure(BezierFigure... list) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Point2D.Double point) |
Collection<Handle> |
createHandles(int detailLevel) |
protected void |
drawFill(Graphics2D g) |
protected void |
drawStroke(Graphics2D g) |
Rectangle2D.Double |
getBounds() |
GeneralPath |
getGeneralPath() |
Object |
getTransformRestoreData() |
void |
invalidate() |
void |
restoreAttributesTo(Object restoreData) |
void |
restoreTransformTo(Object geometry) |
<T> void |
set(AttributeKey<T> key,
T newValue)
Sets an attribute of the figure.
|
void |
setAttributeEnabled(AttributeKey key,
boolean b) |
void |
setAttributes(Map<AttributeKey,Object> map) |
void |
setGeneralPath(GeneralPath path) |
void |
transform(AffineTransform tx) |
applyAttributesTo, clone, draw, drawText, get, getAttributeKey, getAttributes, getAttributesRestoreData, getDrawingArea, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, read, readAttributes, removeAttribute, 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, isChanging, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, removeNotify, requestRemove, setBounds, 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
public GeneralPathFigure(BezierFigure... list)
public boolean contains(Point2D.Double point)
public Rectangle2D.Double getBounds()
public Object getTransformRestoreData()
public void restoreTransformTo(Object geometry)
public void transform(AffineTransform tx)
protected void drawFill(Graphics2D g)
drawFill
in class AbstractAttributedFigure
protected void drawStroke(Graphics2D g)
drawStroke
in class AbstractAttributedFigure
public Collection<Handle> createHandles(int detailLevel)
createHandles
in interface Figure
createHandles
in class AbstractFigure
public void invalidate()
invalidate
in class AbstractFigure
public void setAttributeEnabled(AttributeKey key, boolean b)
setAttributeEnabled
in class AbstractAttributedFigure
public void setAttributes(Map<AttributeKey,Object> map)
setAttributes
in class AbstractAttributedFigure
public void restoreAttributesTo(Object restoreData)
restoreAttributesTo
in interface Figure
restoreAttributesTo
in class AbstractAttributedFigure
public <T> void set(AttributeKey<T> key, T newValue)
set
in interface Figure
set
in class AbstractAttributedFigure
public void setGeneralPath(GeneralPath path)
public GeneralPath getGeneralPath()
Copyright © 2014–2022 ImageJ. All rights reserved.