JavaTM Platform
Standard Ed. 6

クラス
java.awt.Graphics の使用

Graphics を使用しているパッケージ
java.awt ユーザーインタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。 
java.awt.image イメージを作成および修正するためのクラスを提供します。 
java.awt.print このパッケージは、汎用印刷 API で使用するクラスおよびインタフェースを提供します。 
java.beans Beans (JavaBeansTM アーキテクチャーに基づいたコンポーネント) の開発に関連するクラスが含まれています。 
javax.swing すべてのプラットフォームで可能なかぎり同じように機能する「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。 
javax.swing.colorchooser このパッケージには、JColorChooser コンポーネントによって使われるクラスおよびインタフェースが含まれています。 
javax.swing.plaf 1 つのインタフェースおよび多くの abstract クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 基本 Look & Feel に従って構築されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal デフォルトの Look & Feel である Java Look & Feel (コード名は Metal) に従って作成されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.multi 複数の Look & Feel を結合するユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.synth Synth は、すべてのペイントが委譲されるスキン設定可能な Look & Feel です。 
javax.swing.text 編集可能なテキストコンポーネントと編集不能なテキストコンポーネントを処理するクラスとインタフェースを提供します。 
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。 
javax.swing.tree javax.swing.JTree を処理するためのクラスとインタフェースを提供します。 
 

java.awt での Graphics の使用
 

java.awt での Graphics のサブクラス
 class Graphics2D
          Graphics2D クラスは、 Graphics クラスを拡張して、幾何学的図形、座標変換、カラー管理、およびテキスト配置について高度な制御を行います。
 

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

