openGionopenGion
5.4.3.3

org.opengion.hayabusa.io
クラス HybsCategoryPlot

java.lang.Object
  上位を拡張 org.jfree.chart.plot.Plot
      上位を拡張 org.jfree.chart.plot.CategoryPlot
          上位を拡張 org.opengion.hayabusa.io.HybsCategoryPlot
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Cloneable, java.util.EventListener, org.jfree.chart.event.AxisChangeListener, org.jfree.chart.event.MarkerChangeListener, org.jfree.chart.event.RendererChangeListener, org.jfree.chart.LegendItemSource, org.jfree.chart.plot.ValueAxisPlot, org.jfree.chart.plot.Zoomable, org.jfree.data.general.DatasetChangeListener, org.jfree.util.PublicCloneable

public class HybsCategoryPlot
extends org.jfree.chart.plot.CategoryPlot

HybsCategoryPlot は、CategoryPlot を拡張したカスタマイズクラスです。 これは、シリーズの表示色を変更する箇所で、描画順により、きれいに表示されない 現象への対応案です。 描画順を、最も最後に行うように、修正しています。 renders each data item using a CategoryItemRenderer.

関連項目:
直列化された形式
変更履歴:
3.8.9.2 (2007/07/28) 新規作成
バージョン
0.9.0 2001/05/05
作成者
Kazuhiko Hasegawa
導入されたバージョン:
JDK1.1,

フィールドの概要
 
クラス org.jfree.chart.plot.CategoryPlot から継承されたフィールド
DEFAULT_CROSSHAIR_PAINT, DEFAULT_CROSSHAIR_STROKE, DEFAULT_CROSSHAIR_VISIBLE, DEFAULT_DOMAIN_GRIDLINES_VISIBLE, DEFAULT_GRIDLINE_PAINT, DEFAULT_GRIDLINE_STROKE, DEFAULT_RANGE_GRIDLINES_VISIBLE, DEFAULT_VALUE_LABEL_FONT, localizationResources
 
クラス org.jfree.chart.plot.Plot から継承されたフィールド
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO
 
コンストラクタの概要
  HybsCategoryPlot()
          デフォルトコンストラクター シリーズ番号を、初期化しておきます。
protected HybsCategoryPlot(int serNo)
          シリーズ番号 を、指定して、オブジェクトを作成するコンストラクター
 
メソッドの概要
protected  void drawRangeGridlines(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, java.util.List ticks)
          Draws the gridlines for the plot.
 boolean equals(java.lang.Object object)
          この文字列と指定されたオブジェクトを比較します。
 int hashCode()
          このオブジェクトのハッシュコードを取得します。
 boolean render(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, int index, org.jfree.chart.plot.PlotRenderingInfo info)
          Draws a representation of a dataset within the dataArea region using the appropriate renderer.
protected  void setBarWidth(int index, java.lang.Double width)
          BarChart のバーの幅を直接指定します。
protected  void setRangeSkip(int rngSkip)
          縦軸のグリッド線(水平線)をスキップする間隔を指定します。
protected  void setSeriesPikup(int newSerNo)
          ピックアップするシリーズ番号を設定します。
 
