|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectrankine.graph.GraphAxis
public class GraphAxis
グラフ軸
フィールドの概要 | |
---|---|
protected double |
coef0
実データ−描画位置変換係数 |
protected double |
coef1
実データ−描画位置変換係数 |
protected java.lang.String |
name
軸ラベル |
protected double |
scale
軸目盛幅 |
static int |
SCALE_SIZE
目盛描画サイズ |
protected double |
scaleMax
軸範囲最大値 |
protected double |
scaleMin
軸範囲最小値 |
コンストラクタの概要 | |
---|---|
GraphAxis(java.lang.String name)
グラフ軸を構築する |
メソッドの概要 | |
---|---|
void |
paintHorizontal(java.awt.Graphics2D g,
int x0,
int y0,
int width)
水平軸を描画する |
void |
paintVertical(java.awt.Graphics2D g,
int x0,
int y0,
int height)
垂直軸を描画する |
void |
setCoef(int p0,
int range,
int direc)
係数を設定する |
void |
setScale(double minValue,
double maxValue)
グラフ目盛を設定する |
double |
toData(int x)
描画位置を実データに変換する |
int |
toView(double x)
実データを描画位置に変換する |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int SCALE_SIZE
protected java.lang.String name
protected double scaleMin
protected double scaleMax
protected double scale
protected double coef1
protected double coef0
コンストラクタの詳細 |
---|
public GraphAxis(java.lang.String name)
name
- 軸ラベルメソッドの詳細 |
---|
public void setScale(double minValue, double maxValue)
minValue
- データ最小値maxValue
- データ最大値public void setCoef(int p0, int range, int direc)
p0
- 基準位置range
- 表示範囲direc
- 軸方向 1:水平軸 -1:垂直軸public int toView(double x)
x
- 実データ
public double toData(int x)
x
- 描画位置
public void paintHorizontal(java.awt.Graphics2D g, int x0, int y0, int width)
g
- 描画するグラフィックスコンテキストx0
- 基準 x 座標y0
- 基準 y 座標width
- 表示幅public void paintVertical(java.awt.Graphics2D g, int x0, int y0, int height)
g
- 描画するグラフィックスコンテキストx0
- 基準 x 座標y0
- 基準 y 座標height
- 表示高さ
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |