|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavalib.worldimages.AImage
javalib.worldimages.ColoredImage
javalib.worldimages.RectangularImage
javalib.worldimages.EllipseImage
javalib.worldimages.CircleImage
class CircleImage
An outlined circle
| Field Summary |
|---|
| Fields inherited from class javalib.worldimages.ColoredImage |
|---|
defaultColor |
| Fields inherited from interface javalib.worldimages.WorldImage |
|---|
LOOKS_SAME |
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Is this the same as another WorldImage, as expression trees? Define this at every level that has instance variables. |
int |
getBottom()
Produce the bottom of the bounding box. |
int |
getRadius()
|
int |
getRight()
Produce the bottom of the bounding box. |
int |
hashCode()
Get a hash code for the WorldImage. |
(package private) static CircleImage |
make(int radius)
Another pseudo-constructor, with default color and mode. |
(package private) static CircleImage |
make(int radius,
Color color)
Another pseudo-constructor, with a Color and a default mode. |
(package private) static CircleImage |
make(int radius,
Color color,
Mode mode)
Pseudo-constructor. |
(package private) static CircleImage |
make(int radius,
IColor color)
Another pseudo-constructor, with an IColor and a default mode. |
(package private) static CircleImage |
make(int radius,
IColor color,
Mode mode)
Pseudo-constructor. |
(package private) static CircleImage |
make(int radius,
Mode mode)
Another pseudo-constructor, with a default color. |
(package private) static WorldImage |
makeCentered(Posn center,
int radius)
|
(package private) static WorldImage |
makeCentered(Posn center,
int radius,
Color color)
|
(package private) static WorldImage |
makeCentered(Posn center,
int radius,
Color color,
Mode mode)
|
(package private) static WorldImage |
makeCentered(Posn center,
int radius,
IColor color)
|
(package private) static WorldImage |
makeCentered(Posn center,
int radius,
IColor color,
Mode mode)
|
(package private) static WorldImage |
makeCentered(Posn center,
int radius,
Mode mode)
|
(package private) ColoredImage |
replaceColor(Color newColor)
Functional setter for the color field Define this in all concrete subclasses. |
(package private) ColoredImage |
replaceMode(Mode newMode)
Functional setter for the mode field Define this in all concrete subclasses. |
(package private) CircleImage |
replaceRadius(int newRadius)
|
String |
toIndentedString(String indent)
Produce a String that represents this image, indented by the given indent. |
| Methods inherited from class javalib.worldimages.EllipseImage |
|---|
draw, make, make, make, make, make, make, replaceDimensions |
| Methods inherited from class javalib.worldimages.RectangularImage |
|---|
replaceHeight, replaceWidth |
| Methods inherited from class javalib.worldimages.ColoredImage |
|---|
getColor, getMode, replaceColor |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean equals(Object other)
WorldImage
equals in interface WorldImageequals in class RectangularImageother - the object to compare with this
public int getBottom()
WorldImage
getBottom in interface WorldImagegetBottom in class RectangularImagepublic int getRadius()
public int getRight()
WorldImage
getRight in interface WorldImagegetRight in class RectangularImagepublic int hashCode()
WorldImage
hashCode in interface WorldImagehashCode in class RectangularImagestatic CircleImage make(int radius)
static CircleImage make(int radius,
Color color)
static CircleImage make(int radius,
Color color,
Mode mode)
radius - color - mode -
static CircleImage make(int radius,
IColor color)
static CircleImage make(int radius,
IColor color,
Mode mode)
static CircleImage make(int radius,
Mode mode)
static WorldImage makeCentered(Posn center,
int radius)
static WorldImage makeCentered(Posn center,
int radius,
Color color)
static WorldImage makeCentered(Posn center,
int radius,
Color color,
Mode mode)
static WorldImage makeCentered(Posn center,
int radius,
IColor color)
static WorldImage makeCentered(Posn center,
int radius,
IColor color,
Mode mode)
static WorldImage makeCentered(Posn center,
int radius,
Mode mode)
ColoredImage replaceColor(Color newColor)
ColoredImage
replaceColor in class EllipseImageColoredImage replaceMode(Mode newMode)
ColoredImage
replaceMode in class EllipseImageCircleImage replaceRadius(int newRadius)
public String toIndentedString(String indent)
WorldImageString that represents this image, indented by the given indent.
Define this in all concrete subclasses.
Convention: The result of toIndentedString() will neither begin nor end with a newline; the specified indent will immediately follow each internal newline.
toIndentedString in interface WorldImagetoIndentedString in class EllipseImageindent - the given prefix representing the desired indentation
String representation of this image
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||