クラス org.jfree.chart.plot.CategoryPlot から継承されたメソッド
addAnnotation, addAnnotation, addDomainMarker, addDomainMarker, addDomainMarker, addDomainMarker, addRangeMarker, addRangeMarker, addRangeMarker, addRangeMarker, calculateAxisSpace, calculateDomainAxisSpace, calculateRangeAxisSpace, clearAnnotations, clearDomainAxes, clearDomainMarkers, clearDomainMarkers, clearRangeAxes, clearRangeMarkers, clearRangeMarkers, clone, configureDomainAxes, configureRangeAxes, datasetChanged, draw, drawAnnotations, drawAxes, drawBackground, drawDomainCrosshair, drawDomainGridlines, drawDomainMarkers, drawRangeCrosshair, drawRangeLine, drawRangeMarkers, getAnchorValue, getAnnotations, getAxisOffset, getCategories, getCategoriesForAxis, getColumnRenderingOrder, getCrosshairDatasetIndex, getDataRange, getDataset, getDataset, getDatasetCount, getDatasetRenderingOrder, getDomainAxis, getDomainAxis, getDomainAxisCount, getDomainAxisEdge, getDomainAxisEdge, getDomainAxisForDataset, getDomainAxisIndex, getDomainAxisLocation, getDomainAxisLocation, getDomainCrosshairColumnKey, getDomainCrosshairPaint, getDomainCrosshairRowKey, getDomainCrosshairStroke, getDomainGridlinePaint, getDomainGridlinePosition, getDomainGridlineStroke, getDomainMarkers, getDomainMarkers, getDrawSharedDomainAxis, getFixedDomainAxisSpace, getFixedLegendItems, getFixedRangeAxisSpace, getIndexOf, getLegendItems, getOrientation, getPlotType, getRangeAxis, getRangeAxis, getRangeAxisCount, getRangeAxisEdge, getRangeAxisEdge, getRangeAxisForDataset, getRangeAxisIndex, getRangeAxisLocation, getRangeAxisLocation, getRangeCrosshairPaint, getRangeCrosshairStroke, getRangeCrosshairValue, getRangeGridlinePaint, getRangeGridlineStroke, getRangeMarkers, getRangeMarkers, getRenderer, getRenderer, getRendererCount, getRendererForDataset, getRowRenderingOrder, getWeight, handleClick, indexOf, isDomainCrosshairVisible, isDomainGridlinesVisible, isDomainZoomable, isRangeCrosshairLockedOnData, isRangeCrosshairVisible, isRangeGridlinesVisible, isRangeZoomable, mapDatasetToDomainAxis, mapDatasetToRangeAxis, removeAnnotation, removeAnnotation, removeDomainMarker, removeDomainMarker, removeDomainMarker, removeDomainMarker, removeRangeMarker, removeRangeMarker, removeRangeMarker, removeRangeMarker, render, rendererChanged, setAnchorValue, setAnchorValue, setAxisOffset, setColumnRenderingOrder, setCrosshairDatasetIndex, setCrosshairDatasetIndex, setDataset, setDataset, setDatasetRenderingOrder, setDomainAxes, setDomainAxis, setDomainAxis, setDomainAxis, setDomainAxisLocation, setDomainAxisLocation, setDomainAxisLocation, setDomainAxisLocation, setDomainCrosshairColumnKey, setDomainCrosshairColumnKey, setDomainCrosshairPaint, setDomainCrosshairRowKey, setDomainCrosshairRowKey, setDomainCrosshairStroke, setDomainCrosshairVisible, setDomainGridlinePaint, setDomainGridlinePosition, setDomainGridlineStroke, setDomainGridlinesVisible, setDrawSharedDomainAxis, setFixedDomainAxisSpace, setFixedDomainAxisSpace, setFixedLegendItems, setFixedRangeAxisSpace, setFixedRangeAxisSpace, setOrientation, setRangeAxes, setRangeAxis, setRangeAxis, setRangeAxis, setRangeAxisLocation, setRangeAxisLocation, setRangeAxisLocation, setRangeAxisLocation, setRangeCrosshairLockedOnData, setRangeCrosshairPaint, setRangeCrosshairStroke, setRangeCrosshairValue, setRangeCrosshairValue, setRangeCrosshairVisible, setRangeGridlinePaint, setRangeGridlineStroke, setRangeGridlinesVisible, setRenderer, setRenderer, setRenderer, setRenderer, setRenderers, setRowRenderingOrder, setWeight, zoom, zoomDomainAxes, zoomDomainAxes, zoomDomainAxes, zoomRangeAxes, zoomRangeAxes, zoomRangeAxes
 
