Java プラットフォーム 1.2

クラス
java.awt.Graphics の使用

Graphics を使用するパッケージ
java.awt このパッケージには、ユーザインタフェースの作成と、グラフィックスとイメージのペイントのためのクラスがすべて含まれています。 
java.awt.image イメージの作成や変更を行うクラスを提供します。 
java.awt.print このパッケージは、汎用印刷 API で使用するクラスおよびインタフェースを提供します。 
java.beans JavaBeans の開発に関連するクラスが含まれています。 
javax.swing 可能な限りすべてのプラットフォームで同じように機能する「軽量」コンポーネント (Java 言語全体で共通) のセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種のボーダを描画するための、クラスおよびインタフェースを提供します。 
javax.swing.colorchooser このパッケージには、JColorChooser コンポーネントによって使われるクラスおよびインタフェースが含まれています。  
javax.swing.plaf 1 つのインタフェースおよび多くの抽象クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic Basic 仕様 Look & Feel に従って作成されたユーザインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal このパッケージは、Metal の Look & Feel に従って構築されるユーザインタフェースオブジェクトを提供します。  
javax.swing.plaf.multi 多重 Look & Feel を利用すると、デフォルトの Look & Feel に補助的な Look & Feel を結合できます。 
javax.swing.text 編集可能/編集不能テキストコンポーネントを処理するクラスとインタフェースを提供します。 
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。  
javax.swing.tree java.awt.swing.JTree を処理するためのクラスとインタフェースを提供します。 
 

java.awt における Graphics の使用方法
 

java.awt における Graphics のサブクラス
 class Graphics2D
          Graphics2D クラスは、Graphics クラスを拡張して、ジオメトリ、座標変換、カラー管理、テキスト配置について高度な制御を行います。
 

Graphics を返す java.awt におけるメソッド
 Graphics Component.getGraphics()
          このコンポーネントの Graphics コンテキストを作成します。
abstract  Graphics PrintJob.getGraphics()
          次のページに描くグラフィックスオブジェクトを取得します。
abstract  Graphics Graphics.create()
          この Graphics オブジェクトのコピーである、新しい Graphics オブジェクトを作成します。
 Graphics Graphics.create(int x, int y, int width, int height)
          この Graphics オブジェクトに基づいた新しい Graphics オブジェクトを、新しい変換およびクリップ領域で作成します。
abstract  Graphics Image.getGraphics()
          オフスクリーンイメージに描画するためのグラフィックスコンテキストを作成します。
 