Graphics 型のパラメータを持つ java.awt のメソッド
 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 オブジェクトを返します。
 LineMetrics FontMetrics.getLineMetrics(String str, Graphics context)
          指定された Graphics コンテキストで、指定された StringLineMetrics オブジェクトを返します。
 LineMetrics FontMetrics.getLineMetrics(String str, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された StringLineMetrics オブジェクトを返します。
 Rectangle2D FontMetrics.getMaxCharBounds(Graphics context)
          指定された Graphics コンテキストで、最大の境界を持つ文字の境界を返します。
 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.getStringBounds(String str, Graphics context)
          指定された Graphics コンテキストで、指定された String の境界を返します。
 Rectangle2D FontMetrics.getStringBounds(String str, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された String の境界を返します。
 void Container.paint(Graphics g)
          コンテナをペイントします。
 void Component.paint(Graphics g)
          このコンポーネントをペイントします。
 void Canvas.paint(Graphics g)
          このキャンバスをペイントします。
 void Component.paintAll(Graphics g)
          このコンポーネントおよびそのすべてのサブコンポーネントをペイントします。
 void Container.paintComponents(Graphics g)
          このコンテナ内の各コンポーネントをペイントします。
 void Container.print(Graphics g)
          コンテナを出力します。
 void Component.print(Graphics g)
          このコンポーネントを出力します。
 void Component.printAll(Graphics g)
          このコンポーネントおよびそのすべてのサブコンポーネントを出力します。
 void Container.printComponents(Graphics g)
          このコンテナ内の各コンポーネントを出力します。
 void ScrollPane.printComponents(Graphics g)
          このスクロールペイン内のコンポーネントを出力します。
 void Container.update(Graphics g)
          コンテナを更新します。
 void Component.update(Graphics g)
          このコンポーネントを更新します。
 void Canvas.update(Graphics g)
          このキャンバスを更新します。
 

java.awt.image での Graphics の使用
 

Graphics を返す java.awt.image のメソッド
abstract  Graphics BufferStrategy.getDrawGraphics()
          描画バッファーのグラフィックスコンテキストを作成します。
 Graphics VolatileImage.getGraphics()
          このメソッドは Graphics2D を返しますが、ここでは下位互換のために提供されます。
 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 のメソッド
 Graphics DebugGraphics.create()
          Graphics.create をオーバーライドして、DebugGraphics オブジェクトを返すようにします。
 Graphics DebugGraphics.create(int x, int y, int width, int height)
          Graphics.create をオーバーライドして、DebugGraphics オブジェクトを返すようにします。
protected  Graphics JComponent.getComponentGraphics(Graphics g)
          このコンポーネントをペイントするために使用されるグラフィックスオブジェクトを返します。
 Graphics JFrame.getGraphics()
          このコンポーネントのグラフィックスコンテキストを作成します。
 Graphics JComponent.getGraphics()
          このコンポーネントのグラフィックスコンテキストを返します。
 Graphics JDialog.getGraphics()
          このコンポーネントのグラフィックスコンテキストを作成します。
 Graphics JWindow.getGraphics()
          このコンポーネントのグラフィックスコンテキストを作成します。
 Graphics JApplet.getGraphics()
          このコンポーネントのグラフィックスコンテキストを作成します。
 

Graphics 型のパラメータを持つ javax.swing のメソッド
protected  Graphics JComponent.getComponentGraphics(Graphics g)
          このコンポーネントをペイントするために使用されるグラフィックスオブジェクトを返します。
 void JComponent.paint(Graphics g)
          このメソッドは Swing によって呼び出され、コンポーネントを描画します。
 void JLayeredPane.paint(Graphics g)
          指定されたグラフィックスコンテキストで、この JLayeredPane を描画します。
 void CellRendererPane.paint(Graphics g)
          呼び出しません。
 void JViewport.paint(Graphics g)
          backingStore が使用可能かどうかに応じて、バッキングストアを介してイメージをペイントするか、または現在表示されている部分だけをペイントし、バッキングストアを使用して残りの部分を「Blit」します。
protected  void JComponent.paintBorder(Graphics g)
          コンポーネントのボーダーをペイントします。
protected  void AbstractButton.paintBorder(Graphics g)
          BorderPainted プロパティーが true であり、ボタンがボーダーを持つ場合、ボタンのボーダーをペイントします。
protected  void JToolBar.paintBorder(Graphics g)
          BorderPainted プロパティーが true の場合、ポップアップメニューのボーダーをペイントします。
protected  void JMenuBar.paintBorder(Graphics g)
          BorderPainted プロパティーが true の場合、メニューバーのボーダーをペイントします。
protected  void JPopupMenu.paintBorder(Graphics g)
          borderPainted プロパティーが true である場合に、ポップアップメニューのボーダーをペイントします。
protected  void JProgressBar.paintBorder(Graphics g)
          borderPainted プロパティーが true である場合に、進捗バーにボーダーをペイントします。
protected  void JComponent.paintChildren(Graphics g)
          このコンポーネントの子をペイントします。
protected  void JSplitPane.paintChildren(Graphics g)
          ボーダーのペイントとともに、スーパークラスにメッセージが送られたあとで、finishedPaintingChildren を持つ UI にメッセージを送るためにサブクラス化されます。
protected  void JComponent.paintComponent(Graphics g)
          UI 委譲が null でない場合に、UI 委譲のペイントメソッドを呼び出します。
protected  void JInternalFrame.paintComponent(Graphics g)
          内部フレームがドラッグされているときに最適化されたペイントを許可するためオーバーライドされます。
protected  void Box.paintComponent(Graphics g)
          この Box をペイントします。
protected  void Box.Filler.paintComponent(Graphics g)
          この Filler をペイントします。
static void SwingUtilities.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
          指定された Graphics で、コンポーネントをペイントします。
 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, int x, int y, int w, int h, boolean shouldValidate)
          セルレンダリングコンポーネント c をグラフィックスオブジェクト g にペイントします。
static void SwingUtilities.paintComponent(Graphics g, Component c, Container p, Rectangle r)
          指定された Graphics で、コンポーネントをペイントします。
 void CellRendererPane.paintComponent(Graphics g, Component c, Container p, Rectangle r)
          矩形の x、y、幅、高さの各フィールドを使って this.paintComponent() を呼び出します。
 void Icon.paintIcon(Component c, Graphics g, int x, int y)
          指定された位置にアイコンを描画します。
 void ImageIcon.paintIcon(Component c, Graphics g, int x, int y)
          アイコンをペイントします。
 void JComponent.print(Graphics g)
          コンポーネントを指定の Graphics に印刷するには、このメソッドを呼び出します。
 void JComponent.printAll(Graphics g)
          コンポーネントを印刷するには、このメソッドを呼び出します。
protected  void JComponent.printBorder(Graphics g)
          コンポーネントのボーダーをペイントします。
protected  void JComponent.printChildren(Graphics g)
          このコンポーネントの子をペイントします。
protected  void JComponent.printComponent(Graphics g)
          このメソッドは印刷操作中に呼び出されます。
 void JFrame.update(Graphics g)
          paint(g) を呼び出します。
 void JComponent.update(Graphics g)
          paint を呼び出します。
 void JDialog.update(Graphics g)
          paint(g) を呼び出します。
 void CellRendererPane.update(Graphics g)
          呼び出しません。
 void JWindow.update(Graphics g)
          paint(g) を呼び出します。
 void JApplet.update(Graphics g)
          paint(g) を呼び出します。
 

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

javax.swing.border での Graphics の使用
 

Graphics 型のパラメータを持つ javax.swing.border のメソッド
 void Border.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 AbstractBorder.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 MatteBorder.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 EtchedBorder.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)
          指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。
 void TitledBorder.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)
          指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。
protected  void BevelBorder.paintLoweredBevel(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)
           
 

javax.swing.colorchooser での Graphics の使用
 

Graphics 型のパラメータを持つ javax.swing.colorchooser のメソッド
 void AbstractColorChooserPanel.paint(Graphics g)
          パネルを描画します。
 

