org.gscg.common.gui.statistics.components
Class StatisticsXYChart

java.lang.Object
  extended byorg.gscg.common.gui.statistics.components.StatisticsXYChart
All Implemented Interfaces:
java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, StatisticsChartInterface, StatisticsInterface
Direct Known Subclasses:
DemandChangedStatisticsXYChart, FinanceStatisticsXYChart, StatisticsStockXYChart

public abstract class StatisticsXYChart
extends java.lang.Object
implements StatisticsChartInterface, nl.tudelft.simulation.event.EventListenerInterface

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Since:
1.0.0
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:33:54 $
Author:
Stijn-Pieter van Houten

Field Summary
protected  ActorApplicationInterface actorPanel
          the actor panel
protected  java.util.ArrayList cache
          the cache
protected  nl.tudelft.simulation.event.EventType eventType
          the event type used to update the xy chart
protected  java.util.Map series
          the series
protected  nl.tudelft.simulation.jstats.charts.xy.XYChart xyChart
          the xy chart
 
Constructor Summary
StatisticsXYChart(ActorApplicationInterface actorPanel, nl.tudelft.simulation.event.EventType eventType, java.lang.String chartName, java.lang.String domainLabel, java.lang.String rangeLabel, double runLength)
          the AreaStatistics show the statistics per area which are used in the are infromation frame
 
Method Summary
 void createXYChart()
          create the statistics
 java.lang.String getChartTitle()
          Method getChartTitle
 org.jfree.chart.JFreeChart getJFreeChart()
          Method getJFreeChart
 nl.tudelft.simulation.jstats.Swingable getSwingable()
          Method getSwingable.
 nl.tudelft.simulation.jstats.charts.xy.XYChart getXyChart()
           
abstract  void notify(nl.tudelft.simulation.event.EventInterface event)
           
 void setStatus(boolean status)
          Method setStatus sets the status of the statistic.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

actorPanel

protected ActorApplicationInterface actorPanel
the actor panel


xyChart

protected nl.tudelft.simulation.jstats.charts.xy.XYChart xyChart
the xy chart


cache

protected java.util.ArrayList cache
the cache


eventType

protected nl.tudelft.simulation.event.EventType eventType
the event type used to update the xy chart


series

protected java.util.Map series
the series

Constructor Detail

StatisticsXYChart

public StatisticsXYChart(ActorApplicationInterface actorPanel,
                         nl.tudelft.simulation.event.EventType eventType,
                         java.lang.String chartName,
                         java.lang.String domainLabel,
                         java.lang.String rangeLabel,
                         double runLength)
the AreaStatistics show the statistics per area which are used in the are infromation frame

Parameters:
actorPanel - the actor panel
eventType - the event type is used to update the xy chart
chartName - the name of the chart
domainLabel - the label of the domain
rangeLabel - the label of the range
runLength - the run length
Method Detail

createXYChart

public void createXYChart()
create the statistics


getXyChart

public nl.tudelft.simulation.jstats.charts.xy.XYChart getXyChart()
Returns:
Returns the xyChart.

getChartTitle

public java.lang.String getChartTitle()
Description copied from interface: StatisticsChartInterface
Method getChartTitle

Specified by:
getChartTitle in interface StatisticsChartInterface
Returns:
returns the title of the chart
See Also:
StatisticsChartInterface.getChartTitle()

getSwingable

public nl.tudelft.simulation.jstats.Swingable getSwingable()
Description copied from interface: StatisticsChartInterface
Method getSwingable.

Specified by:
getSwingable in interface StatisticsChartInterface
Returns:
returns an object implementing the Swingable interface
See Also:
StatisticsChartInterface.getSwingable()

toString

public java.lang.String toString()
See Also:
Object.toString()

notify

public abstract void notify(nl.tudelft.simulation.event.EventInterface event)
                     throws java.rmi.RemoteException
Specified by:
notify in interface nl.tudelft.simulation.event.EventListenerInterface
Throws:
java.rmi.RemoteException
See Also:
EventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)

getJFreeChart

public org.jfree.chart.JFreeChart getJFreeChart()
Description copied from interface: StatisticsChartInterface
Method getJFreeChart

Specified by:
getJFreeChart in interface StatisticsChartInterface
Returns:
returns an object which may be placed in a chart panel
See Also:
StatisticsChartInterface.getJFreeChart()

setStatus

public void setStatus(boolean status)
Description copied from interface: StatisticsInterface
Method setStatus sets the status of the statistic.

Specified by:
setStatus in interface StatisticsInterface
Parameters:
status - true if the statistics should be listening to server-side events; false otherwise
See Also:
StatisticsInterface.setStatus(boolean)


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.