cin.aquario
Class Report3D
java.lang.Object
org.simulare.Named
org.simulare.AbstractTask
cin.aquario.Report3D
- All Implemented Interfaces:
- Name, Task, VisualTask
- public class Report3D
- extends AbstractTask
- implements VisualTask
A 3D report to represent aquarium items. The aquarium is represented by a
transparent box, the coral is a green sphere, the ordinary fish is a yellow
sphere and the predator is a red sphere.
Method Summary |
void |
execute(Item item)
Executes atask over an item. |
java.awt.Component |
getEditor()
Returns the task editor. |
java.awt.Component |
getView()
Returns the task visualization. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Report3D
public Report3D()
Report3D
public Report3D(java.lang.String name)
execute
public void execute(Item item)
- Description copied from interface:
Task
- Executes atask over an item. And must notify the listeners.
- Specified by:
execute
in interface Task
- Parameters:
item
- The item to execute a task over.
getEditor
public java.awt.Component getEditor()
- Description copied from interface:
VisualTask
- Returns the task editor.
- Specified by:
getEditor
in interface VisualTask
- Returns:
- The task editor visual component.
getView
public java.awt.Component getView()
- Description copied from interface:
VisualTask
- Returns the task visualization.
- Specified by:
getView
in interface VisualTask
- Returns:
- The task visualization component.