rankine.graph
クラス GraphWindow

java.lang.Object
  上位を拡張 java.awt.geom.RectangularShape
      上位を拡張 java.awt.geom.Rectangle2D
          上位を拡張 java.awt.Rectangle
              上位を拡張 rankine.graph.GraphWindow
すべての実装されたインタフェース:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable

public class GraphWindow
extends java.awt.Rectangle

グラフ窓

関連項目:
直列化された形式

入れ子のクラスの概要
 
クラス 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
 

フィールドの詳細

p1

protected java.awt.geom.Point2D[] p1
飽和蒸気線図の点データを格納する配列


p2

protected java.awt.geom.Point2D[] p2
サイクルの点データを格納する配列


xAxis

protected GraphAxis xAxis
x


yAxis

protected GraphAxis yAxis
y

コンストラクタの詳細

GraphWindow

public GraphWindow(java.lang.String xLabel,
                   java.lang.String yLabel)
グラフ窓を構築する

パラメータ:
xLabel - x 軸ラベル
yLabel - y 軸ラベル

GraphWindow

public GraphWindow(java.lang.String xLabel,
                   boolean xIsLog,
                   java.lang.String yLabel,
                   boolean yIsLog)
グラフ窓を構築する

パラメータ:
xLabel - x 軸ラベル
xIsLog - x 軸が対数軸は場合は true
yLabel - y 軸ラベル
yIsLog - x 軸が対数軸は場合は true
メソッドの詳細

setData

public void setData(java.awt.geom.Point2D[] p1,
                    java.awt.geom.Point2D[] p2)
データを設定する

パラメータ:
p1 - 飽和蒸気線図の点データを格納した配列
p2 - サイクルの点データを格納した配列

setAxis

public void setAxis()
データ軸を設定する


paint

public void paint(java.awt.Graphics2D g,
                  java.awt.Color fgColor,
                  java.awt.Color subColor)
グラフを描画する

パラメータ:
g - 描画するグラフィックスコンテキスト
fgColor - 前景色
subColor - 薄い色

paintData

protected void paintData(java.awt.Graphics2D g,
                         java.awt.geom.Point2D[] p,
                         boolean closed)
グラフデータを描画する

パラメータ:
g - 描画するグラフィックスコンテキスト
p - 点データを格納した配列
closed - グラフが閉じている場合は true

containsBorder

protected boolean containsBorder(int px,
                                 int py)
境界または内部かどうかを帰す

パラメータ:
px - 点の x 座標
py - 点の y 座標
戻り値:
与えられた点がこの枠の内部または境界にある場合は true

paintLineBorders

protected void paintLineBorders(java.awt.Graphics2D g,
                                int x1,
                                int y1,
                                int x2,
                                int y2)
枠を跨ぐグラフ線を描画する

パラメータ:
g - 描画するグラフィックスコンテキスト
x1 - 領域内の点の x 座標
y1 - 領域内の点の y 座標
x2 - 領域外の点の x 座標
y2 - 領域外の点の y 座標

paintBorder

protected void paintBorder(java.awt.Graphics2D g)
グラフ枠を描画する

パラメータ:
g - 描画するグラフィックスコンテキスト