|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCSE115.BehaviorShapeWorld.MutableShape
| Constructor Summary | |
MutableShape(Graphic graphic)
|
|
| Method Summary | |
boolean |
contains(Point p)
|
Behavior |
getBehavior()
|
Point |
getCenterLocation()
|
Color |
getColor()
|
Dimension |
getDimension()
|
DrawingPanel |
getDrawingPanel()
|
Graphic |
getGraphic()
|
Point |
getLocation()
|
int |
getRotation()
|
void |
hide()
|
void |
mouseClicked(MouseEvent param1)
Delegated to the shape. |
void |
mouseDragged(MouseEvent param1)
Delegated to the shape. |
void |
mouseEntered(MouseEvent param1)
Delegated to the shape. |
void |
mouseExited(MouseEvent param1)
Delegated to the shape. |
void |
mouseMoved(MouseEvent param1)
Delegated to the shape. |
void |
mousePressed(MouseEvent param1)
Delegated to the shape. |
void |
mouseReleased(MouseEvent param1)
Delegated to the shape. |
void |
setBehavior(Behavior behavior)
|
void |
setCenterLocation(Point p)
|
void |
setColor(Color color)
|
void |
setDimension(Dimension d)
|
void |
setDrawingPanel(DrawingPanel dp)
|
void |
setGraphic(Graphic graphic)
|
void |
setLocation(Point p)
|
void |
setRotation(int r)
|
void |
update()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface NGP.Reactor |
react |
| Constructor Detail |
public MutableShape(Graphic graphic)
| Method Detail |
public void hide()
hide in interface Shapepublic void update()
update in interface Shapepublic void setColor(Color color)
setColor in interface Graphicpublic Color getColor()
getColor in interface Graphicpublic void setLocation(Point p)
setLocation in interface Graphicpublic Point getLocation()
getLocation in interface Graphicpublic void setCenterLocation(Point p)
setCenterLocation in interface Graphicpublic Point getCenterLocation()
getCenterLocation in interface Graphicpublic void setDimension(Dimension d)
setDimension in interface Graphicpublic Dimension getDimension()
getDimension in interface Graphicpublic void setRotation(int r)
setRotation in interface Graphicpublic int getRotation()
getRotation in interface Graphicpublic void setDrawingPanel(DrawingPanel dp)
setDrawingPanel in interface Graphicpublic DrawingPanel getDrawingPanel()
getDrawingPanel in interface Graphicpublic void setBehavior(Behavior behavior)
public Behavior getBehavior()
public void setGraphic(Graphic graphic)
public Graphic getGraphic()
public boolean contains(Point p)
contains in interface Graphicpublic void mouseDragged(MouseEvent param1)
mouseDragged in interface MouseMotionListenerMouseMotionListener.mouseDragged(MouseEvent)public void mouseMoved(MouseEvent param1)
mouseMoved in interface MouseMotionListenerMouseMotionListener.mouseMoved(MouseEvent)public void mouseClicked(MouseEvent param1)
mouseClicked in interface MouseListenerMouseListener.mouseClicked(MouseEvent)public void mouseEntered(MouseEvent param1)
mouseEntered in interface MouseListenerMouseListener.mouseEntered(MouseEvent)public void mouseExited(MouseEvent param1)
mouseExited in interface MouseListenerMouseListener.mouseExited(MouseEvent)public void mousePressed(MouseEvent param1)
mousePressed in interface MouseListenerMouseListener.mousePressed(MouseEvent)public void mouseReleased(MouseEvent param1)
mouseReleased in interface MouseListenerMouseListener.mouseReleased(MouseEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||