javax.swing.plaf での Graphics の使用
 

Graphics 型のパラメータを持つ javax.swing.plaf のメソッド
abstract  void SplitPaneUI.finishedPaintingChildren(JSplitPane jc, Graphics g)
          JSplitPane の受信側がその子オブジェクトをペイントするための Look & Feel を提供し終わったときに、メッセージを受け取ります。
 void ComponentUI.paint(Graphics g, JComponent c)
          Look &Feel に適した、指定されたコンポーネントをペイントします。
 void BorderUIResource.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void IconUIResource.paintIcon(Component c, Graphics g, int x, int y)
           
 void ComponentUI.update(Graphics g, JComponent c)
          指定されたコンポーネントをペイントする時間になったことを、この UI 委譲に通知します。
 

javax.swing.plaf.basic での Graphics の使用
 

Graphics 型のパラメータを持つ javax.swing.plaf.basic のメソッド
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)
           
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)
           
static void BasicGraphicsUtils.drawDashedRect(Graphics g, int x, int y, int width, int height)
           
protected  void BasicTreeUI.drawDashedVerticalLine(Graphics g, int x, int y1, int y2)
           
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.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.drawString のように、位置 (x,y) にグラフィックス g を使用した文字列を描画します。
static void BasicGraphicsUtils.drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y)
          ちょうど g.drawString のように、位置 (x, y) にグラフィックス g を使用した文字列を描画します。
 void BasicSplitPaneUI.finishedPaintingChildren(JSplitPane jc, Graphics g)
          JSplitPane の受信側がその子オブジェクトをペイントするための Look & Feel を提供し終わったときに、メッセージを受け取ります。
protected  Point BasicProgressBarUI.getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)
          進捗文字列のペイント位置を指定します。
 void BasicArrowButton.paint(Graphics g)
           
 void BasicToolBarUI.DragWindow.paint(Graphics g)
           
 void BasicSplitPaneDivider.paint(Graphics g)
          ディバイダをペイントします。
 void BasicInternalFrameTitlePane.SystemMenuBar.paint(Graphics g)
           
 void BasicLabelUI.paint(Graphics g, JComponent c)
          ラベルのテキストをフォアグラウンドカラーでペイントし、ラベルが不透明の場合は、バックグラウンドの全体をバックグラウンドカラーでペイントします。
 void BasicButtonUI.paint(Graphics g, JComponent c)
           
 void BasicToggleButtonUI.paint(Graphics g, JComponent c)
           
 void BasicMenuItemUI.paint(Graphics g, JComponent c)
           
 void BasicSeparatorUI.paint(Graphics g, JComponent c)
           
 void BasicScrollBarUI.paint(Graphics g, JComponent c)
           
 void BasicComboBoxUI.paint(Graphics g, JComponent c)
           
 void BasicListUI.paint(Graphics g, JComponent c)
          Graphics オブジェクトの clipRect と交差する行をペイントします。
 void BasicScrollPaneUI.paint(Graphics g, JComponent c)
           
 void BasicTextUI.paint(Graphics g, JComponent c)
          インタフェースをペイントします。
 void BasicToolBarSeparatorUI.paint(Graphics g, JComponent c)
           
 void BasicTabbedPaneUI.paint(Graphics g, JComponent c)
           
 void BasicRadioButtonUI.paint(Graphics g, JComponent c)
          ラジオボタンをペイントします。
 void BasicProgressBarUI.paint(Graphics g, JComponent c)
          ペイントを 2 つのメソッド paintDeterminate または paintIndeterminate のどちらかに委譲します。
 void BasicTableHeaderUI.paint(Graphics g, JComponent c)
           
 void BasicTableUI.paint(Graphics g, JComponent c)
          installUI() により設定された table のインスタンス表現をペイントします。
 void BasicTreeUI.paint(Graphics g, JComponent c)
           
 void BasicSplitPaneUI.paint(Graphics g, JComponent jc)
          Look & Feel をペイントするためにメッセージとして送られます。
 void BasicSliderUI.paint(Graphics g, JComponent c)
           
 void BasicToolTipUI.paint(Graphics g, JComponent c)
           
 void BasicPopupMenuSeparatorUI.paint(Graphics g, JComponent c)
           
 void BasicDesktopPaneUI.paint(Graphics g, JComponent c)
           
protected  void BasicTextUI.paintBackground(Graphics g)
          ビューのバックグラウンドをペイントします。
protected  void BasicMenuItemUI.paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
          メニュー項目のバックグラウンドを描画します。
 void BasicBorders.RolloverButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 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 BasicButtonUI.paintButtonPressed(Graphics g, AbstractButton b)
           
protected  void BasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex)
          List のセルを 1 つペイントします。
 void BasicInternalFrameTitlePane.paintComponent(Graphics g)
           
protected  void BasicTabbedPaneUI.paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
           