Graphics のパラメータを持つ java.awt におけるメソッド
 void Component.paint(Graphics g)
          このコンポーネントを描画します。
 void Component.update(Graphics g)
          このコンポーネントを更新します。
 void Component.paintAll(Graphics g)
          このコンポーネントおよびそのすべてのサブコンポーネントを描画します。
 void Component.print(Graphics g)
          このコンポーネントを出力します。
 void Component.printAll(Graphics g)
          このコンポーネントおよびそのすべてのサブコンポーネントを出力します。
 void Container.paint(Graphics g)
          コンポーネントを描画します。
 void Container.update(Graphics g)
          コンテナを更新します。
 void Container.print(Graphics g)
          コンテナを出力します。
 void Container.paintComponents(Graphics g)
          このコンテナ内の各コンポーネントをペイントします。
 void Container.printComponents(Graphics g)
          このコンテナ内の各コンポーネントを出力します。
 void Canvas.paint(Graphics g)
          このメソッドはこのキャンバスを再描画するために呼び出されます。
 void ScrollPane.printComponents(Graphics g)
          このスクロールペイン内のコンポーネントを印刷します。
 LineMetrics FontMetrics.getLineMetrics(String str, Graphics context)
          指定された Graphics コンテキストで、指定された StringLineMetrics オブジェクトを返します。
 LineMetrics FontMetrics.getLineMetrics(String str, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された StringLineMetrics オブジェクトを返します。
 LineMetrics FontMetrics.getLineMetrics(char[] chars, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された文字配列の LineMetrics オブジェクトを返します。
 LineMetrics FontMetrics.getLineMetrics(CharacterIterator ci, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された CharacterIteratorLineMetrics オブジェクトを返します。
 Rectangle2D FontMetrics.getStringBounds(String str, Graphics context)
          指定された Graphics コンテキストで、指定された String の境界を返します。
 Rectangle2D FontMetrics.getStringBounds(String str, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された String の境界を返します。
 Rectangle2D FontMetrics.getStringBounds(char[] chars, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された文字配列の境界を返します。
 Rectangle2D FontMetrics.getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された CharacterIterator 内のインデックス付き文字列の境界を返します。
 Rectangle2D FontMetrics.getMaxCharBounds(Graphics context)
          指定された Graphics コンテキストで、最大の境界を持つ文字の境界を返します。
 

java.awt.image における Graphics の使用方法
 

Graphics を返す java.awt.image におけるメソッド
 Graphics BufferedImage.getGraphics()
          このメソッドは Graphics2D を返しますが、ここでは下位互換のために提供されます。
 

java.awt.print における Graphics の使用方法
 

Graphics のパラメータを持つ java.awt.print におけるメソッド
 int Printable.print(Graphics graphics, PageFormat pageFormat, int pageIndex)
          指定されたインデックスにあるページを、指定された書式で、指定された Graphics コンテキストに印刷します。
 

java.beans における Graphics の使用方法
 

Graphics のパラメータを持つ java.beans におけるメソッド
 void PropertyEditorSupport.paintValue(Graphics gfx, Rectangle box)
          値の表現を画面の指定された領域に描画します。
 void PropertyEditor.paintValue(Graphics gfx, Rectangle box)
          値の表現を画面の指定された領域に描画します。
 

javax.swing における Graphics の使用方法
 

javax.swing における Graphics のサブクラス
 class DebugGraphics
          グラフィックスのデバッグをサポートする Graphics のサブクラスです。
 

Graphics を返す javax.swing におけるメソッド
protected  Graphics JComponent.getComponentGraphics(Graphics g)
          このコンポーネントを描画するために使用されるグラフィックスオブジェクトを返します。
 Graphics JComponent.getGraphics()
          このコンポーネントのグラフィックスコンテキストを返します。
 Graphics DebugGraphics.create()
          Graphics.create をオーバーライドして、DebugGraphics オブジェクトを返すようにします。
 Graphics DebugGraphics.create(int x, int y, int width, int height)
          Graphics.create をオーバーライドして、DebugGraphics オブジェクトを返すようにします。
 

Graphics のパラメータを持つ javax.swing におけるメソッド
protected  Graphics JComponent.getComponentGraphics(Graphics g)
          このコンポーネントを描画するために使用されるグラフィックスオブジェクトを返します。
protected  void JComponent.paintComponent(Graphics g)
          UI の委譲が null 以外の場合、その paint メソッドを呼び出します。
protected  void JComponent.paintChildren(Graphics g)
          このコンポーネントの子を描画します。
protected  void JComponent.paintBorder(Graphics g)
          コンポーネントのボーダを描画します。
 void JComponent.update(Graphics g)
          paint(g) を呼び出します。
 void JComponent.paint(Graphics g)
          このメソッドは Swing によって呼び出され、コンポーネントを描画します。
 void JLayeredPane.paint(Graphics g)
          指定されたグラフィックスコンテキストで、この JLayeredPane を描画します。
 void JApplet.update(Graphics g)
          ただちに paint(g) を呼び出します。
protected  void JToolBar.paintBorder(Graphics g)
          BorderPainted プロパティが true の場合に、ツールバーのボーダをペイントします。
protected  void JSplitPane.paintChildren(Graphics g)
          ボーダのペイントとともに、スーパークラスにメッセージが送られたあとで、finishedPaintingChildren を持つ UI にメッセージを送るためにサブクラス化されます。
protected  void AbstractButton.paintBorder(Graphics g)
          BorderPainted プロパティが true の場合に、ボタンのボーダをペイントします。
 void ImageIcon.paintIcon(Component c, Graphics g, int x, int y)
          アイコンを描画します。
protected  void JProgressBar.paintBorder(Graphics g)
          BorderPainted プロパティが true である場合に、進捗バーに境界線をペイントします。
 void JViewport.paint(Graphics g)
          バックングストアが使用可能かどうかに応じて、バッキングストアを介してイメージをペイントするか、または現在露出している部分だけをペイントし、バッキングストアを使用して残りの部分を「blit」します。
 void Icon.paintIcon(Component c, Graphics g, int x, int y)
          指定された位置にアイコンを描画します。
protected  void JMenuBar.paintBorder(Graphics g)
          BorderPainted プロパティが true の場合に、メニューバーのボーダを描画します。
static void SwingUtilities.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
          矩形の左上隅およびサイズを指定して、指定された矩形内の任意のグラフィックス g でコンポーネント c をペイントします。
static void SwingUtilities.paintComponent(Graphics g, Component c, Container p, Rectangle r)
          Rectangle オブジェクトを指定して、指定された矩形内の任意のグラフィックス g でコンポーネント c をペイントします。
protected  void JPopupMenu.paintBorder(Graphics g)
          BorderPainted プロパティが true の場合に、ポップアップメニューのボーダをペイントします。
 void JDialog.update(Graphics g)
          paint(g) を呼び出すだけです。
 void CellRendererPane.paint(Graphics g)
          呼び出してはなりません。
 void CellRendererPane.update(Graphics g)
          呼び出してはなりません。
 void CellRendererPane.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate)
          セルレンダリングコンポーネント c をグラフィックスオブジェクト g にペイントします。
 void CellRendererPane.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
          this.paintComponent(g, c, p, x, y, w, h, false) を呼び出します。
 void CellRendererPane.paintComponent(Graphics g, Component c, Container p, Rectangle r)
          矩形の x、y、幅、高さの各フィールドを使って this.paintComponent() を呼び出します。
 void JFrame.update(Graphics g)
          paint(g) を呼び出すだけです。
 

Graphics のパラメータを持つ javax.swing におけるコンストラクタ
DebugGraphics.DebugGraphics(Graphics graphics, JComponent component)
          既存のグラフィックスコンテキストから、指定されたコンポーネントの描画速度を遅くするデバッググラフィックスコンテキストを構築します。
DebugGraphics.DebugGraphics(Graphics graphics)
          既存のグラフィックスコンテキストから、速度の遅い描画をサポートするデバッググラフィックスコンテキストを構築します。
 

javax.swing.border における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.border におけるメソッド
 void AbstractBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          このデフォルト実装では、ペイントを行いません。
 void TitledBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。
 void LineBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。
 void EmptyBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          デフォルトでは、描画を行いません。
 void CompoundBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          複合ボーダをペイントします。
 void Border.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。
 void BevelBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。
protected  void BevelBorder.paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)
           
protected  void BevelBorder.paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height)
           
 void MatteBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          飾り縁ボーダをペイントします。
 void EtchedBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。
 void SoftBevelBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。
 

javax.swing.colorchooser における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.colorchooser におけるメソッド
 void AbstractColorChooserPanel.paint(Graphics g)
           
 

javax.swing.plaf における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.plaf におけるメソッド
 void ComponentUI.paint(Graphics g, JComponent c)
           
 void ComponentUI.update(Graphics g, JComponent c)
           
 void IconUIResource.paintIcon(Component c, Graphics g, int x, int y)
           
 void BorderUIResource.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
abstract  void SplitPaneUI.finishedPaintingChildren(JSplitPane jc, Graphics g)
          JSplitPane の受信側がその子オブジェクトを描画するための Look & Feel を提供し終わったときに、メッセージを受け取ります。
 

javax.swing.plaf.basic における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.plaf.basic におけるメソッド
protected  void BasicTextUI.paintBackground(Graphics g)
          ビューのバックグラウンドをペイントします。
protected  void BasicTextUI.paintSafely(Graphics g)
          このスレッドのビューからモデルが変更されないという保証付きで、安全にインタフェースをペイントします。
 void BasicTextUI.paint(Graphics g, JComponent c)
          インタフェースをペイントします。
 void BasicDesktopPaneUI.paint(Graphics g, JComponent c)
           
 void BasicMenuItemUI.update(Graphics g, JComponent c)
          paintMenuItem() でバックグラウンドを描画します。
 void BasicMenuItemUI.paint(Graphics g, JComponent c)
           
protected  void BasicMenuItemUI.paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)
           
 void BasicSeparatorUI.paint(Graphics g, JComponent c)
           
 void BasicToolBarSeparatorUI.paint(Graphics g, JComponent c)
           
 void BasicTableUI.paint(Graphics g, JComponent c)
          installUI() により設定された table のインスタンス表現をペイントします。
 void BasicTabbedPaneUI.paint(Graphics g, JComponent c)
           
protected  void BasicTabbedPaneUI.paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
           
protected  void BasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
          各タブの周囲にボーダを描画します。
protected  void BasicTabbedPaneUI.paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
           
protected  void BasicTabbedPaneUI.paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void BasicTabbedPaneUI.paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void BasicTabbedPaneUI.paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void BasicTabbedPaneUI.paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
 void BasicSplitPaneDivider.paint(Graphics g)
          ディバイダをペイントします。
protected  void BasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex)
          List のセルを 1 つペイントします。
 void BasicListUI.paint(Graphics g, JComponent c)
          Graphics オブジェクトの clipRect と交差する行をペイントします。
 void BasicToolBarUI.DragWindow.paint(Graphics g)
           
 void BasicSliderUI.paint(Graphics g, JComponent c)
           
 void BasicSliderUI.paintFocus(Graphics g)
           
 void BasicSliderUI.paintTrack(Graphics g)
           
 void BasicSliderUI.paintTicks(Graphics g)
           
