|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.RectangularShape
com.approximatrix.charting.render.shape.Diamond2D
public class Diamond2D
This class implements a diamond like Shape object.
| Field Summary | |
|---|---|
protected double |
height
|
protected double |
width
|
protected double |
x
|
protected double |
y
|
| Constructor Summary | |
|---|---|
Diamond2D(double x,
double y,
double width,
double height)
Creates a Diamond shape with the specified coordinates. |
|
| Method Summary | |
|---|---|
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double w,
double h)
|
java.awt.geom.Rectangle2D |
getBounds2D()
|
double |
getHeight()
Returns the height. |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
Returns the object's PathIterator. |
double |
getWidth()
Returns the width. |
double |
getX()
Returns the x-coordinate. |
double |
getY()
Returns the y-coordinate. |
boolean |
intersects(double x,
double y,
double w,
double h)
|
boolean |
isEmpty()
Returns true if the bounding box is empty. |
void |
setFrame(double x,
double y,
double width,
double height)
Sets the framing rectangle. |
| Methods inherited from class java.awt.geom.RectangularShape |
|---|
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double x
protected double y
protected double width
protected double height
| Constructor Detail |
|---|
public Diamond2D(double x,
double y,
double width,
double height)
| Method Detail |
|---|
public double getHeight()
getHeight in class java.awt.geom.RectangularShapepublic double getWidth()
getWidth in class java.awt.geom.RectangularShapepublic double getX()
getX in class java.awt.geom.RectangularShapepublic double getY()
getY in class java.awt.geom.RectangularShapepublic boolean isEmpty()
isEmpty in class java.awt.geom.RectangularShape
public void setFrame(double x,
double y,
double width,
double height)
setFrame in class java.awt.geom.RectangularShapepublic java.awt.geom.Rectangle2D getBounds2D()
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
public boolean contains(double x,
double y,
double w,
double h)
public boolean contains(double x,
double y)
public boolean intersects(double x,
double y,
double w,
double h)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||