Class CollectionBarSimulationPlotter

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, EventListener

public class CollectionBarSimulationPlotter extends JInternalFrame implements EventListener
A bar chart plotter showing elements manually added by user. It is based on JFreeChart library. It is compatible with the microsim.statistics.* classes.

Title: JAS

Description: Java Agent-based Simulation library

Copyright (C) 2002-13 Michele Sonnessa

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
Author:
Michele Sonnessa

See Also:
  • Constructor Details

    • CollectionBarSimulationPlotter

      public CollectionBarSimulationPlotter(String title, String yaxis)
  • Method Details

    • onEvent

      public void onEvent(Enum<?> type)
      Specified by:
      onEvent in interface EventListener
    • update

      public void update()
    • addCollectionSource

      public void addCollectionSource(String name, IDoubleArraySource source)
      Add a new series buffer, retrieving value from IDoubleSource objects in a collection.
      Parameters:
      name - The name of the series, which is shown in the legend.
      source - A collection containing the sources.
    • addCollectionSource

      public void addCollectionSource(String name, IFloatArraySource source)
      Add a new series buffer, retrieving value from IDoubleSource objects in a collection.
      Parameters:
      name - The name of the series, which is shown in the legend.
      source - A collection containing the sources.
    • addCollectionSource

      public void addCollectionSource(String name, IIntArraySource source)
      Add a new series buffer, retrieving value from IDoubleSource objects in a collection.
      Parameters:
      name - The name of the series, which is shown in the legend.
      source - A collection containing the sources.
    • addCollectionSource

      public void addCollectionSource(String name, ILongArraySource source)
      Add a new series buffer, retrieving value from IDoubleSource objects in a collection.
      Parameters:
      name - The name of the series, which is shown in the legend.
      source - A collection containing the sources.
    • getMaxBars

      public Integer getMaxBars()
    • setMaxBars

      public void setMaxBars(Integer maxBars)