protected  void BasicTabbedPaneUI.paintContentBorderBottomEdge(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.paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void BasicTabbedPaneUI.paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
 void BasicComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
          現在選択されている項目をペイントします。
 void BasicComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
          現在選択されている項目のバックグラウンドをペイントします。
protected  void BasicScrollBarUI.paintDecreaseHighlight(Graphics g)
           
protected  void BasicProgressBarUI.paintDeterminate(Graphics g, JComponent c)
          ほぼすべての確定モードのリニアな進捗バーで正しく動作する、汎用の paint メソッドです。
protected  void BasicLabelUI.paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
          clippedText を textX、textY の位置に background.lighter() でペイントします。
protected  void BasicToolBarUI.paintDragWindow(Graphics g)
          ドラッグに使用されたウィンドウの内容をペイントします。
protected  void BasicLabelUI.paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY)
          clippedText を textX、textY の位置に、ラベルのフォアグラウンドカラーでペイントします。
protected  void BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行の展開 (切り替え) 部分をペイントします。
 void BasicSliderUI.paintFocus(Graphics g)
           
protected  void BasicButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void BasicRadioButtonUI.paintFocus(Graphics g, Rectangle textRect, Dimension size)
           
protected  void BasicTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void BasicSliderUI.paintHorizontalLabel(Graphics g, int value, Component label)
          ラベルテーブルの各ラベルに対して呼び出されます。
protected  void BasicTreeUI.paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)
          水平線をペイントします。
protected  void BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          脚の水平部分をペイントします。
protected  void BasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
           
protected  void BasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
           
protected  void BasicButtonUI.paintIcon(Graphics g, JComponent c, Rectangle iconRect)
           
protected  void BasicScrollBarUI.paintIncreaseHighlight(Graphics g)
           
protected  void BasicProgressBarUI.paintIndeterminate(Graphics g, JComponent c)
          すべての直線バウンシングボックス進捗バーが正しく動作する、汎用の paint メソッドです。
 void BasicSliderUI.paintLabels(Graphics g)
           
protected  void BasicSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void BasicSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void BasicMenuItemUI.paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)
           
protected  void BasicSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void BasicSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行のレンダリング部分をペイントします。
protected  void BasicTextUI.paintSafely(Graphics g)
          このスレッドのビューからモデルが変更されないという保証付きで、安全にインタフェースをペイントします。
protected  void BasicProgressBarUI.paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
           
protected  void BasicTabbedPaneUI.paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
           
protected  void BasicTabbedPaneUI.paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
          タブ領域のタブをペイントします。
protected  void BasicTabbedPaneUI.paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
          各タブの周囲にボーダーを描画します。
protected  void BasicButtonUI.paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
          現在のボタンのテキストを描画するメソッドです。
protected  void BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
           
protected  void BasicButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
          Java 2 プラットフォーム 1.4 以降では、このメソッドを使用したり、オーバーライドしたりしないでください。
protected  void BasicMenuItemUI.paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
          現在のメニュー項目のテキストを描画します。
 void BasicSliderUI.paintThumb(Graphics g)
           
protected  void BasicScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
 void BasicSliderUI.paintTicks(Graphics g)
           
protected  void BasicInternalFrameTitlePane.paintTitleBackground(Graphics g)
          paintComponent から呼び出します。
 void BasicSliderUI.paintTrack(Graphics g)
           
protected  void BasicScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
 void BasicArrowButton.paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled)
          三角形をペイントします。
protected  void BasicSliderUI.paintVerticalLabel(Graphics g, int value, Component label)
          ラベルテーブルの各ラベルに対して呼び出されます。
protected  void BasicTreeUI.paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
          垂直線をペイントします。
protected  void BasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
          脚の垂直部分をペイントします。
 void BasicMenuItemUI.update(Graphics g, JComponent c)
          paintMenuItem() でバックグラウンドを描画するために、デフォルトで不透明なコンポーネントのバックグラウンドを塗りつぶす update をオーバーライドして、paint() を呼び出すだけにします。
 void BasicTextUI.update(Graphics g, JComponent c)
          スーパークラスは制御不可能な方法でバックグラウンドをペイントします。
 

javax.swing.plaf.metal での Graphics の使用
 

Graphics 型のパラメータを持つ javax.swing.plaf.metal のメソッド
protected  void MetalCheckBoxIcon.drawCheck(Component c, Graphics g, int x, int y)
           
 void MetalScrollButton.paint(Graphics g)
           
 void MetalSeparatorUI.paint(Graphics g, JComponent c)
           
 void MetalPopupMenuSeparatorUI.paint(Graphics g, JComponent c)
           
 void MetalComboBoxUI.paint(Graphics g, JComponent c)
           
 void MetalTabbedPaneUI.paint(Graphics g, JComponent c)
           
 void MetalRadioButtonUI.paint(Graphics g, JComponent c)
           
 void MetalTreeUI.paint(Graphics g, JComponent c)
           
 void MetalToolTipUI.paint(Graphics g, JComponent c)
           
 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.PaletteBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.OptionDialogBorder.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)
           
 void MetalBorders.ToggleButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalBorders.TableHeaderBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
