Modifier and Type | Class and Description |
---|---|
static class |
JAVAGeneralPath.ClosePath |
static class |
JAVAGeneralPath.CurveTo |
static class |
JAVAGeneralPath.LineTo |
static class |
JAVAGeneralPath.MoveTo |
static class |
JAVAGeneralPath.PathElement |
static class |
JAVAGeneralPath.Point |
static class |
JAVAGeneralPath.QuadTo |
Constructor and Description |
---|
JAVAGeneralPath(int rule,
JAVAGeneralPath.PathElement[] path) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double x,
double y) |
boolean |
contains(double x,
double y,
double w,
double h) |
boolean |
contains(Point2D p) |
boolean |
contains(Rectangle2D r) |
Rectangle |
getBounds() |
Rectangle2D |
getBounds2D() |
PathIterator |
getPathIterator(AffineTransform at) |
PathIterator |
getPathIterator(AffineTransform at,
double flatness) |
boolean |
intersects(double x,
double y,
double w,
double h) |
boolean |
intersects(Rectangle2D r) |
public JAVAGeneralPath(int rule, JAVAGeneralPath.PathElement[] path)
public Rectangle2D getBounds2D()
getBounds2D
in interface Shape
public boolean intersects(double x, double y, double w, double h)
intersects
in interface Shape
public boolean intersects(Rectangle2D r)
intersects
in interface Shape
public boolean contains(double x, double y, double w, double h)
public boolean contains(Rectangle2D r)
public PathIterator getPathIterator(AffineTransform at)
getPathIterator
in interface Shape
public PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator
in interface Shape
Copyright © 2014. All rights reserved.