protected  void BasicSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void BasicSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void BasicSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void BasicSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
 void BasicSliderUI.paintLabels(Graphics g)
           
protected  void BasicSliderUI.paintHorizontalLabel(Graphics g, int value, Component label)
          ラベルテーブルの各ラベルに対して呼び出されます。
protected  void BasicSliderUI.paintVerticalLabel(Graphics g, int value, Component label)
          ラベルテーブルの各ラベルに対して呼び出されます。
 void BasicSliderUI.paintThumb(Graphics g)
           
 void BasicInternalFrameTitlePane.paintComponent(Graphics g)
           
 void BasicInternalFrameTitlePane.SystemMenuBar.paint(Graphics g)
           
 void BasicToolTipUI.paint(Graphics g, JComponent c)
           
 void BasicSplitPaneUI.finishedPaintingChildren(JSplitPane jc, Graphics g)
          レシーバによって Look & Feel が提供されている JSplitPane がその子をペイントしたあとにメッセージとして送られます。
 void BasicSplitPaneUI.paint(Graphics g, JComponent jc)
          Look & Feel をペイントするためにメッセージとして送られます。
 void BasicButtonUI.paint(Graphics g, JComponent c)
           
protected  void BasicButtonUI.paintIcon(Graphics g, JComponent c, Rectangle iconRect)
           
