All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.shape.Shape

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----symantec.itools.awt.shape.Shape

public class Shape
extends Canvas
implements BevelStyle
Abstract class for shape components. This is the parent Shape class for the various shape components.

See Also:
Ellipse, Rectangle

Variable Index

 o fill
Shape is filled if true.
 o fillColor
Color to fill shape with if fill is true.
 o height
Height of this shape.
 o style
Border style of this shape.
 o width
Width of this shape.

Constructor Index

 o Shape()
Construct default Shape with BEVEL_LINE style.

Method Index

 o getBevelStyle()
Returns the current style of the shape.
 o getFillColor()
Returns the current fill color of the shape.
 o getFillMode()
Returns the current fill mode of the shape.
 o preferredSize()
Returns the recommended dimensions to properly display this component.
 o reshape(int, int, int, int)
Moves and/or resizes this component.
 o setBevelStyle(int)
Sets the border style of the shape.
 o setFillColor(Color)
Sets the fill color of the shape.
 o setFillMode(boolean)
Sets the fill mode of the shape.

Variables

 o width
  protected int width
Width of this shape.

 o height
  protected int height
Height of this shape.

 o style
  protected int style
Border style of this shape.

 o fill
  protected boolean fill
Shape is filled if true.

 o fillColor
  protected Color fillColor
Color to fill shape with if fill is true.

Constructors

 o Shape
  protected Shape()
Construct default Shape with BEVEL_LINE style.

Methods

 o setBevelStyle
  public void setBevelStyle(int s)
Sets the border style of the shape.

See Also:
getBevelStyle
 o getBevelStyle
  public int getBevelStyle()
Returns the current style of the shape.

See Also:
setBevelStyle
 o setFillMode
  public void setFillMode(boolean f)
Sets the fill mode of the shape.

See Also:
getFillMode
 o getFillMode
  public boolean getFillMode()
Returns the current fill mode of the shape.

See Also:
setFillMode
 o setFillColor
  public void setFillColor(Color color)
Sets the fill color of the shape.

See Also:
getFillColor
 o getFillColor
  public Color getFillColor()
Returns the current fill color of the shape.

See Also:
setFillColor
 o reshape
  public void reshape(int x,
                      int y,
                      int width,
                      int height)
Moves and/or resizes this component. This is a standard Java AWT method which gets called to move and/or resize this component. Components that are in containers with layout managers should not call this method, but rely on the layout manager instead.

Parameters:
x - horizontal position in the parent's coordinate space
y - vertical position in the parent's coordinate space
width - the new width
height - the new height
Overrides:
reshape in class Component
 o preferredSize
  public Dimension preferredSize()
Returns the recommended dimensions to properly display this component. This is a standard Java AWT method which gets called to determine the recommended size of this component.

Returns:
horiziontal and vertical dimensions of 50, 50
Overrides:
preferredSize in class Component
See Also:
minimumSize

All Packages  Class Hierarchy  This Package  Previous  Next  Index