|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.graphics.chart.ChartFactory
com.davisor.graphics.chart.AxisFactory
com.davisor.graphics.chart.BarFactory
com.davisor.graphics.chart.RowBarFactory
RowBarFactory implements a bar chart producer that can make horizontal row bar charts from one-dimensional multichannel data.
This factory inherits all of it's attribute and data operation
logic from AxisFactory superclass, and most of it's
rendering logic from BarFactory superclass. In fact, this
class implements itself only some low-level rendering methods that
lay out bar chart visual elements in a way suitable for row bar
charts. Please see AxisFactory documentation for more
information about what kind of data and attributes this factory
accepts.
ChartAttributes,
ChartData,
ColumnBarFactory,
LineFactory,
PieFactory,
ScatterFactory| Nested Class Summary |
| Nested classes inherited from class com.davisor.graphics.chart.BarFactory |
BarFactory.BarEntry, BarFactory.BarLabel, BarFactory.BarMetrics |
| 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.BarFactory |
NEG, POS |
| 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 | |
RowBarFactory()
Default constructor. |
|
RowBarFactory(BarFactory factory)
Copy constructor. |
|
| Method Summary | |
protected void |
drawBar(java.awt.Graphics2D g,
java.awt.Paint color,
java.awt.Paint[] paint,
int group,
int bar,
float zero,
float groupWidth,
float barWidth,
float gapWidth,
float borderWidth,
float beginValue,
float endValue,
float dx,
float dy)
Draws a bar segment in a bar group. |
protected void |
drawValue(java.awt.Graphics2D g,
java.awt.Paint color,
java.awt.Paint paint,
java.awt.Font font,
java.lang.String label,
AxisFactory.AxisMetrics metrics,
int group,
int bar,
float groupWidth,
float barWidth,
float gapWidth,
float beginValue,
float endValue,
int alignment,
float padding)
Draws a bar value at the top of a bar. |
com.davisor.core.Dupable |
dup()
Duplicates this factory. |
protected int |
getCategoryAxis()
Gets the index of the axis along which the bottoms of the bars are faced. |
protected int |
getValueAxis()
Gets the index of the axis along which the bars grow. |
| Methods inherited from class com.davisor.graphics.chart.BarFactory |
computeMinorMargin, createContext, createMetrics, drawBar, drawBar, drawChart, getGap, getIdealSize, hasGridLines, isSilent, renderChart, resolveDataLimits, resolveLimits |
| Methods inherited from class com.davisor.graphics.chart.AxisFactory |
createChart, createChart, createContext, createContext, createContext, createMetrics, createMetrics, createMetrics, drawAxis, drawMarkers, drawTics, drawXYAxes, drawXYZAxes, fillGrid, fillMarkers, formatDouble, getIdealSize, 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, rotateSize, shade, unregisterFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RowBarFactory()
public RowBarFactory(BarFactory factory)
| Method Detail |
protected int getCategoryAxis()
getCategoryAxis in class BarFactorygetValueAxis(),
ColumnBarFactory.getCategoryAxis()protected int getValueAxis()
getValueAxis in class BarFactorygetCategoryAxis(),
ColumnBarFactory.getValueAxis()
protected void drawBar(java.awt.Graphics2D g,
java.awt.Paint color,
java.awt.Paint[] paint,
int group,
int bar,
float zero,
float groupWidth,
float barWidth,
float gapWidth,
float borderWidth,
float beginValue,
float endValue,
float dx,
float dy)
drawBar in class BarFactoryg - the graphics' context to draw incolor - bar segment border colorpaint - bar segment fill paint shadesgroup - the number of this bar groupbar - bar sequence number within this groupzero - bar zero position along the element axisgroupWidth - bar group widthbarWidth - bar group widthgapWidth - bar group gap widthborderWidth - bar border widthbeginValue - bar begin valueendValue - bar end valuedx - shearing X-offsetdy - shearing Y-offsetdrawBar(java.awt.Graphics2D, java.awt.Paint, java.awt.Paint[], int, int, float, float, float, float, float, float, float, float, float),
ChartFactory.shade(java.awt.Paint),
ColumnBarFactory.drawBar(java.awt.Graphics2D, java.awt.Paint, java.awt.Paint[], int, int, float, float, float, float, float, float, float, float, float),
drawBar(java.awt.Graphics2D, java.awt.Paint, java.awt.Paint[], int, int, float, float, float, float, float, float, float, float, float)
protected void drawValue(java.awt.Graphics2D g,
java.awt.Paint color,
java.awt.Paint paint,
java.awt.Font font,
java.lang.String label,
AxisFactory.AxisMetrics metrics,
int group,
int bar,
float groupWidth,
float barWidth,
float gapWidth,
float beginValue,
float endValue,
int alignment,
float padding)
drawValue in class BarFactoryg - the graphics' context to draw incolor - label colorfont - label fontlabel - value textmetrics - chart axis intogroup - the number of this bar groupbar - bar sequence number within this groupgroupWidth - bar group widthbarWidth - bar group widthgapWidth - bar group widthbeginValue - bar begin valueendValue - bar end valuealignment - label alignmentpadding - padding around the labelChartFactory.drawLabel(java.awt.Graphics2D, java.awt.Paint, java.awt.Paint, java.awt.Font, java.lang.String, int, int, float, float, float, float, float, float, float)public com.davisor.core.Dupable dup()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||