|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Framework.PascalsCarpet
public class Framework.PascalsCarpet
Initial implementation of the Drawable interface that will determine and display a number of rows of Pascal's Triangle. Declared private solely for the purpose of javadoc.
Field Summary |
---|
Fields inherited from interface Framework.Drawable |
---|
bgColor, fgColor, palette, random |
Constructor Summary | |
---|---|
Framework.PascalsCarpet(java.awt.Dimension appDimen)
|
Method Summary | |
---|---|
void |
draw(java.awt.image.BufferedImage img)
Called by respective Drawable's createNewGraphics' method. |
boolean |
finished()
Sets the status of the rendering to completed. |
java.awt.Color |
getBackgroundColor()
Merely returns the background color for this Drawable . |
void |
setCompleted()
Sets the status of the rendering to completed. |
void |
setMouseEvent(java.awt.event.MouseEvent e)
Allows all implementers to react to mouse events passed from the content class. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Framework.PascalsCarpet(java.awt.Dimension appDimen)
Method Detail |
---|
public void draw(java.awt.image.BufferedImage img)
draw
in interface Framework.Drawable
img
- a BufferedImage
to draw to.public java.awt.Color getBackgroundColor()
Framework.Drawable
this Drawable
.
getBackgroundColor
in interface Framework.Drawable
Color
of the background for
this Drawable
.public void setMouseEvent(java.awt.event.MouseEvent e)
Framework.Drawable
setMouseEvent
in interface Framework.Drawable
e
- The MouseEvent
that the object is to respond
to.public boolean finished()
Framework.Drawable
finished
in interface Framework.Drawable
public void setCompleted()
Framework.Drawable
setCompleted
in interface Framework.Drawable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |