net.moioli.chart
Class DefaultChart

java.lang.Object
  extended by HashSet
      extended by net.moioli.chart.AbstractChart
          extended by net.moioli.chart.DefaultChart
All Implemented Interfaces:
ChartI

public class DefaultChart
extends AbstractChart
implements ChartI

A simple yet complete implementation of the ChartI interface. It includes the xy axes, the MoioChart logo and a Legend by default.

Version:
2005/10/5
Author:
Silvio Moioli
See Also:
DrawableI, GraphicsI

Constructor Summary
DefaultChart()
          Builds an empty DefaultChart.
DefaultChart(Collection c)
          Builds an DefaultChart with the specified objects.
 
Method Summary
 void drawMe(GraphicsI g, IntRectangle clip)
          Draws this DefaultChart on the passed GraphicsI surface.
 
Methods inherited from class net.moioli.chart.AbstractChart
add, getMaxX, getMaxY, getMinX, getMinY, getPixelAccuracy, setMaxX, setMaxY, setMinX, setMinY, setPixelAccuracy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.moioli.chart.ChartI
add, getMaxX, getMaxY, getMinX, getMinY, getPixelAccuracy, setMaxX, setMaxY, setMinX, setMinY, setPixelAccuracy
 

Constructor Detail

DefaultChart

public DefaultChart()
Builds an empty DefaultChart.


DefaultChart

public DefaultChart(Collection c)
Builds an DefaultChart with the specified objects.

Parameters:
c - Collection of DrawableI objects
Method Detail

drawMe

public void drawMe(GraphicsI g,
                   IntRectangle clip)
Description copied from interface: ChartI
Draws this DefaultChart on the passed GraphicsI surface.

Specified by:
drawMe in interface ChartI
Specified by:
drawMe in class AbstractChart
Parameters:
g - the surface where this DefaultChart will be drawn
clip - the clipping rectangle to be used for drawing
See Also:
ChartI.drawMe(net.moioli.chart.GraphicsI, net.moioli.chart.IntRectangle)