Class XYChartViewer<K>
java.lang.Object
madkit.kernel.Agent
madkit.simulation.SimuAgent
madkit.kernel.Watcher
madkit.simulation.Viewer
madkit.simulation.viewer.chartfx.ChartFxViewer
madkit.simulation.viewer.chartfx.XYChartViewer<K>
- Direct Known Subclasses:
ProbeXYChartViewer
Chart-fx XY viewer with keyed, non-blocking data updates.
-
Nested Class Summary
Nested classes/interfaces inherited from class Agent
Agent.ReturnCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends a point without synchronously waiting for the JavaFX thread.protected voidaddDataSet(K key, String name) Registers a dataset during viewer activation.protected io.fair_acc.chartfx.XYChartCreates the configured chart displayed by this viewer.protected StringReturns the chart title.Returns the datasets by their keys.intReturns the data-point sliding-window limit.protected StringReturns the X-axis label.io.fair_acc.chartfx.XYChartReturns the managed XY chart.protected StringReturns the Y-axis label.voidsetMaxDataPoints(int maxDataPoints) Sets the data-point sliding-window limit.Methods inherited from class ChartFxViewer
getChart, getDefaultPlugins, onActivation, renderMethods 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
-
XYChartViewer
public XYChartViewer()
-
-
Method Details
-
createChart
protected io.fair_acc.chartfx.XYChart createChart()Description copied from class:ChartFxViewerCreates the configured chart displayed by this viewer.- Specified by:
createChartin classChartFxViewer
-
addDataSet
-
addData
Appends a point without synchronously waiting for the JavaFX thread. -
getDataSets
-
getXYChart
public io.fair_acc.chartfx.XYChart getXYChart()Returns the managed XY chart. -
getXAxisLabel
Returns the X-axis label. -
getYAxisLabel
Returns the Y-axis label. -
getChartTitle
Returns the chart title. -
getMaxDataPoints
public int getMaxDataPoints()Returns the data-point sliding-window limit. -
setMaxDataPoints
public void setMaxDataPoints(int maxDataPoints) Sets the data-point sliding-window limit.
-