protected  void BasicButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
protected  void BasicButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void BasicButtonUI.paintButtonPressed(Graphics g, AbstractButton b)
           
 void BasicToggleButtonUI.paint(Graphics g, JComponent c)
           
protected  void BasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
           
protected  void BasicToggleButtonUI.paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
           
protected  void BasicToggleButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void BasicToggleButtonUI.paintButtonPressed(Graphics g, AbstractButton b)
           
 void BasicProgressBarUI.paint(Graphics g, JComponent c)
          ほぼすべての直線進捗バーで正しく動作する、汎用の paint メソッドです。
protected  void BasicProgressBarUI.paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
           
protected  Point BasicProgressBarUI.getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)
          進捗文字列の描画位置を指定します。
 void BasicArrowButton.paint(Graphics g)
           
 void BasicArrowButton.paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled)
           
 void BasicRadioButtonUI.paint(Graphics g, JComponent c)
          ラジオボタンをペイントします。
protected  void BasicRadioButtonUI.paintFocus(Graphics g, Rectangle textRect, Dimension size)
           
 void BasicPopupMenuSeparatorUI.paint(Graphics g, JComponent c)
           
 void BasicTreeUI.paint(Graphics g, JComponent c)
           
protected  void BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          脚の水平部分をペイントします。
protected  void BasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
          脚の垂直部分をペイントします。
