|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.geom.RectangularShape | +--java.awt.geom.Rectangle2D | +--java.awt.Rectangle | +--gishur.gui.Rectangle_Primitive
Achsenparalleles Rechteck.
Inner classes inherited from class java.awt.geom.Rectangle2D |
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
Fields inherited from class java.awt.Rectangle |
height, width, x, y |
Fields inherited from class java.awt.geom.Rectangle2D |
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
Constructor Summary | |
Rectangle_Primitive()
Konstruktoren. |
|
Rectangle_Primitive(int width,
int height)
|
|
Rectangle_Primitive(int x,
int y,
int width,
int height)
|
|
Rectangle_Primitive(java.awt.Rectangle r)
|
Method Summary | |
java.awt.Rectangle |
getBounds()
Liefert das kleinste umschließende (achsenparallele) Rechteck. |
java.awt.Point |
getCenter()
Liefert das Zentrum. |
boolean |
in(int x,
int y)
Liegt der Punkt (x,y) im Primitiv (inkl. |
void |
paint(java.awt.Graphics g)
Malt das Primitiv auf das Graphics g. |
java.lang.String |
toString()
|
Methods inherited from class java.awt.Rectangle |
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, union |
Methods inherited from class java.awt.geom.Rectangle2D |
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
Methods inherited from class java.awt.geom.RectangularShape |
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gishur.gui.GraphicPrimitive |
translate |
Methods inherited from interface java.awt.Shape |
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects |
Constructor Detail |
public Rectangle_Primitive()
public Rectangle_Primitive(int width, int height)
public Rectangle_Primitive(int x, int y, int width, int height)
public Rectangle_Primitive(java.awt.Rectangle r)
Method Detail |
public boolean in(int x, int y)
in
in interface GraphicPrimitive
public java.awt.Rectangle getBounds()
getBounds
in interface GraphicPrimitive
getBounds
in class java.awt.Rectangle
public java.awt.Point getCenter()
getCenter
in interface GraphicPrimitive
gishur.gui.GraphicPrimitive
public void paint(java.awt.Graphics g)
paint
in interface GraphicPrimitive
Graphics,
- auf dem gemalt wird.public java.lang.String toString()
toString
in class java.awt.Rectangle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |