Modifier and Type | Method and Description |
---|---|
boolean |
contains(int x,
int y)
Check if the specified coordinates are inside the shape.
|
boolean |
contains(int x,
int y,
int w,
int h)
Check if the specified coordinates are inside the shape.
|
Rectangle |
getBounds() |
Shape |
translate(int tx,
int ty)
Translate the shape into another one.
|
Rectangle getBounds()
Shape translate(int tx, int ty)
tx
- the distance by which coordinates are translated in the
X axis directionty
- the distance by which coordinates are translated in the
Y axis directionboolean contains(int x, int y)
x
- The horizontal coordinate.y
- The vertical coordinate.true
if the point is inside the shape. false
otherwise.boolean contains(int x, int y, int w, int h)
x
- The horizontal coordinate.y
- The vertical coordinate.w
- The width.h
- The height.true
if the point is inside the shape. false
otherwise.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.