Constructor and Description |
---|
Shape()
Constructor.
|
Shape(java.awt.Color color)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Returns the color of component.
|
abstract void |
paint(Graphics painter)
Draw the component with given graphics object.
|
Shape |
setColor(java.awt.Color color)
Set the color of component.
|