yu.ac.bg.etf.javaqx.qswing.graphics
Class RectangularShape

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.graphics.RectangularShape
All Implemented Interfaces:
Shape
Direct Known Subclasses:
Ellipse, Rectangle, RoundRectangle

public abstract class RectangularShape
extends java.lang.Object
implements Shape

Abstract Rectangular Shape.

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

Constructor Summary
RectangularShape()
           
 
Method Summary
 Rectangle getBounds()
          Returns a rectangle that completely encloses the shape.
abstract  int getHeight()
          Returns the height of the framing rectangle.
abstract  int getWidth()
          Returns the width of the framing rectangle.
abstract  int getX()
          Returns the x coordinate of the framing rectangle.
abstract  int getY()
          Returns the y coordinate of the framing rectangle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface yu.ac.bg.etf.javaqx.qswing.graphics.Shape
contains, getPathIterator
 

Constructor Detail

RectangularShape

public RectangularShape()
Method Detail

getX

public abstract int getX()
Returns the x coordinate of the framing rectangle.

Returns:
the x coordinate of the framing rectangle

getY

public abstract int getY()
Returns the y coordinate of the framing rectangle.

Returns:
the y coordinate of the framing rectangle

getWidth

public abstract int getWidth()
Returns the width of the framing rectangle.

Returns:
the width of the framing rectangle

getHeight

public abstract int getHeight()
Returns the height of the framing rectangle.

Returns:
the height of the framing rectangle

getBounds

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

Specified by:
getBounds in interface Shape
Returns:
a rectangle that completely encloses the shape


Copyright © 2007 ETF and contributors. All Rights Reserved.