Kagetaka

net.hizlab.kagetaka.awt
クラス ProgressBar

java.lang.Object
  拡張java.awt.Component
      拡張net.hizlab.kagetaka.awt.ProgressBar
すべての実装インタフェース:
ImageObserver, MenuContainer, Serializable

public class ProgressBar
extends Component

進行状況を表示するためのプログレスバーコンポーネントです。

バージョン:
$Revision: 1.2 $
関連項目:
直列化された形式

入れ子クラスの概要
 
クラス java.awt.Component から継承した入れ子クラス
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
フィールドの概要
 
クラス 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
 
コンストラクタの概要
ProgressBar()
          新しいプログレスバーを作成します。
ProgressBar(int min, int max)
          新しいプログレスバーを作成します。
ProgressBar(int min, int max, int now)
          新しいプログレスバーを作成します。
 
メソッドの概要
 Dimension getPreferredSize()
          プログレスバーの推奨サイズを返します。
 int getValue()
          現在の値を返します。
 void paint(Graphics g)
          ステータスバーの描画を行います。
protected  String paramString()
          このステータスバーのパラメータ文字列を返します。
 void setValue(int now)
          新しい値を設定します。
 void update(Graphics g)
          ステータスバーの再描画を行います。
 
クラス java.awt.Component から継承したメソッド
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, 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, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, 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, getMouseWheelListeners, getName, getParent, getPeer, 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, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, 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, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ProgressBar

public ProgressBar()
新しいプログレスバーを作成します。


ProgressBar

public ProgressBar(int min,
                   int max)
新しいプログレスバーを作成します。

パラメータ:
min - 最小値
max - 最大値

ProgressBar

public ProgressBar(int min,
                   int max,
                   int now)
新しいプログレスバーを作成します。

パラメータ:
min - 最小値
max - 最大値
now - 現在の値
メソッドの詳細

getPreferredSize

public Dimension getPreferredSize()
プログレスバーの推奨サイズを返します。 高さのみ指定されています。

戻り値:
推奨サイズ

getValue

public int getValue()
現在の値を返します。

戻り値:
現在の値

paint

public void paint(Graphics g)
ステータスバーの描画を行います。

パラメータ:
g - Graphics ウィンドウ

paramString

protected String paramString()
このステータスバーのパラメータ文字列を返します。

戻り値:
パラメータ文字列

setValue

public void setValue(int now)
新しい値を設定します。

パラメータ:
now - 現在の値

update

public void update(Graphics g)
ステータスバーの再描画を行います。

パラメータ:
g - Graphics ウィンドウ

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'