protected  void MetalTabbedPaneUI.paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void MetalButtonUI.paintButtonPressed(Graphics g, AbstractButton b)
           
protected  void MetalToggleButtonUI.paintButtonPressed(Graphics g, AbstractButton b)
           
 void MetalComboBoxButton.paintComponent(Graphics g)
           
 void MetalInternalFrameTitlePane.paintComponent(Graphics g)
           
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)
           
protected  void MetalTabbedPaneUI.paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
 void MetalComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
          必要に応じて、現在選択されている項目をペイントします。
 void MetalComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
          必要に応じて、現在選択されている項目のバックグラウンドをペイントします。
 void MetalProgressBarUI.paintDeterminate(Graphics g, JComponent c)
          進捗バーに特別なハイライトを描画します。
protected  void MetalLabelUI.paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
          テキストをそれぞれのラベルのフォアグラウンドカラーではなく、グレー (Label.disabledForeground) を使ってペイントします。
 void MetalSliderUI.paintFocus(Graphics g)
           
protected  void MetalButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void MetalToggleButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void MetalRadioButtonUI.paintFocus(Graphics g, Rectangle t, Dimension d)
           
protected  void MetalTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void MetalTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
           
protected  void MetalTreeUI.paintHorizontalSeparators(Graphics g, JComponent c)
           
 void MetalIconFactory.PaletteCloseIcon.paintIcon(Component c, Graphics g, int x, int y)
           
 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 MetalComboBoxIcon.paintIcon(Component c, Graphics g, int x, int y)
          水平線をペイントします。
 void MetalCheckBoxIcon.paintIcon(Component c, Graphics g, int x, int y)
           
protected  void MetalToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
          ボタン b の適切なアイコンを領域 iconRect にペイントします。
 void MetalProgressBarUI.paintIndeterminate(Graphics g, JComponent c)
          進捗バーおよびバウンシングボックスに特別なハイライトを描画します。
protected  void MetalTabbedPaneUI.paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void MetalSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void MetalSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
 void MetalIconFactory.TreeControlIcon.paintMe(Component c, Graphics g, int x, int y)
           
protected  void MetalSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void MetalSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
 void MetalInternalFrameTitlePane.paintPalette(Graphics g)
           
protected  void MetalTabbedPaneUI.paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
protected  void MetalTabbedPaneUI.paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
protected  void MetalTabbedPaneUI.paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
protected  void MetalButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
protected  void MetalToggleButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
 void MetalSliderUI.paintThumb(Graphics g)
           
protected  void MetalScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void MetalTabbedPaneUI.paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
           
 void MetalSliderUI.paintTrack(Graphics g)
           
protected  void MetalScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void MetalTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
           
 void MetalButtonUI.update(Graphics g, JComponent c)
          コンポーネントのバックグラウンドをペイントする必要がある場合に paint を呼び出します。
 void MetalToggleButtonUI.update(Graphics g, JComponent c)
          コンポーネントのバックグラウンドをペイントする必要がある場合に paint を呼び出します。
 void MetalToolBarUI.update(Graphics g, JComponent c)
          コンポーネントのバックグラウンドをペイントする必要がある場合に paint を呼び出します。
 void MetalTabbedPaneUI.update(Graphics g, JComponent c)
           
 void MetalMenuBarUI.update(Graphics g, JComponent c)
          コンポーネントのバックグラウンドをペイントする必要がある場合に paint を呼び出します。
 

javax.swing.plaf.multi での Graphics の使用
 

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

javax.swing.plaf.synth での Graphics の使用
 

