Class symantec.itools.awt.shape.Shape
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.awt.shape.Shape
Object
|
+----Component
|
+----symantec.itools.awt.shape.Shape
- public abstract class Shape
- extends Component
- implements BevelStyle
Abstract class for shape components.
This is the parent Shape class for the various
shape components.
- Version:
- 1.1, June 2, 1997
- Author:
- Symantec
- See Also:
- Ellipse, Circle, Rectangle, Square, VericalLine, HorizontalLine
-
bevelDarkerColor
- The color to use as a hilight when BevelStyle is BEVEL_RAISED or BEVEL_LOWERED.
-
bevelLighterColor
- The color to use as a hilight when BevelStyle is BEVEL_RAISED or BEVEL_LOWERED.
-
cachedBackground
- Cached value of the background color.
-
changes
- Handles tracking non-vetoable change listeners and notifying them of each change
to this component's properties.
-
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.
-
vetos
- Handles tracking vetoable change listeners and notifying them of each change
to this component's properties.
-
width
- Width of this shape.
-
symantec.itools.awt.shape.Shape()
- Construct default Shape with BEVEL_LINE style.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a listener for all property change events.
-
addVetoableChangeListener(VetoableChangeListener)
- Adds a listener for all vetoable property change events.
-
getBevelStyle()
- Returns the current style of the shape.
-
getFillColor()
- Returns the current fill color of the shape.
-
getFillMode()
-
-
getMinimumSize()
- Returns the minimum dimensions to properly display this component.
-
getPreferredSize()
- Returns the recommended dimensions to properly display this component.
-
isFillMode()
- Returns the current fill mode of the shape.
-
paint(Graphics)
- Paints this component using the given graphics context.
-
preferredSize()
-
-
removePropertyChangeListener(PropertyChangeListener)
- Removes a listener for all property change events.
-
removeVetoableChangeListener(VetoableChangeListener)
- Removes a listener for all vetoable property change events.
-
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.
-
updateBevelColors(Color)
- Used to calculate the colors for the different bevel styles.
bevelDarkerColor
protected java.awt.Color bevelDarkerColor
- The color to use as a hilight when BevelStyle is BEVEL_RAISED or BEVEL_LOWERED.
bevelLighterColor
protected java.awt.Color bevelLighterColor
- The color to use as a hilight when BevelStyle is BEVEL_RAISED or BEVEL_LOWERED.
cachedBackground
protected java.awt.Color cachedBackground
- Cached value of the background color. Used to determine if calculated colors need to be updated.
changes
protected symantec.itools.beans.PropertyChangeSupport changes
- Handles tracking non-vetoable change listeners and notifying them of each change
to this component's properties.
fill
protected boolean fill
- Shape is filled if true.
fillColor
protected java.awt.Color fillColor
- Color to fill shape with if fill is true.
height
protected int height
- Height of this shape.
style
protected int style
- Border style of this shape.
vetos
protected symantec.itools.beans.VetoableChangeSupport vetos
- Handles tracking vetoable change listeners and notifying them of each change
to this component's properties.
width
protected int width
- Width of this shape.
Shape
protected Shape()
- Construct default Shape with BEVEL_LINE style.
addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
- Adds a listener for all property change events.
- Parameters:
- listener - the listener to add
- See Also:
- removePropertyChangeListener
addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
- Adds a listener for all vetoable property change events.
- Parameters:
- listener - the listener to add
- See Also:
- removeVetoableChangeListener
getBevelStyle
public int getBevelStyle()
- Returns the current style of the shape.
- See Also:
- setBevelStyle
getFillColor
public java.awt.Color getFillColor()
- Returns the current fill color of the shape.
- See Also:
- setFillColor
getFillMode
public boolean getFillMode()
- Note: getFillMode() is deprecated.
-
- See Also:
- isFillMode
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Returns the minimum dimensions to properly display this component.
This is a standard Java AWT method which gets called to determine
the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
- See Also:
- getPreferredSize
getPreferredSize
public java.awt.Dimension getPreferredSize()
- 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.
- Overrides:
- getPreferredSize in class Component
- See Also:
- minimumSize
isFillMode
public boolean isFillMode()
- Returns the current fill mode of the shape.
- See Also:
- setFillMode
paint
public synchronized void paint(Graphics g)
- Paints this component using the given graphics context.
This is a standard Java AWT method which typically gets called
by the AWT to handle painting this component. It paints this component
using the given graphics context. The graphics context clipping region
is set to the bounding rectangle of this component and its [0,0]
coordinate is this component's top-left corner.
- Parameters:
- g - the graphics context used for painting
- Overrides:
- paint in class Component
- See Also:
- repaint, update
preferredSize
public java.awt.Dimension preferredSize()
- Note: preferredSize() is deprecated.
-
- Overrides:
- preferredSize in class Component
- See Also:
- getPreferredSize
removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
- Removes a listener for all property change events.
- Parameters:
- listener - the listener to remove
- See Also:
- addPropertyChangeListener
removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
- Removes a listener for all vetoable property change events.
- Parameters:
- listener - the listener to remove
- See Also:
- addVetoableChangeListener
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
setBevelStyle
public void setBevelStyle(int s) throws PropertyVetoException
- Sets the border style of the shape.
- Throws: PropertyVetoException
- if the specified property value is unacceptable
- See Also:
- getBevelStyle
setFillColor
public void setFillColor(Color color) throws PropertyVetoException
- Sets the fill color of the shape.
- Throws: PropertyVetoException
- if the specified property value is unacceptable
- See Also:
- getFillColor
setFillMode
public void setFillMode(boolean f) throws PropertyVetoException
- Sets the fill mode of the shape.
- Throws: PropertyVetoException
- if the specified property value is unacceptable
- See Also:
- isFillMode
updateBevelColors
protected void updateBevelColors(Color c)
- Used to calculate the colors for the different bevel styles.
- Parameters:
- c - The color of the background to make bevel colors from.
- See Also:
- addNotify, setBackground
All Packages Class Hierarchy This Package Previous Next Index