クラス org.jfree.chart.plot.Plot から継承されたメソッド
addChangeListener, axisChanged, drawBackgroundImage, drawNoDataMessage, drawOutline, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

HybsCategoryPlot

public HybsCategoryPlot()
デフォルトコンストラクター シリーズ番号を、初期化しておきます。


HybsCategoryPlot

protected HybsCategoryPlot(int serNo)
シリーズ番号 を、指定して、オブジェクトを作成するコンストラクター

パラメータ:
serNo - int ピックアップするシリーズ番号
メソッドの詳細

setSeriesPikup

protected void setSeriesPikup(int newSerNo)
ピックアップするシリーズ番号を設定します。

パラメータ:
newSerNo - int ピックアップするシリーズ番号
変更履歴:
4.1.1.0 (2008/02/04) データの値(itemText)表示の継承

setRangeSkip

protected void setRangeSkip(int rngSkip)
縦軸のグリッド線(水平線)をスキップする間隔を指定します。 縦軸のグリッド線を表示する際に、スキップする間隔を指定します。 通常は、ラベルと同じだけのグリッド線が掛かれますが、ラベルよりも 少ない数のグリッド線(例えば、2つおき)を出す場合に、値を設定します。 "1" (初期値)では、1つづつ表示(つまり、すべて表示する)します。 "2" とすると、1つおきに、"3" とすると、2つおきに表示します。 初期値は、"1" (すべて表示)です。 なお、先頭から表示を開始します。

パラメータ:
rngSkip - int 縦軸のグリッド線(水平線)をスキップする間隔
変更履歴:
4.1.1.0 (2008/02/04) 新規追加

setBarWidth

protected void setBarWidth(int index,
                           java.lang.Double width)
BarChart のバーの幅を直接指定します。 通常は、maxBarWidth や itemMargin で比率指定しますが、 ここでは、CategoryItemRendererState オブジェクトに直接設定する為の データセット単位のマップを作成します。

パラメータ:
index - int データセット番号
width - Double バーの幅

render

public boolean render(java.awt.Graphics2D g2,
                      java.awt.geom.Rectangle2D dataArea,
                      int index,
                      org.jfree.chart.plot.PlotRenderingInfo info)
Draws a representation of a dataset within the dataArea region using the appropriate renderer.

パラメータ:
g2 - the graphics device.
dataArea - the region in which the data is to be drawn.
index - the dataset and renderer index.
info - an optional object for collection dimension information.
戻り値:
A boolean that indicates whether or not real data was found.

drawRangeGridlines

protected void drawRangeGridlines(java.awt.Graphics2D g2,
                                  java.awt.geom.Rectangle2D dataArea,
                                  java.util.List ticks)
Draws the gridlines for the plot.

オーバーライド:
クラス org.jfree.chart.plot.CategoryPlot 内の drawRangeGridlines
パラメータ:
g2 - the graphics device.
dataArea - the area inside the axes.
ticks - the ticks.
関連項目:
CategoryPlot.drawDomainGridlines(Graphics2D, Rectangle2D)

equals

public boolean equals(java.lang.Object object)
この文字列と指定されたオブジェクトを比較します。 親クラスで、equals メソッドが実装されているため、警告がでます。

オーバーライド:
クラス org.jfree.chart.plot.CategoryPlot 内の equals
パラメータ:
object - Object
戻り値:
boolean Objectが等しい場合は true、そうでない場合は false
変更履歴:
5.1.8.0 (2010/07/01) findbug対応
5.1.9.0 (2010/08/01) findbug対応

hashCode

public int hashCode()
このオブジェクトのハッシュコードを取得します。

オーバーライド:
クラス java.lang.Object 内の hashCode
戻り値:
int ハッシュコード
変更履歴:
5.1.8.0 (2010/07/01) findbug対応
5.1.9.0 (2010/08/01) findbug対応

openGion 5.4.3.3

Webアプリケーションフレームワーク openGion
SourceForge.JPCopyright (c) 2009 The openGion Project.