openGionopenGion
5.5.2.1

org.opengion.hayabusa.io
クラス HybsCategoryAxis

java.lang.Object
  上位を拡張 org.jfree.chart.axis.Axis
      上位を拡張 org.jfree.chart.axis.CategoryAxis
          上位を拡張 org.opengion.hayabusa.io.HybsCategoryAxis
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Cloneable

public class HybsCategoryAxis
extends org.jfree.chart.axis.CategoryAxis

HybsCategoryAxis は、CategoryAxis クラスを継承した、横軸管理クラスです。 横軸ラベルの表示制御を、主に行っています。 横軸表示には、3つの制御機能がカスタマイズされています。 1."_" ラベルのスキップ(非表示) 2.cutNo 属性による、ラベル文字位置指定のキーブレイク 3.skip 属性による、ラベルをスキップする間隔の指定 上記、1,2,3 の順番で優先的に処理されます。

関連項目:
直列化された形式
バージョン
0.9.0 2007/06/21
作成者
Kazuhiko Hasegawa
導入されたバージョン:
JDK1.1,

フィールドの概要
 
クラス org.jfree.chart.axis.CategoryAxis から継承されたフィールド
DEFAULT_AXIS_MARGIN, DEFAULT_CATEGORY_MARGIN
 
クラス org.jfree.chart.axis.Axis から継承されたフィールド
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_VISIBLE, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_LABELS_VISIBLE, DEFAULT_TICK_MARK_INSIDE_LENGTH, DEFAULT_TICK_MARK_OUTSIDE_LENGTH, DEFAULT_TICK_MARK_PAINT, DEFAULT_TICK_MARK_STROKE, DEFAULT_TICK_MARKS_VISIBLE
 
コンストラクタの概要
  HybsCategoryAxis(java.lang.String label)
          Creates a new category axis with no label.
protected HybsCategoryAxis(java.lang.String label, int skip, int cutNo)
          Constructs a category axis, using default values where necessary.
 
メソッドの概要
protected  org.jfree.text.TextBlock createLabel(java.lang.Comparable category, float width, org.jfree.ui.RectangleEdge edge, java.awt.Graphics2D g2)
          Creates a label.
 boolean equals(java.lang.Object object)
          この文字列と指定されたオブジェクトを比較します。
 double getCategoryJava2DCoordinate(org.jfree.chart.axis.CategoryAnchor anchor, int category, int categoryCount, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)
          ドメイン(横軸)のカテゴリ単位のライン(縦線)の描画位置を返します。
 int hashCode()
          このオブジェクトのハッシュコードを取得します。
protected  boolean isLabelBreak(int column)
          ラベルブレイクするかどうかを返します。
protected  boolean isViewItemLabel(int column)
          ITEM ラベル(各データの設定値の説明用の値)を表示するかどうかを返します。
 java.util.List<?> refreshTicks(java.awt.Graphics2D g2, org.jfree.chart.axis.AxisState state, java.awt.geom.Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)
          Creates a temporary list of ticks that can be used when drawing the axis.
protected  void setItemLabelLastVisible(boolean flag)
          itemLabelVisible 時に、最後の値のみ表示するかどうかを指定します。
 
クラス org.jfree.chart.axis.CategoryAxis から継承されたメソッド
addCategoryLabelToolTip, calculateCategoryGapSize, calculateCategorySize, calculateTextBlockHeight, calculateTextBlockWidth, clearCategoryLabelToolTips, clone, configure, draw, drawCategoryLabels, drawCategoryLabels, drawTickMarks, getCategoryEnd, getCategoryLabelPositionOffset, getCategoryLabelPositions, getCategoryLabelToolTip, getCategoryMargin, getCategoryMiddle, getCategoryMiddle, getCategorySeriesMiddle, getCategorySeriesMiddle, getCategoryStart, getLowerMargin, getMaximumCategoryLabelLines, getMaximumCategoryLabelWidthRatio, getTickLabelFont, getTickLabelPaint, getUpperMargin, removeCategoryLabelToolTip, reserveSpace, setCategoryLabelPositionOffset, setCategoryLabelPositions, setCategoryMargin, setLowerMargin, setMaximumCategoryLabelLines, setMaximumCategoryLabelWidthRatio, setTickLabelFont, setTickLabelPaint, setUpperMargin
 
クラス org.jfree.chart.axis.Axis から継承されたメソッド
addChangeListener, createAndAddEntity, drawAxisLine, drawLabel, fireChangeEvent, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelEnclosure, getLabelFont, getLabelInsets, getLabelPaint, getMinorTickMarkInsideLength, getMinorTickMarkOutsideLength, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isMinorTickMarksVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, notifyListeners, removeChangeListener, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelInsets, setLabelPaint, setMinorTickMarkInsideLength, setMinorTickMarkOutsideLength, setMinorTickMarksVisible, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

HybsCategoryAxis

public HybsCategoryAxis(java.lang.String label)
Creates a new category axis with no label.


HybsCategoryAxis

