Class ChartFxViewer
java.lang.Object
madkit.kernel.Agent
madkit.simulation.SimuAgent
madkit.kernel.Watcher
madkit.simulation.Viewer
madkit.simulation.viewer.chartfx.ChartFxViewer
- Direct Known Subclasses:
XYChartViewer
Base viewer embedding a self-rendering chart-fx
Chart.-
Nested Class Summary
Nested classes/interfaces inherited from class Agent
Agent.ReturnCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract io.fair_acc.chartfx.ChartCreates the configured chart displayed by this viewer.io.fair_acc.chartfx.ChartgetChart()Returns the chart, ornullbefore activation.protected List<io.fair_acc.chartfx.plugins.ChartPlugin> Returns the interactive plugins installed on the created chart.protected voidActivates the engine viewer and creates its JavaFX chart UI.voidrender()No-op because chart-fx manages rendering through its animation timer.Methods inherited from class Watcher
addProbe, getProbes, removeAllProbes, removeProbe, toStringMethods inherited from class SimuAgent
createSimuGroup, getCommunity, getEngineGroup, getEnvironment, getLauncher, getModel, getModelGroup, getNextEventDate, getScheduler, getSimuTimer, getViewers, launchAgent, leaveRole, leaveSimuGroup, leaveSimuRole, playRole, prng, requestSimuRoleMethods inherited from class Agent
activate, broadcast, broadcastWithRole, broadcastWithRoleWaitForReplies, checkAgentAddress, createGroup, createGroup, createGroup, end, equals, executeThisAgent, executeThisAgent, exitOnKill, getAgentsWithRole, getAgentWithRole, getKernelAddress, getKernelConfig, getLogger, getMailbox, getName, getNetworkID, getOrganization, getReplyTo, handleRequestActionMessage, hashCode, isAlive, killAgent, killAgent, launchAgent, launchAgent, leaveGroup, leaveRole, live, nextMessage, onLive, pause, proceedEnumMessage, receiveMessage, reload, reply, replyWithRole, requestRole, requestRole, send, send, sendWaitReply, sendWaitReply, sendWithRole, sendWithRole, sendWithRoleWaitReply, sendWithRoleWaitReply, setupDefaultGUI, waitAnswer, waitAnswer, waitNextMessage, waitNextMessage
-
Constructor Details
-
ChartFxViewer
public ChartFxViewer()
-
-
Method Details
-
createChart
protected abstract io.fair_acc.chartfx.Chart createChart()Creates the configured chart displayed by this viewer. -
getDefaultPlugins
Returns the interactive plugins installed on the created chart. -
getChart
public io.fair_acc.chartfx.Chart getChart()Returns the chart, ornullbefore activation. -
onActivation
protected void onActivation()Activates the engine viewer and creates its JavaFX chart UI.- Overrides:
onActivationin classViewer
-
render
-