|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.utu.cs.physics.Particle | +--fi.utu.cs.physics.Boundary | +--fi.utu.cs.physics.BoundaryCurve | +--fi.utu.cs.hockey.rink.Circle
A circle.
Field Summary |
Fields inherited from class fi.utu.cs.physics.Boundary |
boundaryEpsilon |
Constructor Summary | |
protected |
Circle(double px,
double py,
double r,
double w,
java.awt.Color c)
A circle with a center at the point ( px , py )
radius r , width w and color c . |
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 fi.utu.cs.physics.BoundaryCurve |
elasticCollision, getAngularExtent, getCenter, getRadius, getStartAngle, inelasticCollision, isCrossedByBoundingBox, isCrossedByLine, toString |
Methods inherited from class fi.utu.cs.physics.Boundary |
isCrossed |
Methods inherited from class fi.utu.cs.physics.Particle |
addCollisionNotification, clearCollisionNotifications, getOwner, isCollisionNotified, isCollisionNotified, isCorporeal, removeCollisionNotification, setCorporeal, setEthereal, setOwner |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected Circle(double px, double py, double r, double w, java.awt.Color c)
px
, py
)
radius r
, width w
and color c
.
Method Detail |
public java.awt.Shape shape()
Shapable
Shape
object that defines the appearance
of the object.
shape
in interface Shapable
Shape
public boolean isDrawn()
Shapable
isDrawn
in interface Shapable
Shapable.stroke()
,
Shapable.color()
public java.awt.Stroke stroke()
Shapable
Stroke
object that is used for drawing
the outline.
stroke
in interface Shapable
Shapable.isDrawn()
,
Stroke
public java.awt.Color color()
Shapable
Color
object that is used for drawing
the outline.
color
in interface Shapable
Shapable.isDrawn()
,
Color
public boolean isFilled()
Shapable
isFilled
in interface Shapable
Shapable.paint()
public java.awt.Paint paint()
Shapable
Paint
object that is used for filling
the shape.
paint
in interface Shapable
Shapable.isFilled()
,
Paint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |