com.davisor.graphics.chart
Class RectGridFactory

java.lang.Object
  extended bycom.davisor.graphics.chart.ChartFactory
      extended bycom.davisor.graphics.chart.AxisFactory
          extended bycom.davisor.graphics.chart.GridFactory
              extended bycom.davisor.graphics.chart.RectGridFactory
All Implemented Interfaces:
com.davisor.core.Dupable, com.davisor.core.MIMETypes, com.davisor.core.Public

public class RectGridFactory
extends GridFactory

RectGridFactory impelements a grid chart filled with rectangular cells.

Since:
JDK1.2

Nested Class Summary
 
Nested classes inherited from class com.davisor.graphics.chart.AxisFactory
AxisFactory.AxisContext, AxisFactory.AxisMetrics
 
Nested classes inherited from class com.davisor.graphics.chart.ChartFactory
ChartFactory.ChartContext, ChartFactory.ChartMetrics
 
Field Summary
 
Fields inherited from class com.davisor.graphics.chart.AxisFactory
DEFAULTLABELTYPE, FLIPX, FLIPY, MAJORMARGIN, MINORMARGIN, MINSIZE
 
Fields inherited from class com.davisor.graphics.chart.ChartFactory
ALL, BRIGHT, CHANNEL, COS, DARK, DOTSEQUENCE, DOTSTROKE, DOTSTROKEWIDTH, DUMPFACTORYNAME, ENCODERINFO, FONT, FRC, HAS_3D, I, LABEL, LABELFIELDNAMES, LABELFIELDS, MIME_DEFAULT, NONE, NORMAL, NULLSTROKE, PERCENT, PI2, SHAPE, SIN, STROKE, STROKEWIDTH, TIC, VALUE, X, Y, Z
 
Fields inherited from interface com.davisor.core.MIMETypes
FILETYPE_BMP, FILETYPE_CSS, FILETYPE_DOC, FILETYPE_ECMA, FILETYPE_GIF, FILETYPE_HTML, FILETYPE_HTML_CSS, FILETYPE_INDEX, FILETYPE_INDEX_DOC, FILETYPE_INDEX_HTML, FILETYPE_INDEX_HTML_CSS, FILETYPE_INDEX_PDF, FILETYPE_INDEX_PPT, FILETYPE_INDEX_SVG, FILETYPE_INDEX_XHTML, FILETYPE_INDEX_XLS, FILETYPE_INDEX_XMSE, FILETYPE_INDEX_XMSP, FILETYPE_INDEX_XMSW, FILETYPE_INDEX_XSLFO, FILETYPE_JPEG, FILETYPE_PDF, FILETYPE_PNG, FILETYPE_PNG_WBMP, FILETYPE_PPM, FILETYPE_PPT, FILETYPE_SVG, FILETYPE_TEXT, FILETYPE_WBMP, FILETYPE_XHTML, FILETYPE_XLS, FILETYPE_XML, FILETYPE_XMSE, FILETYPE_XMSP, FILETYPE_XMSW, FILETYPE_XSLFO, FILETYPE_XSLFO_CSS, MIME_BMP, MIME_CSS, MIME_DOC, MIME_ECMA, MIME_GIF, MIME_HTML, MIME_HTML_CSS, MIME_INDEX, MIME_INDEX_DOC, MIME_INDEX_HTML, MIME_INDEX_HTML_CSS, MIME_INDEX_PDF, MIME_INDEX_PPT, MIME_INDEX_SVG, MIME_INDEX_XHTML, MIME_INDEX_XLS, MIME_INDEX_XMSE, MIME_INDEX_XMSP, MIME_INDEX_XMSW, MIME_INDEX_XSLFO, MIME_JPEG, MIME_OTHER, MIME_PDF, MIME_PNG, MIME_PNG_WBMP, MIME_PPM, MIME_PPT, MIME_SVG, MIME_TEXT, MIME_WBMP, MIME_XHTML, MIME_XLS, MIME_XML, MIME_XMSE, MIME_XMSP, MIME_XMSW, MIME_XSLFO, MIME_XSLFO_CSS
 
Constructor Summary
RectGridFactory()
          Default constructor.
RectGridFactory(GridFactory factory)
          Copy constructor.
 
Method Summary
protected  java.awt.Shape createCellShape(java.awt.geom.Rectangle2D drawingArea, int[] steps, int level)
          Creates a new rectangel grid element shape object scaled to fill a cell of given size.
static java.awt.Shape createRectangle(double width, double height)
          Creates a new rectangle shape object scaled to fill a cell of given size.
 com.davisor.core.Dupable dup()
           
protected  java.awt.geom.Point2D getCellPoint(int x, int y, java.awt.geom.Rectangle2D drawingArea, int[] steps, int level)
          Computes the coordinates of the centermost point of the rectangle [x,y].
 
Methods inherited from class com.davisor.graphics.chart.GridFactory
drawCells, drawChart, drawChart, drawLabels, getIdealSize, resolveLimits
 
Methods inherited from class com.davisor.graphics.chart.AxisFactory
computeMinorMargin, createChart, createChart, createContext, createContext, createContext, createContext, createMetrics, createMetrics, createMetrics, createMetrics, drawAxis, drawMarkers, drawTics, drawXYAxes, drawXYZAxes, fillGrid, fillMarkers, formatDouble, getIdealSize, hasGridLines, isSilent, labelAxis, labelMarkers, resolveLabels, resolveLabels, resolveMarkerSizes, resolveOverlap, titleAxis, transpose
 
Methods inherited from class com.davisor.graphics.chart.ChartFactory
annotate, combineProperties, createChannelType, createChannelType, createChart, createChart, createChart, createChart, createChart, createFormat, createPaintChannelType, createPaintChannelType, createShapeChannelType, createShapeChannelType, createSummary, drawLabel, getContentType, getDefaultPaint, getFactory, getFactory, getGroup, getIsometricCoefficients, getLegendShape, getName, has3D, hasSVG, isClassAvailable, isMultiSeriesMode, main, mayHaveLegend, registerFactory, resolveDataLimits, resolveDataLimits, rotateSize, shade, unregisterFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectGridFactory

public RectGridFactory()
Default constructor.


RectGridFactory

public RectGridFactory(GridFactory factory)
Copy constructor.

Method Detail

dup

public com.davisor.core.Dupable dup()
                             throws com.davisor.core.DupNotSupportedError
Throws:
com.davisor.core.DupNotSupportedError

createCellShape

protected java.awt.Shape createCellShape(java.awt.geom.Rectangle2D drawingArea,
                                         int[] steps,
                                         int level)
Creates a new rectangel grid element shape object scaled to fill a cell of given size.

Specified by:
createCellShape in class GridFactory
Parameters:
drawingArea - area where cells will be drawn
steps - number of cell layers
level - zooming level
See Also:
createRectangle(double, double)

getCellPoint

protected java.awt.geom.Point2D getCellPoint(int x,
                                             int y,
                                             java.awt.geom.Rectangle2D drawingArea,
                                             int[] steps,
                                             int level)
Computes the coordinates of the centermost point of the rectangle [x,y].

Specified by:
getCellPoint in class GridFactory
Parameters:
x - cell x coordinate
y - cell y coordinate
drawingArea - area where cells will be drawn
steps - number of cell layers
level - zooming level

createRectangle

public static java.awt.Shape createRectangle(double width,
                                             double height)
Creates a new rectangle shape object scaled to fill a cell of given size.

Parameters:
width - cell width
height - cell height


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.