protected  void BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行の展開 (切り替え) 部分をペイントします。
protected  void BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行のレンダリング部分をペイントします。
protected  void BasicTreeUI.paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
          垂直線をペイントします。
protected  void BasicTreeUI.paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)
          水平線をペイントします。
protected  void BasicTreeUI.drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)
           
protected  void BasicTreeUI.drawDashedHorizontalLine(Graphics g, int y, int x1, int x2)
           
protected  void BasicTreeUI.drawDashedVerticalLine(Graphics g, int x, int y1, int y2)
           
 void BasicTableHeaderUI.paint(Graphics g, JComponent c)
           
static void BasicGraphicsUtils.drawEtchedRect(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
           
static void BasicGraphicsUtils.drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)
           
static void BasicGraphicsUtils.drawBezel(Graphics g, int x, int y, int w, int h, boolean isPressed, boolean isDefault, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
           
static void BasicGraphicsUtils.drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
           
static void BasicGraphicsUtils.drawString(Graphics g, String text, int underlinedChar, int x, int y)
          グラフィック g を使って、位置 (x,y) に g.drawString() と同様にして文字列を描画します。
static void BasicGraphicsUtils.drawDashedRect(Graphics g, int x, int y, int width, int height)
           
 void BasicScrollBarUI.paint(Graphics g, JComponent c)
           
protected  void BasicScrollBarUI.paintDecreaseHighlight(Graphics g)
           
protected  void BasicScrollBarUI.paintIncreaseHighlight(Graphics g)
           
protected  void BasicScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void BasicScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
 void BasicBorders.ButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void BasicBorders.ToggleButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void BasicBorders.RadioButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void BasicBorders.MenuBarBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void BasicBorders.FieldBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void BasicBorders.SplitPaneBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
protected  void BasicLabelUI.paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY)
          テキストを textX、textY の位置に、ラベルのフォアグラウンドカラーでペイントします。
protected  void BasicLabelUI.paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
          テキストを textX、textY の位置に background.lighter() でペイントします。
 void BasicLabelUI.paint(Graphics g, JComponent c)
          ラベルのテキストをフォアグラウンドカラーでペイントし、ラベルが不透明の場合は、バックグラウンドの全体をバックグラウンドカラーでペイントします。
 void BasicComboBoxUI.paint(Graphics g, JComponent c)
           
 void BasicComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
          現在選択されている項目を描画します。
 void BasicComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
          現在選択されている項目のバックグラウンドを描画します。
 void BasicScrollPaneUI.paint(Graphics g, JComponent c)
           
 

javax.swing.plaf.metal における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.plaf.metal におけるメソッド
protected  void MetalTabbedPaneUI.paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
protected  void MetalTabbedPaneUI.paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void MetalTabbedPaneUI.paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void MetalTabbedPaneUI.paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void MetalTabbedPaneUI.paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
 void MetalTabbedPaneUI.update(Graphics g, JComponent c)
           
protected  void MetalTabbedPaneUI.paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
 void MetalTabbedPaneUI.paint(Graphics g, JComponent c)
           
protected  void MetalTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void MetalTabbedPaneUI.paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void MetalTabbedPaneUI.paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void MetalTabbedPaneUI.paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void MetalTabbedPaneUI.paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
 void MetalCheckBoxIcon.paintIcon(Component c, Graphics g, int x, int y)
           
protected  void MetalCheckBoxIcon.drawCheck(Component c, Graphics g, int x, int y)
           
protected  void MetalToggleButtonUI.paintButtonPressed(Graphics g, AbstractButton b)
           
protected  void MetalToggleButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
protected  void MetalToggleButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
 void MetalComboBoxIcon.paintIcon(Component c, Graphics g, int x, int y)
          水平線をペイントします。
 void MetalSeparatorUI.paint(Graphics g, JComponent c)
           
protected  void MetalScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void MetalScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
 void MetalBorders.Flush3DBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.ButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.InternalFrameBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.MenuBarBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.MenuItemBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.PopupMenuBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.RolloverButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.ToolBarBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.TextFieldBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.ScrollPaneBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
