|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--jp.ac.nime.computer.grpsimulator.HistogramViewPanel
ヒストグラム画像を表示するためのJComponent継承クラス
フィールドの概要 |
クラス javax.swing.JComponent から継承したフィールド |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
クラス 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 |
コンストラクタの概要 | |
HistogramViewPanel(int width,
int height)
|
メソッドの概要 | |
void |
addActionListener(ActionListener listener)
Adds the specified action listener to receive action events from this button. |
void |
autoBinarySelect()
自動的に2値化用にヒストグラムを分割し、中間地点のみを選択する (選択イベントも発生する) |
int |
getMinimum()
選択されている領域の最小値を返す |
int[] |
getParameters()
ヒストグラムをintの配列で返す |
void |
initSelection()
選択状態を初期状態に戻す |
void |
paint(Graphics g)
|
protected void |
processMouseEvent(MouseEvent evt)
|
protected void |
processMouseMotionEvent(MouseEvent evt)
|
void |
removeActionListener(ActionListener listener)
Removes the specified action listener so it no longer receives action events from this button. |
boolean |
setHistogram(int[] histogram)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public HistogramViewPanel(int width, int height)
メソッドの詳細 |
public boolean setHistogram(int[] histogram)
public void paint(Graphics g)
JComponent
内の paint
public int[] getParameters()
public int getMinimum()
public void autoBinarySelect()
public void initSelection()
public void addActionListener(ActionListener listener)
listener
- the action listenerpublic void removeActionListener(ActionListener listener)
listener
- the action listenerprotected void processMouseEvent(MouseEvent evt)
Component
内の processMouseEvent
protected void processMouseMotionEvent(MouseEvent evt)
JComponent
内の processMouseMotionEvent
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |