Package org.baseagent.ui
Class DrawableAgent
java.lang.Object
org.baseagent.sim.SimulationComponent
org.baseagent.Agent
org.baseagent.ui.DrawableAgent
- All Implemented Interfaces:
MessageListener
,HasStep
,SimulationListener
,Drawable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.baseagent.sim.SimulationComponent
SimulationComponent.Type
-
Field Summary
Fields inherited from class org.baseagent.Agent
SIMPLE_ID_COUNTER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(GridCanvasContext gcc) Draw component to the canvas.javafx.scene.paint.Color
getColor()
javafx.scene.paint.Color
getColorOrUse
(javafx.scene.paint.Color defaultColor) double
getDrawX()
double
getDrawY()
void
void
setColor
(javafx.scene.paint.Color color) void
setDrawable
(Drawable drawable) void
setDrawX
(double drawX) void
setDrawY
(double drawY) Methods inherited from class org.baseagent.Agent
addBehavior, addBehavior, getBehavior, getBehaviorPolicy, getBehaviors, getInventory, getKnowledge, getSimpleID, getState, getType, give, isState, onMessageReceived, receive, removeBehavior, removeBehavior, sendDirectedMessage, sendMessage, setBehaviorPolicy, setKnowledge, setState, step, take
Methods inherited from class org.baseagent.sim.SimulationComponent
getSimulation, getUUID, setSimulation
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.baseagent.ui.Drawable
drawAfter, drawBefore
Methods inherited from interface org.baseagent.sim.SimulationListener
onAfterStepEnded, onAfterStepStarted, onBeforeStepEnded, onBeforeStepStarted, onSimulationComponentAdded, onSimulationComponentRemoved, onSimulationEnded, onSimulationPaused, onSimulationResumed, onSimulationStarted, onSimulationStopped, onStepEnded, onStepStarted
-
Constructor Details
-
DrawableAgent
public DrawableAgent()
-
-
Method Details
-
getDrawX
public double getDrawX() -
setDrawX
public void setDrawX(double drawX) -
getDrawY
public double getDrawY() -
setDrawY
public void setDrawY(double drawY) -
setColor
public void setColor(javafx.scene.paint.Color color) -
getColor
public javafx.scene.paint.Color getColor() -
getColorOrUse
public javafx.scene.paint.Color getColorOrUse(javafx.scene.paint.Color defaultColor) -
draw
Description copied from interface:Drawable
Draw component to the canvas. -
setDrawable
-
getDrawable
-
removeDrawable
public void removeDrawable()
-