yu.ac.bg.etf.javaqx.qswing.graphics
Interface Shape

All Known Implementing Classes:
CubicCurve, Line, QuadCurve, RectangularShape

public interface Shape

Shape Interface.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Method Summary
 boolean contains(int x, int y)
          Returns true if the specified coordinates lie in the shape.
 Rectangle getBounds()
          Returns a rectangle that completely encloses the shape.
 PathIterator getPathIterator()
          Returns path iterator that traverses the geometry of the Shape.
 

Method Detail

getBounds

public Rectangle getBounds()
Returns a rectangle that completely encloses the shape.

Returns:
a rectangle that completely encloses the shape

getPathIterator

public PathIterator getPathIterator()
Returns path iterator that traverses the geometry of the Shape.

Returns:
path iterator that traverses the geometry of the Shape

contains

public boolean contains(int x,
                        int y)
Returns true if the specified coordinates lie in the shape.

Parameters:
x - the x coordinate
y - the y coordinate
Returns:
true if the specified coordinates lie in the shape


Copyright © 2007 ETF and contributors. All Rights Reserved.