protected  void MetalLabelUI.paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
          テキストをそれぞれのラベルのフォアグラウンドカラーではなく、グレー (Label.disabledForeground) を使ってペイントします。
 void MetalPopupMenuSeparatorUI.paint(Graphics g, JComponent c)
           
 void MetalScrollButton.paint(Graphics g)
           
 void MetalComboBoxUI.paint(Graphics g, JComponent c)
           
 void MetalRadioButtonUI.paint(Graphics g, JComponent c)
           
protected  void MetalRadioButtonUI.paintFocus(Graphics g, Rectangle t, Dimension d)
           
 void MetalSliderUI.paintThumb(Graphics g)
           
 void MetalSliderUI.paintTrack(Graphics g)
           
 void MetalSliderUI.paintFocus(Graphics g)
           
protected  void MetalSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void MetalSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void MetalSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void MetalSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
 void MetalComboBoxButton.paintComponent(Graphics g)
           
protected  void MetalButtonUI.paintButtonPressed(Graphics g, AbstractButton b)
           
protected  void MetalButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void MetalButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
 void MetalToolTipUI.paint(Graphics g, JComponent c)
           
 void MetalIconFactory.FolderIcon16.paintIcon(Component c, Graphics g, int x, int y)
           
 void MetalIconFactory.FileIcon16.paintIcon(Component c, Graphics g, int x, int y)
           
 void MetalIconFactory.TreeControlIcon.paintIcon(Component c, Graphics g, int x, int y)
           
 void MetalIconFactory.TreeControlIcon.paintMe(Component c, Graphics g, int x, int y)
           
 void MetalProgressBarUI.paint(Graphics g, JComponent c)
          JLF/Metal ProgressBar に特別なハイライトを描画するためのペイントメソッドです。
 void MetalTreeUI.paint(Graphics g, JComponent c)
           
protected  void MetalTreeUI.paintHorizontalSeparators(Graphics g, JComponent c)
           
protected  void MetalTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
           
protected  void MetalTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
           
 

javax.swing.plaf.multi における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.plaf.multi におけるメソッド
 void MultiColorChooserUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiColorChooserUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiTabbedPaneUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiTabbedPaneUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiViewportUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiViewportUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiSliderUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiSliderUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiToolBarUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiToolBarUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiTableUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiTableUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiMenuItemUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiMenuItemUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiTextUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiTextUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiToolTipUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiToolTipUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiProgressBarUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiProgressBarUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiScrollPaneUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiScrollPaneUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiPanelUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiPanelUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiListUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiListUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiLabelUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiLabelUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiSplitPaneUI.finishedPaintingChildren(JSplitPane a, Graphics b)
          この MultiUI が扱う各 UI で、finishedPaintingChildren を呼び出します。
 void MultiSplitPaneUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiSplitPaneUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiOptionPaneUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiOptionPaneUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiComboBoxUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiComboBoxUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiTableHeaderUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiTableHeaderUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiMenuBarUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiMenuBarUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiSeparatorUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiSeparatorUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiFileChooserUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiFileChooserUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiDesktopPaneUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiDesktopPaneUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiScrollBarUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiScrollBarUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiButtonUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiButtonUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiPopupMenuUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiPopupMenuUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiTreeUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiTreeUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiDesktopIconUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiDesktopIconUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 void MultiInternalFrameUI.paint(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、paint を呼び出します。
 void MultiInternalFrameUI.update(Graphics a, JComponent b)
          この MultiUI が扱う各 UI で、update を呼び出します。
 

javax.swing.text における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.text におけるメソッド
abstract  void View.paint(Graphics g, Shape allocation)
          指定された描画表面とその領域を使って描画します。
 void IconView.paint(Graphics g, Shape a)
          アイコンをペイントします。
protected  void PlainView.drawLine(int lineIndex, Graphics g, int x, int y)
          1 行のテキストを、末尾の空白を抑制しタブがあれば展開して描画します。
protected  int PlainView.drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
          モデル内の指定された範囲を、選択解除した通常のテキストで描画します。
protected  int PlainView.drawSelectedText(Graphics g, int x, int y, int p0, int p1)
          モデル内の指定された範囲を、選択したテキストで描画します。
 void PlainView.paint(Graphics g, Shape a)
          指定された描画表面とその領域を使って描画します。
 void FieldView.paint(Graphics g, Shape a)
          指定された描画表面とその領域を使って描画します。
 void Highlighter.paint(Graphics g)
          ハイライトを描画します。
 void Highlighter.HighlightPainter.paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)
          ハイライトを描画します。
 void Caret.paint(Graphics g)
          キャレットを描画します。
 void LabelView.paint(Graphics g, Shape a)
          テキストスタイルランの一部を描画します。
 void DefaultCaret.paint(Graphics g)
          キャレットを垂直線として描画します。