protected HybsCategoryAxis(java.lang.String label,
                           int skip,
                           int cutNo)
Constructs a category axis, using default values where necessary.

パラメータ:
label - String the axis label (null permitted).
skip - int ラベルの表示間隔
cutNo - int ラベルブレイクのsubstring 位置
変更履歴:
4.1.1.0 (2008/02/04) cutNo 新規追加
メソッドの詳細

setItemLabelLastVisible

protected void setItemLabelLastVisible(boolean flag)
itemLabelVisible 時に、最後の値のみ表示するかどうかを指定します。 これは、itemLabelVisible 属性に、"last" という設定値を指定した場合は、 最後のみラベル表示します。 このメソッドでは、true が指定された場合は、"last" 属性が有効になったと 判断します。

パラメータ:
flag - boolean
変更履歴:
4.1.2.0 (2008/03/12) 新規追加

refreshTicks

public java.util.List<?> refreshTicks(java.awt.Graphics2D g2,
                                      org.jfree.chart.axis.AxisState state,
                                      java.awt.geom.Rectangle2D dataArea,
                                      org.jfree.ui.RectangleEdge edge)
Creates a temporary list of ticks that can be used when drawing the axis.

オーバーライド:
クラス org.jfree.chart.axis.CategoryAxis 内の refreshTicks
パラメータ:
g2 - the graphics device (used to get font measurements).
state - the axis state.
dataArea - the area inside the axes.
edge - the location of the axis.
戻り値:
A list of ticks.
変更履歴:
4.1.1.0 (2008/02/04) labelBreak 新規追加

createLabel

protected org.jfree.text.TextBlock createLabel(java.lang.Comparable category,
                                               float width,
                                               org.jfree.ui.RectangleEdge edge,
                                               java.awt.Graphics2D g2)
Creates a label. このメソッドでは、3つの拡張機能を実現しています。 1."_" ラベルのスキップ(非表示) 2.cutNo 属性による、ラベル文字位置指定のキーブレイク 3.skip 属性による、ラベルをスキップする間隔の指定 cutNo が指定された場合は、skip 処理は行われません。また、 その場合のラベルは、cutNoで指定された先頭文字列のみ表示されます。 文字列が、cutNoで指定された数より小さい場合は、そのまま使用されます。

オーバーライド:
クラス org.jfree.chart.axis.CategoryAxis 内の createLabel
パラメータ:
category - the category.
width - the available width.
edge - the edge on which the axis appears.
g2 - the graphics device.
戻り値:
A label.
変更履歴:
4.1.1.0 (2008/02/04) cutNo,labelBreak 追加
4.1.2.0 (2008/03/12) LabelVisible.UNDER 処理を追加
4.3.1.1 (2008/08/23) lbl の null参照はずしの対応

isLabelBreak

protected boolean isLabelBreak(int column)
ラベルブレイクするかどうかを返します。 skip または、cutNo によるラベルの間引き処理で、指定のCategoryAxis に対するカラム番号を指定する事で、判定値を返します。 処理が、Label の作成済みかどうかに依存する為、その判定を先に行います。

パラメータ:
column - int
戻り値:
boolean ラベルブレイクするかどうか(true:する)
変更履歴:
4.1.1.0 (2008/02/04) 新規追加

isViewItemLabel

protected boolean isViewItemLabel(int column)
ITEM ラベル(各データの設定値の説明用の値)を表示するかどうかを返します。 ラベルの先頭に、アンダースコアがついたラベルは、ラベルの表示と ItemLabel の表示を抑止します。(false) それ以外のラベルは、表示する(true) を返します。 処理が、Label の作成済みかどうかに依存する為、その判定を先に行います。

パラメータ:
column - int
戻り値:
boolean ITEM ラベルを表示するかどうか(true:する)
変更履歴:
4.1.2.0 (2008/03/12) 新規追加

getCategoryJava2DCoordinate

public double getCategoryJava2DCoordinate(org.jfree.chart.axis.CategoryAnchor anchor,
                                          int category,
                                          int categoryCount,
                                          java.awt.geom.Rectangle2D area,
                                          org.jfree.ui.RectangleEdge edge)
ドメイン(横軸)のカテゴリ単位のライン(縦線)の描画位置を返します。 この位置は、labelBreak が存在しないか、または、ブレークするときのみ 値を返します。これにより、ライン(縦線)の位置を、グラフの中心から ずらす事が可能になります。 また、labelBreak により、ラベルを描画しない場合は、線の位置を、0 に 設定する事で、画面から見えなくします。

オーバーライド:
クラス org.jfree.chart.axis.CategoryAxis 内の getCategoryJava2DCoordinate
パラメータ:
anchor - the anchor point.
category - the category index.
categoryCount - the category count.
area - the data area.
edge - the location of the axis.
戻り値:
The coordinate.

equals

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

オーバーライド:
クラス org.jfree.chart.axis.CategoryAxis 内の 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()
このオブジェクトのハッシュコードを取得します。

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

openGion 5.5.2.1

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