Graphics 型のパラメータを持つ javax.swing.plaf.synth のメソッド
 void SynthGraphicsUtils.drawLine(SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2)
          2 つの端点の間に線を描きます。
 void SynthGraphicsUtils.drawLine(SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2, Object styleKey)
          2 つの端点の間に線を描きます。
 void SynthPainter.paintArrowButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          矢印ボタンのバックグラウンドをペイントします。
 void SynthPainter.paintArrowButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          矢印ボタンのボーダーをペイントします。
 void SynthPainter.paintArrowButtonForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int direction)
          矢印ボタンのフォアグラウンドをペイントします。
 void SynthPainter.paintButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ボタンのバックグラウンドをペイントします。
 void SynthPainter.paintButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ボタンのボーダーをペイントします。
 void SynthPainter.paintCheckBoxBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          チェックボックスのバックグラウンドをペイントします。
 void SynthPainter.paintCheckBoxBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          チェックボックスのボーダーをペイントします。
 void SynthPainter.paintCheckBoxMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          チェックボックスのメニュー項目のバックグラウンドをペイントします。
 void SynthPainter.paintCheckBoxMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          チェックボックスのメニュー項目のボーダーをペイントします。
 void SynthPainter.paintColorChooserBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          カラーチューザのバックグラウンドをペイントします。
 void SynthPainter.paintColorChooserBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          カラーチューザのボーダーをペイントします。
 void SynthPainter.paintComboBoxBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          コンボボックスのバックグラウンドをペイントします。
 void SynthPainter.paintComboBoxBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          コンボボックスのボーダーをペイントします。
 void SynthPainter.paintDesktopIconBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          デスクトップアイコンのバックグラウンドをペイントします。
 void SynthPainter.paintDesktopIconBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          デスクトップアイコンのボーダーをペイントします。
 void SynthPainter.paintDesktopPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          デスクトップ区画のバックグラウンドをペイントします。
 void SynthPainter.paintDesktopPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          デスクトップ区画のバックグラウンドをペイントします。
 void SynthPainter.paintEditorPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          エディタ区画のバックグラウンドをペイントします。
 void SynthPainter.paintEditorPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          エディタ区画のボーダーをペイントします。
 void SynthPainter.paintFileChooserBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ファイルチューザのバックグラウンドをペイントします。
 void SynthPainter.paintFileChooserBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ファイルチューザのボーダーをペイントします。
 void SynthPainter.paintFormattedTextFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          書式付きテキストフィールドのバックグラウンドをペイントします。
 void SynthPainter.paintFormattedTextFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          書式付きテキストフィールドのボーダーをペイントします。
 void SynthPainter.paintInternalFrameBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          内部フレームのバックグラウンドをペイントします。
 void SynthPainter.paintInternalFrameBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          内部フレームのボーダーをペイントします。
 void SynthPainter.paintInternalFrameTitlePaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          内部フレームのタイトル区画のバックグラウンドをペイントします。
 void SynthPainter.paintInternalFrameTitlePaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          内部フレームのタイトル区画のボーダーをペイントします。
 void SynthPainter.paintLabelBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ラベルのバックグラウンドをペイントします。
 void SynthPainter.paintLabelBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ラベルのボーダーをペイントします。
 void SynthPainter.paintListBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          リストのバックグラウンドをペイントします。
 void SynthPainter.paintListBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          リストのボーダーをペイントします。
 void SynthPainter.paintMenuBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          メニューのバックグラウンドをペイントします。
 void SynthPainter.paintMenuBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          メニューバーのバックグラウンドをペイントします。
 void SynthPainter.paintMenuBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          メニューバーのボーダーをペイントします。
 void SynthPainter.paintMenuBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          メニューのボーダーをペイントします。
 void SynthPainter.paintMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          メニュー項目のバックグラウンドをペイントします。
 void SynthPainter.paintMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          メニュー項目のボーダーをペイントします。
 void SynthPainter.paintOptionPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          オプション区画のバックグラウンドをペイントします。
 void SynthPainter.paintOptionPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          オプション区画のボーダーをペイントします。
 void SynthPainter.paintPanelBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          パネルのバックグラウンドをペイントします。
 void SynthPainter.paintPanelBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          パネルのボーダーをペイントします。
 void SynthPainter.paintPasswordFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          パスワードフィールドのバックグラウンドをペイントします。
 void SynthPainter.paintPasswordFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          パスワードフィールドのボーダーをペイントします。
 void SynthPainter.paintPopupMenuBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ポップアップメニューのバックグラウンドをペイントします。
 void SynthPainter.paintPopupMenuBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ポップアップメニューのボーダーをペイントします。
 void SynthPainter.paintProgressBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          進捗バーのバックグラウンドをペイントします。
 void SynthPainter.paintProgressBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          進捗バーのバックグラウンドをペイントします。
 void SynthPainter.paintProgressBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          進捗バーのボーダーをペイントします。
 void SynthPainter.paintProgressBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          進捗バーのボーダーをペイントします。
 void SynthPainter.paintProgressBarForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          進捗バーのフォアグラウンドをペイントします。
 void SynthPainter.paintRadioButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ラジオボタンのバックグラウンドをペイントします。
 void SynthPainter.paintRadioButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ラジオボタンのボーダーをペイントします。
 void SynthPainter.paintRadioButtonMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ラジオボタンのメニュー項目のバックグラウンドをペイントします。
 void SynthPainter.paintRadioButtonMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ラジオボタンのメニュー項目のボーダーをペイントします。
 void SynthPainter.paintRootPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ルート区画のバックグラウンドをペイントします。
 void SynthPainter.paintRootPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ルート区画のボーダーをペイントします。
 void SynthPainter.paintScrollBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          スクロールバーのバックグラウンドをペイントします。
 void SynthPainter.paintScrollBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スクロールバーのバックグラウンドをペイントします。
 void SynthPainter.paintScrollBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          スクロールバーのボーダーをペイントします。
 void SynthPainter.paintScrollBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スクロールバーのボーダーをペイントします。
 void SynthPainter.paintScrollBarThumbBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スクロールバーのサムのバックグラウンドをペイントします。
 void SynthPainter.paintScrollBarThumbBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スクロールバーのサムのボーダーをペイントします。
 void SynthPainter.paintScrollBarTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          スクロールバーのトラックのバックグラウンドをペイントします。
 void SynthPainter.paintScrollBarTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スクロールバーのトラックのバックグラウンドをペイントします。
 void SynthPainter.paintScrollBarTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          スクロールバーのトラックのボーダーをペイントします。
 void SynthPainter.paintScrollBarTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スクロールバーのトラックのボーダーをペイントします。
 void SynthPainter.paintScrollPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          スクロール区画のバックグラウンドをペイントします。
 void SynthPainter.paintScrollPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          スクロール区画のボーダーをペイントします。
 void SynthPainter.paintSeparatorBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          セパレータのバックグラウンドをペイントします。
 void SynthPainter.paintSeparatorBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          セパレータのバックグラウンドをペイントします。
 void SynthPainter.paintSeparatorBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          セパレータのボーダーをペイントします。
 void SynthPainter.paintSeparatorBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          セパレータのボーダーをペイントします。
 void SynthPainter.paintSeparatorForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          セパレータのフォアグラウンドをペイントします。
 void SynthPainter.paintSliderBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          スライダのバックグラウンドをペイントします。
 void SynthPainter.paintSliderBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スライダのバックグラウンドをペイントします。
 void SynthPainter.paintSliderBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          スライダのボーダーをペイントします。
 void SynthPainter.paintSliderBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スライダのボーダーをペイントします。
 void SynthPainter.paintSliderThumbBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スライダのサムのバックグラウンドをペイントします。
 void SynthPainter.paintSliderThumbBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スライダのサムのボーダーをペイントします。
 void SynthPainter.paintSliderTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          スライダのトラックのバックグラウンドをペイントします。
 void SynthPainter.paintSliderTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スライダのトラックのバックグラウンドをペイントします。
 void SynthPainter.paintSliderTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          スライダのトラックのボーダーをペイントします。
 void SynthPainter.paintSliderTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          スライダのトラックのボーダーをペイントします。
 void SynthPainter.paintSpinnerBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          スピナーのバックグラウンドをペイントします。
 void SynthPainter.paintSpinnerBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          スピナーのボーダーをペイントします。
 void SynthPainter.paintSplitPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          分割区画のバックグラウンドをペイントします。
 void SynthPainter.paintSplitPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          分割区画のボーダーをペイントします。
 void SynthPainter.paintSplitPaneDividerBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          分割区画のディバイダのバックグラウンドをペイントします。
 void SynthPainter.paintSplitPaneDividerBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          分割区画のディバイダのバックグラウンドをペイントします。
 void SynthPainter.paintSplitPaneDividerForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          分割区画のディバイダのフォアグラウンドをペイントします。
 void SynthPainter.paintSplitPaneDragDivider(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          ユーザーが分割区画のディバイダをドラッグしているときにディバイダをペイントします。
 void SynthPainter.paintTabbedPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          タブ区画のバックグラウンドをペイントします。
 void SynthPainter.paintTabbedPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          タブ区画のボーダーをペイントします。
 void SynthPainter.paintTabbedPaneContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          選択されたタブ区画のタブの内容が格納されている領域のバックグラウンドをペイントします。
 void SynthPainter.paintTabbedPaneContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          選択されたタブ区画のタブの内容が格納されている領域のボーダーをペイントします。
 void SynthPainter.paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          タブ区画のタブの背後にある領域のバックグラウンドをペイントします。
 void SynthPainter.paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          タブ区画のタブの背後にある領域のバックグラウンドをペイントします。
 void SynthPainter.paintTabbedPaneTabAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          タブ区画のタブの背後にある領域のボーダーをペイントします。
 void SynthPainter.paintTabbedPaneTabAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          タブ区画のタブの背後にある領域のボーダーをペイントします。
 void SynthPainter.paintTabbedPaneTabBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex)
          タブ区画のタブのバックグラウンドをペイントします。
 void SynthPainter.paintTabbedPaneTabBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex, int orientation)
          タブ区画のタブのバックグラウンドをペイントします。
 void SynthPainter.paintTabbedPaneTabBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex)
          タブ区画のタブのボーダーをペイントします。
 void SynthPainter.paintTabbedPaneTabBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex, int orientation)
          タブ区画のタブのボーダーをペイントします。
 void SynthPainter.paintTableBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          テーブルのバックグラウンドをペイントします。
 void SynthPainter.paintTableBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          テーブルのボーダーをペイントします。
 void SynthPainter.paintTableHeaderBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          テーブルのヘッダーのバックグラウンドをペイントします。
 void SynthPainter.paintTableHeaderBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          テーブルのヘッダーのボーダーをペイントします。
 void SynthGraphicsUtils.paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)
          アイコンとテキストをペイントします。
 void SynthGraphicsUtils.paintText(SynthContext ss, Graphics g, String text, int x, int y, int mnemonicIndex)
          指定された位置にテキストをペイントします。
 void SynthGraphicsUtils.paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex)
          指定された位置にテキストをペイントします。
 void SynthPainter.paintTextAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          テキスト領域のバックグラウンドをペイントします。
 void SynthPainter.paintTextAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          テキスト領域のボーダーをペイントします。
 void SynthPainter.paintTextFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          テキストフィールドのバックグラウンドをペイントします。
 void SynthPainter.paintTextFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          テキストフィールドのボーダーをペイントします。
 void SynthPainter.paintTextPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          テキスト区画のバックグラウンドをペイントします。
 void SynthPainter.paintTextPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          テキスト区画のボーダーをペイントします。
 void SynthPainter.paintToggleButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          トグルボタンのバックグラウンドをペイントします。
 void SynthPainter.paintToggleButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          トグルボタンのボーダーをペイントします。
 void SynthPainter.paintToolBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツールバーのバックグラウンドをペイントします。
 void SynthPainter.paintToolBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          ツールバーのバックグラウンドをペイントします。
 void SynthPainter.paintToolBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツールバーのボーダーをペイントします。
 void SynthPainter.paintToolBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          ツールバーのボーダーをペイントします。
 void SynthPainter.paintToolBarContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツールバーのコンテンツ領域のバックグラウンドをペイントします。
 void SynthPainter.paintToolBarContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          ツールバーのコンテンツ領域のバックグラウンドをペイントします。
 void SynthPainter.paintToolBarContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツールバーのコンテンツ領域のボーダーをペイントします。
 void SynthPainter.paintToolBarContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          ツールバーのコンテンツ領域のボーダーをペイントします。
 void SynthPainter.paintToolBarDragWindowBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツールバーがそのプライマリフレームから切り離されたときに、ツールバーが格納されているウィンドウのバックグラウンドをペイントします。
 void SynthPainter.paintToolBarDragWindowBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          ツールバーがそのプライマリフレームから切り離されたときに、ツールバーが格納されているウィンドウのバックグラウンドをペイントします。
 void SynthPainter.paintToolBarDragWindowBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツールバーがそのプライマリフレームから切り離されたときに、ツールバーが格納されているウィンドウのボーダーをペイントします。
 void SynthPainter.paintToolBarDragWindowBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
          ツールバーがそのプライマリフレームから切り離されたときに、ツールバーが格納されているウィンドウのボーダーをペイントします。
 void SynthPainter.paintToolTipBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツールヒントのバックグラウンドをペイントします。
 void SynthPainter.paintToolTipBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツールヒントのボーダーをペイントします。
 void SynthPainter.paintTreeBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツリーのバックグラウンドをペイントします。
 void SynthPainter.paintTreeBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツリーのボーダーをペイントします。
 void SynthPainter.paintTreeCellBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツリー内のセルが格納されている行のバックグラウンドをペイントします。
 void SynthPainter.paintTreeCellBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツリー内のセルが格納されている行のボーダーをペイントします。
 void SynthPainter.paintTreeCellFocus(SynthContext context, Graphics g, int x, int y, int w, int h)
          ツリー内のセルにフォーカスがあるときに、セルのフォーカスインジケータをペイントします。
 void SynthPainter.paintViewportBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
          ビューポートのバックグラウンドをペイントします。
 void SynthPainter.paintViewportBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
          ビューポートのボーダーをペイントします。
 

javax.swing.text での Graphics の使用
 

Graphics を返す javax.swing.text のメソッド
 Graphics View.getGraphics()
          描画のための Graphics を取得します。
 

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

javax.swing.text.html での Graphics の使用
 

Graphics 型のパラメータを持つ javax.swing.text.html のメソッド
 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 リスト修飾をペイントします。
 void ParagraphView.paint(Graphics g, Shape a)
          指定された描画表面およびその表面上の領域を使って描画します。
 void ListView.paint(Graphics g, Shape allocation)
          指定された描画表面およびその表面上の領域を使って描画します。
 void ImageView.paint(Graphics g, Shape a)
          View をペイントします。
 void BlockView.paint(Graphics g, Shape allocation)
          指定された描画表面およびその表面上の領域を使って描画します。
protected  void ListView.paintChild(Graphics g, Rectangle alloc, int index)
          子の一つを描画します。
 

javax.swing.tree での Graphics の使用
 

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


JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。