public class Point
extends java.lang.Object
Constructor and Description |
---|
Point(double radius,
java.lang.String name,
java.lang.String colour,
boolean focus)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColour()
Accessor function.
|
double |
getDiameter()
Accessor function.
|
boolean |
getFocus()
Accessor function.
|
java.lang.String |
getName()
Accessor function.
|
double |
getRadius()
Accessor function.
|
void |
setColour(java.lang.String colour)
Mutator function.
|
void |
setDiameter(double diameter)
Mutator function.
|
void |
setFocus(boolean focus)
Mutator function.
|
void |
setName(java.lang.String name)
Mutator function.
|
public Point(double radius, java.lang.String name, java.lang.String colour, boolean focus)
radius
- The radius of the body (the table I used for values had
radii rather than diameters).name
- The name of the body.colour
- The colour of the body.focus
- Whether the body is the current focus or not.public boolean getFocus()
public double getDiameter()
public double getRadius()
public java.lang.String getName()
public java.lang.String getColour()
public void setFocus(boolean focus)
focus
- Whether the body is in focus or not.public void setDiameter(double diameter)
diameter
- The new diameter.public void setName(java.lang.String name)
name
- The new name.public void setColour(java.lang.String colour)
colour
- The new colour.