|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
rankine.graph.GraphWindow
public class GraphWindow
グラフ窓
入れ子のクラスの概要 |
---|
クラス java.awt.geom.Rectangle2D から継承された入れ子のクラス/インタフェース |
---|
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
フィールドの概要 | |
---|---|
protected java.awt.geom.Point2D[] |
p1
飽和蒸気線図の点データを格納する配列 |
protected java.awt.geom.Point2D[] |
p2
サイクルの点データを格納する配列 |
protected GraphAxis |
xAxis
x 軸 |
protected GraphAxis |
yAxis
y 軸 |
クラス java.awt.Rectangle から継承されたフィールド |
---|
height, width, x, y |
クラス java.awt.geom.Rectangle2D から継承されたフィールド |
---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
コンストラクタの概要 | |
---|---|
GraphWindow(java.lang.String xLabel,
boolean xIsLog,
java.lang.String yLabel,
boolean yIsLog)
グラフ窓を構築する |
|
GraphWindow(java.lang.String xLabel,
java.lang.String yLabel)
グラフ窓を構築する |
メソッドの概要 | |
---|---|
protected boolean |
containsBorder(int px,
int py)
境界または内部かどうかを帰す |
void |
paint(java.awt.Graphics2D g,
java.awt.Color fgColor,
java.awt.Color subColor)
グラフを描画する |
protected void |
paintBorder(java.awt.Graphics2D g)
グラフ枠を描画する |
protected void |
paintData(java.awt.Graphics2D g,
java.awt.geom.Point2D[] p,
boolean closed)
グラフデータを描画する |
protected void |
paintLineBorders(java.awt.Graphics2D g,
int x1,
int y1,
int x2,
int y2)
枠を跨ぐグラフ線を描画する |
void |
setAxis()
データ軸を設定する |
void |
setData(java.awt.geom.Point2D[] p1,
java.awt.geom.Point2D[] p2)
データを設定する |
クラス java.awt.Rectangle から継承されたメソッド |
---|
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union |
クラス java.awt.geom.Rectangle2D から継承されたメソッド |
---|
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
クラス java.awt.geom.RectangularShape から継承されたメソッド |
---|
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
クラス java.lang.Object から継承されたメソッド |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
インタフェース java.awt.Shape から継承されたメソッド |
---|
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects |
フィールドの詳細 |
---|
protected java.awt.geom.Point2D[] p1
protected java.awt.geom.Point2D[] p2
protected GraphAxis xAxis
protected GraphAxis yAxis
コンストラクタの詳細 |
---|
public GraphWindow(java.lang.String xLabel, java.lang.String yLabel)
xLabel
- x 軸ラベルyLabel
- y 軸ラベルpublic GraphWindow(java.lang.String xLabel, boolean xIsLog, java.lang.String yLabel, boolean yIsLog)
xLabel
- x 軸ラベルxIsLog
- x 軸が対数軸は場合は trueyLabel
- y 軸ラベルyIsLog
- x 軸が対数軸は場合は trueメソッドの詳細 |
---|
public void setData(java.awt.geom.Point2D[] p1, java.awt.geom.Point2D[] p2)
p1
- 飽和蒸気線図の点データを格納した配列p2
- サイクルの点データを格納した配列public void setAxis()
public void paint(java.awt.Graphics2D g, java.awt.Color fgColor, java.awt.Color subColor)
g
- 描画するグラフィックスコンテキストfgColor
- 前景色subColor
- 薄い色protected void paintData(java.awt.Graphics2D g, java.awt.geom.Point2D[] p, boolean closed)
g
- 描画するグラフィックスコンテキストp
- 点データを格納した配列closed
- グラフが閉じている場合は trueprotected boolean containsBorder(int px, int py)
px
- 点の x 座標py
- 点の y 座標
protected void paintLineBorders(java.awt.Graphics2D g, int x1, int y1, int x2, int y2)
g
- 描画するグラフィックスコンテキストx1
- 領域内の点の x 座標y1
- 領域内の点の y 座標x2
- 領域外の点の x 座標y2
- 領域外の点の y 座標protected void paintBorder(java.awt.Graphics2D g)
g
- 描画するグラフィックスコンテキスト
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |