public class HybsCategoryAxis
extends org.jfree.chart.axis.CategoryAxis
HybsCategoryAxis は、CategoryAxis クラスを継承した、横軸管理クラスです。 横軸ラベルの表示制御を、主に行っています。 横軸表示には、3つの制御機能がカスタマイズされています。 1."_" ラベルのスキップ(非表示) 2.cutNo 属性による、ラベル文字位置指定のキーブレイク 3.skip 属性による、ラベルをスキップする間隔の指定 上記、1,2,3 の順番で優先的に処理されます。
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)
引数を指定して作成する コンストラクター
skip(ラベルの表示間隔) = 1 , cutNo(ラベルブレイクのsubstring 位置) = -1 で初期化します。
|
protected |
HybsCategoryAxis(java.lang.String label,
int skip,
int cutNo)
引数を指定して作成する コンストラクター
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected org.jfree.text.TextBlock |
createLabel(java.lang.Comparable category,
float width,
org.jfree.ui.RectangleEdge edge,
java.awt.Graphics2D g2)
TextBlock オブジェクトを作成します。
|
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)
軸を引く場合、使用することができるチックの一時的リストを作成します。
|
protected void |
setItemLabelLastVisible(boolean flag)
itemLabelVisible 時に、最後の値のみ表示するかどうか[true/false]を指定します。
|
addCategoryLabelToolTip, addCategoryLabelURL, calculateCategoryGapSize, calculateCategorySize, calculateTextBlockHeight, calculateTextBlockWidth, clearCategoryLabelToolTips, clearCategoryLabelURLs, clone, configure, draw, drawCategoryLabels, drawCategoryLabels, drawTickMarks, getCategoryEnd, getCategoryLabelPositionOffset, getCategoryLabelPositions, getCategoryLabelToolTip, getCategoryLabelURL, getCategoryMargin, getCategoryMiddle, getCategoryMiddle, getCategorySeriesMiddle, getCategorySeriesMiddle, getCategoryStart, getLowerMargin, getMaximumCategoryLabelLines, getMaximumCategoryLabelWidthRatio, getTickLabelFont, getTickLabelPaint, getUpperMargin, removeCategoryLabelToolTip, removeCategoryLabelURL, reserveSpace, setCategoryLabelPositionOffset, setCategoryLabelPositions, setCategoryMargin, setLowerMargin, setMaximumCategoryLabelLines, setMaximumCategoryLabelWidthRatio, setTickLabelFont, setTickLabelPaint, setUpperMargin
addChangeListener, createAndAddEntity, createAttributedLabel, drawAttributedLabel, drawAxisLine, drawLabel, fireChangeEvent, getAttributedLabel, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelEnclosure, getLabelFont, getLabelInsets, getLabelLocation, getLabelPaint, getMinorTickMarkInsideLength, getMinorTickMarkOutsideLength, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isMinorTickMarksVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, labelAnchorH, labelAnchorV, labelLocationX, labelLocationY, notifyListeners, removeChangeListener, setAttributedLabel, setAttributedLabel, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelInsets, setLabelLocation, setLabelPaint, setMinorTickMarkInsideLength, setMinorTickMarkOutsideLength, setMinorTickMarksVisible, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
public HybsCategoryAxis(java.lang.String label)
label
- ラベルprotected HybsCategoryAxis(java.lang.String label, int skip, int cutNo)
label
- ラベルskip
- ラベルの表示間隔cutNo
- ラベルブレイクのsubstring 位置protected void setItemLabelLastVisible(boolean flag)
flag
- 最後の値のみ表示するかどうか[true/false]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)
refreshTicks
クラス内 org.jfree.chart.axis.CategoryAxis
g2
- Graphics2Dオブジェクト(フォント測定に使用)state
- AxisStateオブジェクトdataArea
- インサイドエリアを示すRectangle2Dオブジェクトedge
- ロケーションを指定するRectangleEdgeオブジェクトprotected org.jfree.text.TextBlock createLabel(java.lang.Comparable category, float width, org.jfree.ui.RectangleEdge edge, java.awt.Graphics2D g2)
createLabel
クラス内 org.jfree.chart.axis.CategoryAxis
category
- カテゴリ名width
- 幅edge
- 表示範囲を示すRectangleEdgeオブジェクトg2
- Graphics2Dオブジェクトprotected boolean isLabelBreak(int column)
column
- カラム番号protected boolean isViewItemLabel(int column)
column
- カラム番号public double getCategoryJava2DCoordinate(org.jfree.chart.axis.CategoryAnchor anchor, int category, int categoryCount, java.awt.geom.Rectangle2D area, org.jfree.ui.RectangleEdge edge)
getCategoryJava2DCoordinate
クラス内 org.jfree.chart.axis.CategoryAxis
anchor
- CategoryAnchorオブジェクトcategory
- カテゴリ番号categoryCount
- カテゴリ数area
- 範囲を表すRectangle2Dオブジェクトedge
- ロケーションを指定するRectangleEdgeオブジェクトpublic boolean equals(java.lang.Object object)
equals
クラス内 org.jfree.chart.axis.CategoryAxis
object
- 比較するオブジェクトpublic int hashCode()
hashCode
クラス内 org.jfree.chart.axis.CategoryAxis
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.