abstract  void LayeredHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
          このメソッドは、LabelView のような、葉となる View の描画中に呼び出されます。
 void DefaultHighlighter.paint(Graphics g)
          ハイライトを描画します。
 void DefaultHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
          LabelView などの葉の View が描画を行う時に、このメソッドを呼び出します。
abstract  Shape LayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
           
 void DefaultHighlighter.DefaultHighlightPainter.paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)
          ハイライトを描画します。
 Shape DefaultHighlighter.DefaultHighlightPainter.paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)
          ハイライトの一部分を描画します。
protected  void BoxView.paintChild(Graphics g, Rectangle alloc, int index)
          子を描画します。
 void BoxView.paint(Graphics g, Shape allocation)
          指定された描画表面、および描画表面上の領域を使用して描画します。
protected  void WrappedPlainView.drawLine(int p0, int p1, Graphics g, int x, int y)
          末尾の余白を削除し、タブを拡張しながら、1 行のテキストを描画します。
protected  int WrappedPlainView.drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
          モデル内の指定された範囲を通常の選択されていないテキストとして描画します。
protected  int WrappedPlainView.drawSelectedText(Graphics g, int x, int y, int p0, int p1)
          モデル内の指定された範囲を、選択されたテキストとして描画します。
 void WrappedPlainView.paint(Graphics g, Shape a)
          指定された描画表面とその領域を使って描画します。
static int Utilities.drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)
          指定されたタブ拡張手法を使用して含まれているタブを拡張しながら、指定されたテキストを描画します。
protected  int PasswordView.drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
          モデル内の指定された範囲を、選択解除した通常のテキストとして描画します。
protected  int PasswordView.drawSelectedText(Graphics g, int x, int y, int p0, int p1)
          モデル内の指定された範囲を、選択したテキストとして描画します。
protected  int PasswordView.drawEchoCharacter(Graphics g, int x, int y, char c)
          エコー文字を描画するか、パスワード文字列を表示するのに使う任意のグラフィックを描画します。
 void ComponentView.paint(Graphics g, Shape a)
          コンポーネントのビューを描画します。
 void ParagraphView.paint(Graphics g, Shape a)
          指定された描画表面とその領域を使って描画します。
 

javax.swing.text.html における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.text.html におけるメソッド
 void BlockView.paint(Graphics g, Shape allocation)
          指定された描画表面とその領域を使って描画します。
 void ListView.paint(Graphics g, Shape allocation)
          指定された描画表面およびその表面上の領域を使って描画します。
protected  void ListView.paintChild(Graphics g, Rectangle alloc, int index)
          子の 1 つを描画します。
 void StyleSheet.BoxPainter.paint(Graphics g, float x, float y, float w, float h, View v)
          属性に従って CSS ボックスを描画します。
 void StyleSheet.ListPainter.paint(Graphics g, float x, float y, float w, float h, View v, int item)
          属性に従って CSS リスト装飾を描画します。
 

javax.swing.tree における Graphics の使用方法
 

Graphics のパラメータを持つ javax.swing.tree におけるメソッド
 void DefaultTreeCellEditor.EditorContainer.paint(Graphics g)
          Container.paint をオーバーライドして、ノードのアイコンを描画し、バックグラウンドカラーに選択色を使用します。
 void DefaultTreeCellRenderer.paint(Graphics g)
          値をペイントします。
 


Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.