com.jrefinery.chart
Class DefaultShapeFactory

java.lang.Object
  extended by com.jrefinery.chart.DefaultShapeFactory
All Implemented Interfaces:
ShapeFactory

public class DefaultShapeFactory
extends java.lang.Object
implements ShapeFactory

Default provider of shapes for indicating data points on a Plot.

Author:
Jeremy Bowman

Constructor Summary
DefaultShapeFactory()
           
 
Method Summary
 java.awt.Shape getShape(int series, int item, double x, double y, double scale)
          Returns a Shape that can be used in plotting data.
 java.awt.Shape getShape(int series, java.lang.Object category, double x, double y, double scale)
          Returns a Shape that can be used in plotting data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultShapeFactory

public DefaultShapeFactory()
Method Detail

getShape

public java.awt.Shape getShape(int series,
                               int item,
                               double x,
                               double y,
                               double scale)
Returns a Shape that can be used in plotting data. Used in XYPlots.

Specified by:
getShape in interface ShapeFactory

getShape

public java.awt.Shape getShape(int series,
                               java.lang.Object category,
                               double x,
                               double y,
                               double scale)
Returns a Shape that can be used in plotting data. Used in CategoryPlots.

Specified by:
getShape in interface ShapeFactory


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.