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
-
fill
- Shape is filled if true.
-
fillColor
- Color to fill shape with if fill is true.
-
height
- Height of this shape.
-
style
- Border style of this shape.
-
width
- Width of this shape.
-
Shape()
- Construct default Shape with BEVEL_LINE style.
-
getBevelStyle()
- Returns the current style of the shape.
-
getFillColor()
- Returns the current fill color of the shape.
-
getFillMode()
- Returns the current fill mode of the shape.
-
preferredSize()
- Returns the recommended dimensions to properly display this component.
-
reshape(int, int, int, int)
- Moves and/or resizes this component.
-
setBevelStyle(int)
- Sets the border style of the shape.
-
setFillColor(Color)
- Sets the fill color of the shape.
-
setFillMode(boolean)
- Sets the fill mode of the shape.
width
protected int width
- Width of this shape.
height
protected int height
- Height of this shape.
style
protected int style
- Border style of this shape.
fill
protected boolean fill
- Shape is filled if true.
fillColor
protected Color fillColor
- Color to fill shape with if fill is true.
Shape
protected Shape()
- Construct default Shape with BEVEL_LINE style.
setBevelStyle
public void setBevelStyle(int s)
- Sets the border style of the shape.
- See Also:
- getBevelStyle
getBevelStyle
public int getBevelStyle()
- Returns the current style of the shape.
- See Also:
- setBevelStyle
setFillMode
public void setFillMode(boolean f)
- Sets the fill mode of the shape.
- See Also:
- getFillMode
getFillMode
public boolean getFillMode()
- Returns the current fill mode of the shape.
- See Also:
- setFillMode
setFillColor
public void setFillColor(Color color)
- Sets the fill color of the shape.
- See Also:
- getFillColor
getFillColor
public Color getFillColor()
- Returns the current fill color of the shape.
- See Also:
- setFillColor
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
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