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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(GridCanvasContext gcc) Draw component to the canvas.javafx.scene.paint.ColorgetColor()javafx.scene.paint.ColorgetColorOrUse(javafx.scene.paint.Color defaultColor) doublegetDrawX()doublegetDrawY()voidvoidsetColor(javafx.scene.paint.Color color) voidsetDrawable(Drawable drawable) voidsetDrawX(double drawX) voidsetDrawY(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, takeMethods inherited from class org.baseagent.sim.SimulationComponent
getSimulation, getUUID, setSimulationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.baseagent.ui.Drawable
drawAfter, drawBeforeMethods 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:DrawableDraw component to the canvas. -
setDrawable
-
getDrawable
-
removeDrawable
public void removeDrawable()
-