Class G3DRect

GObject
   extended by GFillableObject
      extended by GRect
         extended by G3DRect

The G3DRect class is a GRect subclass whose borders can be modified to suggest being raised or lowered. Note: The G3DRect class is not yet implemented.


Constructor Summary
G3DRect(x, y)
Creates a new 3-D rectangle with the specified width and height.
G3DRect(x, y, width, height)
Creates a new 3-D rectangle with the specified bounds.
 
Method Summary
isRaised()
Returns True if the G3DRect is raised.
setRaised(raised)
Sets the raised state for the G3DRect.
 
Inherited Method Summary
contains(x, y)
Checks to see whether a point is inside the object.
getBounds()
Returns the bounding box for this object.
getColor()
Returns the color used to display this object.
getFillColor()
Returns the color used to display the filled region of this object.
getHeight()
Returns the height of this object, which is defined to be the height of the bounding box.
getLocation()
Returns the location of this object as a GPoint.
getSize()
Returns the size of the bounding box for this object.
getWidth()
Returns the width of this object, which is defined to be the width of the bounding box.
getX()
Returns the x-coordinate of the object.
getY()
Returns the y-coordinate of the object.
isVisible()
Checks to see whether this object is visible.
isFilled()
Returns whether this object is filled.
move(dx, dy)
Moves the object on the screen using the displacements dx and dy.
movePolar(r, theta)
Moves the object using displacements given in polar coordinates.
scale(sf)
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
sendBackward()
Moves this object one step toward the back in the z dimension.
sendForward()
Moves this object one step toward the front in the z dimension.
sendToBack()
Moves this object to the back of the display in the z dimension.
sendToFront()
Moves this object to the front of the display in the z dimension.
setBounds(x, y, width, height)
Changes the bounds of this object to the specified values.
setColor(color)
Sets the color used to display this object.
setFillColor(color)
Sets the color used to display the filled region of this object.
setFilled(flag)
Sets whether this object is filled.
setLocation(x, y)
Sets the location of this object to the point (x, y).
setSize(width, height)
Changes the size of this object to the specified width and height.
setVisible(flag)
Sets whether this object is visible.
 

Constructor Detail

G3DRect(x, y)

Creates a new 3-D rectangle with the specified width and height. When initially created, the rectangle is in the lowered state.
Usage: grect = G3DRect(width, height) 
Parameters: 
width  The width of the rectangle in pixels
height  The height of the rectangle in pixels
 


G3DRect(x, y, width, height)

Creates a new 3-D rectangle with the specified bounds.
Usage: grect = G3DRect(x, y, width, height) 
Parameters: 
 The x-coordinate of the upper left corner
 The y-coordinate of the upper left corner
width  The width of the rectangle in pixels
height  The height of the rectangle in pixels
 

Method Detail

isRaised()

Returns the value True if the rectangle is raised
Usage: if gobj.isRaised(): 
Returns: The value True if the rectangle is raised
 


setRaised(raised)

Sets the raised state for the G3DRect.
Usage: gobj.setRaised(raised) 
Parameter: 
raised  The value True if the rectangle is raised