Kagetaka

net.hizlab.kagetaka.awt
クラス Icon

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

public class Icon
extends Component

アイコンを表すクラスです。

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

入れ子クラスの概要
 
クラス java.awt.Component から継承した入れ子クラス
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
フィールドの概要
static int EXCLAMATION
          エクスクラメーションマーク
static int INFORMATION
          情報マーク
static int QUESTION
          クエスチョンマーク
static int STOP
          ストップマーク
 
クラス 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
 
コンストラクタの概要
Icon(int type)
          新しいアイコンのインスタンスを作成します。
 
メソッドの概要
 Dimension getPreferredSize()
          推奨サイズを返します。
 void invalidate()
          コンポーネントを無効にします。
 void paint(Graphics g)
          アイコンを実際に描画します。
 void setImage(int type)
          アイコンを設定します。
 
クラス 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, 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, 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, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

EXCLAMATION

public static final int EXCLAMATION
エクスクラメーションマーク

関連項目:
定数フィールド値

INFORMATION

public static final int INFORMATION
情報マーク

関連項目:
定数フィールド値

QUESTION

public static final int QUESTION
クエスチョンマーク

関連項目:
定数フィールド値

STOP

public static final int STOP
ストップマーク

関連項目:
定数フィールド値
コンストラクタの詳細

Icon

public Icon(int type)
新しいアイコンのインスタンスを作成します。

パラメータ:
type - アイコンの種類
メソッドの詳細

getPreferredSize

public Dimension getPreferredSize()
推奨サイズを返します。

戻り値:
推奨サイズ

invalidate

public void invalidate()
コンポーネントを無効にします。


paint

public void paint(Graphics g)
アイコンを実際に描画します。

パラメータ:
g - グラフィックス

setImage

public void setImage(int type)
アイコンを設定します。

パラメータ:
type - アイコンの種類

Kagetaka

Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'