|
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--com.ogane.xi.Slider
スライダーは最大値と最小値の間の値を変えられる部品です。
マウスを押し続けることにより値を変える事ができます。
スライダーの値を変えるとAdjustmentEventが発生したことを
addAdjustmentListenerメソッドによって登録されたAdjustmentListenerに
通知します。
Ctrlキーを押しながらマウスを押すと値はゆっくりと変化し、
Shiftキーを押しながらマウスを押すと値はすばやくと変化します。
| クラス java.awt.Canvas から継承した内部クラス |
Canvas.AccessibleAWTCanvas |
| クラス java.awt.Component から継承した内部クラス |
Component.AccessibleAWTComponent |
| フィールドの概要 | |
static int |
HORIZONTAL
横型 |
static int |
VERTICAL
縦型 |
| クラス 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 |
| コンストラクタの概要 | |
Slider()
横型の目盛り付きスライダーを作成します。 |
|
Slider(int theOrientation)
目盛り付きスライダーを作成します。 |
|
Slider(int theOrientation,
double theValue,
double theMinimum,
double theMaximum,
double theIncrement,
int theNumMajorTicks,
int theNumMinorTicks)
目盛り付きスライダーを作成します。 |
|
| メソッドの概要 | |
void |
addAdjustmentListener(AdjustmentListener l)
AdjustmentListenerを登録します。 |
double |
getAcceleration()
増分値の加速係数を返します。 |
double |
getDeceleration()
増分値の減速係数を返します。 |
double |
getIncrement()
増分値を返します。 |
double |
getMaximum()
最大値を返します。 |
double |
getMinimum()
最小値を返します。 |
Dimension |
getMinimumSize()
最小サイズを返します。 |
int |
getNumMajorTicks()
主目盛りの数を返します。 |
int |
getNumMinorTicks()
副目盛りの数を返します。 |
int |
getOrientation()
形状を返します。 |
Dimension |
getPreferredSize()
推奨サイズを返します。 |
Color |
getThumbColor()
つまみの色を返します。 |
Color |
getTickColor()
目盛の色を返します。 |
String |
getTickLabelFormat()
目盛りの書式を返します。 |
double |
getValue()
現在値を返します。 |
void |
paint(Graphics g)
描画メソッド。 |
void |
removeAdjustmentListener(AdjustmentListener l)
AdjustmentListenerを登録からはずします。 |
void |
setAcceleration(double acc)
増分値の加速係数を設定します。 |
void |
setBackground(Color theColor)
背景色を設定します。 |
void |
setBounds(int x,
int y,
int w,
int h)
表示領域を設定します。 |
void |
setDeceleration(double dec)
増分値の減速係数を設定します。 |
void |
setFont(Font theFont)
目盛り文字のフォントを設定する。 |
void |
setForeground(Color theColor)
前景色を指定します。 |
void |
setIncrement(double incr)
増分値を設定します。 |
void |
setMaximum(double num)
最大値を設定します。 |
void |
setMinimum(double num)
最小値を設定します。 |
void |
setNumMajorTicks(int theNumMajorTicks)
主目盛りの数を設定します。 |
void |
setNumMinorTicks(int theNumMinorTicks)
副目盛りの数を設定します。 |
void |
setNumTicks(int theNumMajorTicks,
int theNumMinorTicks)
目盛りの数を設定します。 |
void |
setOrientation(int theOrientation)
形状を設定します。 |
void |
setSize(int w,
int h)
大きさを設定します。 |
void |
setThumbColor(Color theColor)
つまみの色を設定します。 |
void |
setTickColor(Color theColor)
目盛の色を設定します。 |
void |
setTickLabelFormat(String theTickLabelFormat)
目盛りの書式を設定します。 |
void |
setValue(double num)
現在値を設定します。 |
void |
update(Graphics g)
再描画メソッド。 |
| クラス java.awt.Canvas から継承したメソッド |
addNotify, getAccessibleContext |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
public static final int VERTICAL
public static final int HORIZONTAL
| コンストラクタの詳細 |
public Slider(int theOrientation,
double theValue,
double theMinimum,
double theMaximum,
double theIncrement,
int theNumMajorTicks,
int theNumMinorTicks)
theOrientation - 形状、縦型または横型theValue - 初期値theMinimum - 最小値theMaximum - 最大値theIncrement - 増分値theNumMajorTicks - 主目盛りの数theNumMinorTicks - 副目盛りの数public Slider(int theOrientation)
theOrientation - 形状、縦型または横型public Slider()
| メソッドの詳細 |
public void setOrientation(int theOrientation)
theOrientation - 形状、縦型または横型public int getOrientation()
public void setMaximum(double num)
num - 最大値public double getMaximum()
public void setMinimum(double num)
num - 最小値public double getMinimum()
public void setValue(double num)
num - 新しい現在値public double getValue()
public void setIncrement(double incr)
incr - 増分値public double getIncrement()
public void setAcceleration(double acc)
acc - 加速係数public double getAcceleration()
public void setDeceleration(double dec)
dec - 減速係数public double getDeceleration()
public void setBackground(Color theColor)
Component 内の setBackgroundcolor - 背景色public void setForeground(Color theColor)
Component 内の setForegroundtheColor - 前景色public void setFont(Font theFont)
Component 内の setFontfont - 文字のフォント
public void setNumTicks(int theNumMajorTicks,
int theNumMinorTicks)
theNumMajorTicks - 主目盛りの数theNumMinorTicks - 副目盛りの数public void setNumMajorTicks(int theNumMajorTicks)
theNumMajorTicks - 主目盛りの数public int getNumMajorTicks()
public void setNumMinorTicks(int theNumMinorTicks)
theNumMinorTicks - 副目盛りの数public int getNumMinorTicks()
public void setTickLabelFormat(String theTickLabelFormat)
theTickLabelFormat - 目盛りの書式public String getTickLabelFormat()
public void setTickColor(Color theColor)
theColor - 目盛の色public Color getTickColor()
public void setThumbColor(Color theColor)
theColor - つまみの色public Color getThumbColor()
public Dimension getPreferredSize()
Component 内の getPreferredSizepublic Dimension getMinimumSize()
Component 内の getMinimumSize
public void setSize(int w,
int h)
Component 内の setSizew - 幅h - 高さ
public void setBounds(int x,
int y,
int w,
int h)
Component 内の setBoundsx - X座標y - Y座標w - 幅h - 高さpublic void update(Graphics g)
Component 内の updateg - Graphicsコンテキストpublic void paint(Graphics g)
Canvas 内の paintg - Graphicsコンテキストpublic void addAdjustmentListener(AdjustmentListener l)
Adjuster 内の addAdjustmentListenerl - the AdjustmentListenerremoveAdjustmentListener(com.ogane.xi.AdjustmentListener)public void removeAdjustmentListener(AdjustmentListener l)
Adjuster 内の removeAdjustmentListenerl - the AdjustmentListeneraddAdjustmentListener(com.ogane.xi.AdjustmentListener)
|
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Copyright 2000-2010, 大金システム設計事務所. All Rights Reserved.
2660-73 Mawatari, Hitachinaka, Ibaraki, 312-0012 JAPAN.
info@ogane.com