Modifier | Constructor and Description |
---|---|
protected |
RectangularShape() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
contains(Point2D point) |
boolean |
contains(Rectangle2D rect) |
Rectangle |
getBounds() |
double |
getCenterX() |
double |
getCenterY() |
Rectangle2D |
getFrame() |
abstract double |
getHeight() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinX() |
double |
getMinY() |
PathIterator |
getPathIterator(AffineTransform t, double flatness) |
abstract double |
getWidth() |
abstract double |
getX() |
abstract double |
getY() |
boolean |
intersects(Rectangle2D rect) |
abstract boolean |
isEmpty() |
abstract void |
setFrame(double x, double y, double w, double h) |
void |
setFrame(Point2D loc, Dimension2D size) |
void |
setFrame(Rectangle2D r) |
void |
setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY) |
void |
setFrameFromCenter(Point2D center, Point2D corner) |
void |
setFrameFromDiagonal(double x1, double y1, double x2, double y2) |
void |
setFrameFromDiagonal(Point2D p1, Point2D p2) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, contains, getBounds2D, getPathIterator, intersects
public abstract double getX()
public abstract double getY()
public abstract double getWidth()
public abstract double getHeight()
public abstract boolean isEmpty()
public abstract void setFrame(double x, double y, double w, double h)
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public double getCenterX()
public double getCenterY()
public Rectangle2D getFrame()
public void setFrame(Point2D loc, Dimension2D size)
public void setFrame(Rectangle2D r)
public void setFrameFromDiagonal(double x1, double y1, double x2, double y2)
public void setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY)
public boolean intersects(Rectangle2D rect)
intersects
in interface Shape
public boolean contains(Rectangle2D rect)
public PathIterator getPathIterator(AffineTransform t, double flatness)
getPathIterator
in interface Shape
Copyright © 1998–2022. All rights reserved.