|
||||||||||
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.Goal
A goal.
Field Summary |
Fields inherited from class fi.utu.cs.physics.Boundary |
boundaryEpsilon |
Constructor Summary | |
Goal(boolean half)
A goal. |
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. |
java.lang.String |
toString()
Returns a string that contains the values of the attributes. |
Methods inherited from class fi.utu.cs.physics.BoundaryCurve |
elasticCollision, getAngularExtent, getCenter, getRadius, getStartAngle, inelasticCollision, isCrossedByBoundingBox, isCrossedByLine |
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 |
public Goal(boolean half)
half
- In which half of the rink the goal is.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
public java.lang.String toString()
BoundaryCurve
toString
in class BoundaryCurve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |