|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.utu.cs.appearance.ShapeAdapter
An abstract adapter class for defining shapable objects that can
be displayed in the Graphics2D
context. The methods
in this class either return false
or null
.
This class exists as convenience for creating Shapable
objects. Extend this class to create a Shapable
object
and override the methods of interest.
Shapable
Constructor Summary | |
ShapeAdapter()
|
Method Summary | |
java.awt.Color |
color()
Returns a Color object that is used for drawing
the outline. |
boolean |
isDrawn()
Returns a boolean value indicating whether the outline of the shape is drawn or not. |
boolean |
isFilled()
Returns a boolean value indicating whether the shape is filled or not. |
java.awt.Paint |
paint()
Returns a Paint object that is used for filling
the shape. |
java.awt.Shape |
shape()
Returns a Shape object that defines the appearance
of the object. |
java.awt.Stroke |
stroke()
Returns a Stroke object that is used for drawing
the outline. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeAdapter()
Method Detail |
public java.awt.Shape shape()
Shape
object that defines the appearance
of the object.
shape
in interface Shapable
Shape
public boolean isDrawn()
isDrawn
in interface Shapable
stroke()
,
color()
public java.awt.Stroke stroke()
Stroke
object that is used for drawing
the outline.
stroke
in interface Shapable
isDrawn()
public java.awt.Color color()
Color
object that is used for drawing
the outline.
color
in interface Shapable
isDrawn()
public boolean isFilled()
isFilled
in interface Shapable
paint()
public java.awt.Paint paint()
Paint
object that is used for filling
the shape.
paint
in interface Shapable
isFilled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |