|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.Component
java.awt.Canvas
gui.BasicViewCanvas
dche.component.DcheViewCanvas
public class DcheViewCanvas
DCHE モデル表示キャンバス
入れ子のクラスの概要 |
---|
クラス java.awt.Canvas から継承された入れ子のクラス/インタフェース |
---|
java.awt.Canvas.AccessibleAWTCanvas |
クラス java.awt.Component から継承された入れ子のクラス/インタフェース |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
フィールドの概要 | |
---|---|
protected java.awt.Color |
bgColor
背景色 |
protected java.awt.Point |
centerPoint
画面中央点 |
protected ColorBar |
colorbar
カラーバー |
protected java.awt.Rectangle |
colorbarBound
カラーバー表示領域を表す Rectangle |
protected ContourData |
contour
コンター図データ |
protected java.awt.Color |
elemColor
要素表示色 |
protected java.awt.Color |
fgColor
前景色 |
protected java.awt.Font |
font
フォント |
protected java.awt.Color |
htcColor
熱伝達境界条件表示色 |
protected java.lang.String |
message
エラーメッセージ |
static double |
MIN_VALUE
分母の最小値 |
protected DcheDataModel |
model
DCHE データモデル |
protected double |
rotateCoef
モデル回転速度係数 |
protected java.awt.Color |
tempColor
節点温度条件表示色 |
protected double |
transCoef
モデル平行移動係数 |
protected Transform |
transform
変換行列 |
protected int |
viewSize
モデル表示領域サイズ |
protected double |
zoomCoef
モデル拡大・縮小係数 |
クラス gui.BasicViewCanvas から継承されたフィールド |
---|
bg, bgImage, panelSize |
クラス java.awt.Component から継承されたフィールド |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
インタフェース java.awt.image.ImageObserver から継承されたフィールド |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
---|---|
DcheViewCanvas(DcheDataModel model,
java.lang.String message,
java.awt.Font font,
java.awt.Color bgColor,
java.awt.Color fgColor)
DCHE モデル表示キャンバスを構築する |
メソッドの概要 | |
---|---|
void |
clear()
計算結果表示を消去する |
protected void |
drawDche(java.awt.Graphics2D g,
ViewPoint2D[] vp,
ContourData contour,
ColorBar colorbar)
DCHE を描画する |
protected void |
drawElement(java.awt.Graphics2D g,
ViewPoint2D[] vp)
要素を描画する |
protected void |
drawElement(java.awt.Graphics2D g,
ViewPoint2D[] vp,
ContourData contour,
ColorBar colorbar)
要素を描画する |
protected void |
drawHTBound(java.awt.Graphics2D g,
ViewPoint2D[] vp)
熱伝達境界条件を描画する |
protected void |
drawTemperature(java.awt.Graphics2D g,
ViewPoint2D[] vp)
節点温度条件を描画する |
protected void |
drawVector(java.awt.Graphics2D g,
java.awt.Point p1,
java.awt.Point p2,
double vsize)
ベクトルを描画する |
protected void |
fillPolygon(java.awt.Graphics2D g,
int n,
int[] gx,
int[] gy,
double[] value,
ColorBar colorbar)
コンター多角形を描画する |
protected void |
fillPolygon(java.awt.Graphics2D g,
int x,
int y,
double[] value,
PolygonCoordinates s)
多角形を描画する |
DcheDataModel |
getModel()
DCHE データモデルを返す |
protected ViewPoint2D |
getViewPoint(int index,
double vCoef,
double cx,
double cy)
画面上の点を返す |
protected boolean |
innerFrame(int x,
int y)
点が画面内にあるかどうか判別する |
void |
paint(java.awt.Graphics g)
描画する |
protected void |
paintModel(java.awt.Graphics2D g)
描画内容 |
void |
rotate(int dx,
int dy)
モデルを回転させる |
void |
setColorBar(ColorBar colorbar)
カラーバーを設定する |
protected void |
setColors(java.awt.Color bgColor,
java.awt.Color fgColor)
表示色を設定する |
protected void |
setPaint()
画面設定 |
void |
showResult()
コンター表示を設定する |
void |
translate(int dx,
int dy)
モデルを平行移動させる |
void |
update(java.awt.Graphics g)
再描画する |
void |
zoom(int dx,
int dy)
モデルを拡大・縮小させる |
クラス gui.BasicViewCanvas から継承されたメソッド |
---|
drawErrorMessage |
クラス java.awt.Canvas から継承されたメソッド |
---|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
クラス java.awt.Component から継承されたメソッド |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
public static final double MIN_VALUE
protected DcheDataModel model
protected int viewSize
protected java.awt.Point centerPoint
protected java.lang.String message
protected java.awt.Font font
protected java.awt.Color bgColor
protected java.awt.Color fgColor
protected java.awt.Color elemColor
protected java.awt.Color tempColor
protected java.awt.Color htcColor
protected double transCoef
protected double rotateCoef
protected double zoomCoef
protected Transform transform
protected ColorBar colorbar
protected java.awt.Rectangle colorbarBound
Rectangle
protected ContourData contour
コンストラクタの詳細 |
---|
public DcheViewCanvas(DcheDataModel model, java.lang.String message, java.awt.Font font, java.awt.Color bgColor, java.awt.Color fgColor)
model
- FEM データモデルメソッドの詳細 |
---|
protected void setColors(java.awt.Color bgColor, java.awt.Color fgColor)
bgColor
- 背景色fgColor
- 前景色public DcheDataModel getModel()
public void translate(int dx, int dy)
dx
- 画面上の x 方向移動量dy
- 画面上の y 方向移動量public void rotate(int dx, int dy)
dx
- 画面上の x 方向移動量dy
- 画面上の y 方向移動量public void zoom(int dx, int dy)
dx
- 画面上の x 方向移動量dy
- 画面上の y 方向移動量public void showResult()
public void clear()
public void setColorBar(ColorBar colorbar)
colorbar
- カラーバーprotected boolean innerFrame(int x, int y)
x
- x 座標y
- y 座標
public void update(java.awt.Graphics g)
java.awt.Canvas
内の update
g
- 描画するグラフィックスコンテキストpublic void paint(java.awt.Graphics g)
java.awt.Canvas
内の paint
g
- 描画するグラフィックスコンテキストprotected void setPaint()
BasicViewCanvas
内の setPaint
protected void paintModel(java.awt.Graphics2D g)
g
- 描画するグラフィックスコンテキストprotected void drawElement(java.awt.Graphics2D g, ViewPoint2D[] vp, ContourData contour, ColorBar colorbar)
g
- 描画するグラフィックスコンテキストvp
- 節点の画面上の点を格納した配列contour
- コンター図データcolorbar
- カラーバーprotected void drawDche(java.awt.Graphics2D g, ViewPoint2D[] vp, ContourData contour, ColorBar colorbar)
g
- 描画するグラフィックスコンテキストvp
- 節点の画面上の点を格納した配列contour
- コンター図データcolorbar
- カラーバーprotected void drawElement(java.awt.Graphics2D g, ViewPoint2D[] vp)
g
- 描画するグラフィックスコンテキストvp
- 節点の画面上の点を格納した配列protected void drawTemperature(java.awt.Graphics2D g, ViewPoint2D[] vp)
g
- 描画するグラフィックスコンテキストvp
- 節点の画面上の点を格納した配列protected void drawHTBound(java.awt.Graphics2D g, ViewPoint2D[] vp)
g
- 描画するグラフィックスコンテキストvp
- 節点の画面上の点を格納した配列protected void drawVector(java.awt.Graphics2D g, java.awt.Point p1, java.awt.Point p2, double vsize)
g
- 描画するグラフィックスコンテキストp1
- ベクトルの始点p2
- ベクトルの終点vsize
- 先端部表示サイズprotected void fillPolygon(java.awt.Graphics2D g, int n, int[] gx, int[] gy, double[] value, ColorBar colorbar)
g
- 描画するグラフィックスコンテキストn
- 頂点の数gx
- 頂点の x 座標を格納した配列gy
- 頂点の y 座標を格納した配列value
- 頂点の値を格納した配列colorbar
- カラーバーprotected void fillPolygon(java.awt.Graphics2D g, int x, int y, double[] value, PolygonCoordinates s)
g
- 描画するグラフィックスコンテキストx
- x 座標y
- y 座標value
- 頂点の値を格納した配列s
- 多角形内部座標protected ViewPoint2D getViewPoint(int index, double vCoef, double cx, double cy)
index
- 節点のインデックスvCoef
- モデルの表示倍率cx
- モデル中心の x 座標cy
- モデル中心の y 座標
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |