- Home ›
- JFreeChartを使ったグラフ作成 ›
- RectangleAnchorクラス ›
- HERE
RectangleAnchorクラス
広告
RectangleAnchorクラスのクラス図は次のようになっています。
- java.lang.Object
- org.jfree.ui.RectangleAnchor
- public final class RectangleAnchor extends java.lang.Object implements java.io.Serializable
コンストラクタは用意されておらずstaticフィールドを使用します。用意されているものは次の通りです。
RectangleAnchor.BOTTOM 下 RectangleAnchor.BOTTOM_LEFT 左下 RectangleAnchor.BOTTOM_RIGHT 右下 RectangleAnchor.CENTER 中央 RectangleAnchor.LEFT 左 RectangleAnchor.RIGHT 右 RectangleAnchor.TOP 上 RectangleAnchor.TOP_LEFT 左上 RectangleAnchor.TOP_RIGHT 右上
例えば次のように記述します。
LegendTitle legend = chart.getLegend(); legend.setLegendItemGraphicLocation(RectangleAnchor.BOTTOM);
上記は凡例の中のアイテムとして表示される画像の位置を指定しています。
( Written by Tatsuo Ikura )