|
||||||||||
| 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.Spot
A spot.
| Field Summary |
| Fields inherited from class fi.utu.cs.physics.Boundary |
boundaryEpsilon |
| Constructor Summary | |
protected |
Spot(double px,
double py,
double r,
java.awt.Color c)
A spot with a center at the point ( px, py)
radius r 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 Spot(double px,
double py,
double r,
java.awt.Color c)
px, py)
radius r and color c.
| Method Detail |
public java.awt.Shape shape()
ShapableShape object that defines the appearance
of the object.
shape in interface ShapableShapepublic boolean isDrawn()
Shapable
isDrawn in interface ShapableShapable.stroke(),
Shapable.color()public java.awt.Stroke stroke()
ShapableStroke object that is used for drawing
the outline.
stroke in interface ShapableShapable.isDrawn(),
Strokepublic java.awt.Color color()
ShapableColor object that is used for drawing
the outline.
color in interface ShapableShapable.isDrawn(),
Colorpublic boolean isFilled()
Shapable
isFilled in interface ShapableShapable.paint()public java.awt.Paint paint()
ShapablePaint object that is used for filling
the shape.
paint in interface ShapableShapable.isFilled(),
Paint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||