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(String label)
引数を指定して作成する コンストラクター
skip(ラベルの表示間隔) = 1 , cutNo(ラベルブレイクのsubstring 位置) = -1 で初期化します。
|
protected |
HybsCategoryAxis(String label,
int skip,
int cutNo)
引数を指定して作成する コンストラクター
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected org.jfree.text.TextBlock |
createLabel(Comparable category,
float width,
org.jfree.ui.RectangleEdge edge,
Graphics2D g2)
TextBlock オブジェクトを作成します。
|
boolean |
equals(Object object)
この文字列と指定されたオブジェクトを比較します。
|
double |
getCategoryJava2DCoordinate(org.jfree.chart.axis.CategoryAnchor anchor,
int category,
int categoryCount,
Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
ドメイン(横軸)のカテゴリ単位のライン(縦線)の描画位置を返します。
|
int |
hashCode()
このオブジェクトのハッシュコードを取得します。
|
protected boolean |
isLabelBreak(int column)
ラベルブレイクするかどうかを返します。
|
protected boolean |
isViewItemLabel(int column)
ITEM ラベル(各データの設定値の説明用の値)を表示するかどうかを返します。
|
List |
refreshTicks(Graphics2D g2,
org.jfree.chart.axis.AxisState state,
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(String label)
label
- ラベルprotected HybsCategoryAxis(String label, int skip, int cutNo)
label
- ラベルskip
- ラベルの表示間隔cutNo
- ラベルブレイクのsubstring 位置4.1.1.0 (2008/02/04) cutNo 新規追加 |
protected void setItemLabelLastVisible(boolean flag)
flag
- 最後の値のみ表示するかどうか[true/false]4.1.2.0 (2008/03/12) 新規追加 |
public List refreshTicks(Graphics2D g2, org.jfree.chart.axis.AxisState state, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge)
refreshTicks
クラス内 org.jfree.chart.axis.CategoryAxis
g2
- Graphics2Dオブジェクト(フォント測定に使用)state
- AxisStateオブジェクトdataArea
- インサイドエリアを示すRectangle2Dオブジェクトedge
- ロケーションを指定するRectangleEdgeオブジェクト4.1.1.0 (2008/02/04) labelBreak 新規追加 |
protected org.jfree.text.TextBlock createLabel(Comparable category, float width, org.jfree.ui.RectangleEdge edge, Graphics2D g2)
createLabel
クラス内 org.jfree.chart.axis.CategoryAxis
category
- カテゴリ名width
- 幅edge
- 表示範囲を示すRectangleEdgeオブジェクトg2
- Graphics2Dオブジェクト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参照はずしの対応 |
6.4.9.2 (2016/08/19) 横軸ラベルの折り返し対応 |
protected boolean isLabelBreak(int column)
column
- カラム番号4.1.1.0 (2008/02/04) 新規追加 |
protected boolean isViewItemLabel(int column)
column
- カラム番号4.1.2.0 (2008/03/12) 新規追加 |
public double getCategoryJava2DCoordinate(org.jfree.chart.axis.CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, org.jfree.ui.RectangleEdge edge)
getCategoryJava2DCoordinate
クラス内 org.jfree.chart.axis.CategoryAxis
anchor
- CategoryAnchorオブジェクトcategory
- カテゴリ番号categoryCount
- カテゴリ数area
- 範囲を表すRectangle2Dオブジェクトedge
- ロケーションを指定するRectangleEdgeオブジェクトpublic boolean equals(Object object)
equals
クラス内 org.jfree.chart.axis.CategoryAxis
object
- 比較するオブジェクト5.1.8.0 (2010/07/01) findbug対応 |
5.1.9.0 (2010/08/01) findbug対応 |
public int hashCode()
hashCode
クラス内 org.jfree.chart.axis.CategoryAxis
5.1.8.0 (2010/07/01) findbug対応 |
5.1.9.0 (2010/08/01) findbug対応 |
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.