JavaTM 2
Platform
Std. Ed. v1.4.0

クラス
java.awt.Graphics の使用

Graphics を使用しているパッケージ
java.awt ユーザインタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。 
java.awt.image イメージの作成や変更を行うクラスを提供します。 
java.awt.print 汎用印刷 API で使用するクラスおよびインタフェースを提供します。 
java.beans Bean (JavaBeansTM アーキテクチャに基づいたコンポーネント) の開発に関連するクラスが含まれています。 
javax.swing すべてのプラットフォームで可能なかぎり同じように機能する、「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種のボーダを描画するための、クラスおよびインタフェースを提供します。 
javax.swing.colorchooser このパッケージには、JColorChooser コンポーネントによって使われるクラスおよびインタフェースが含まれています。  
javax.swing.plaf 1 つのインタフェースおよび多くの抽象クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 基本 Look & Feel に従って作成されたユーザインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal デフォルトの Look & Feel である Java Look & Feel (コード名は Metal) に従って作成されたユーザインタフェースオブジェクトを提供します。  
javax.swing.plaf.multi 2 つ以上の 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 PrintJob.getGraphics()
          次のページに描くグラフィックスオブジェクトを返します。
abstract  Graphics Image.getGraphics()
          オフスクリーンイメージに描画するためのグラフィックスコンテキストを作成します。
abstract  Graphics Graphics.create()
          この Graphics オブジェクトのコピーである、新しい Graphics オブジェクトを作成します。
 Graphics Graphics.create(int x, int y, int width, int height)
          この Graphics オブジェクトに基づいた新しい Graphics オブジェクトを、新しい変換およびクリップ領域で作成します。
 Graphics Component.getGraphics()
          このコンポーネントのグラフィックスコンテキストを作成します。
 Graphics Component.FlipBufferStrategy.getDrawGraphics()
           
 Graphics Component.BltBufferStrategy.getDrawGraphics()
           
 

Graphics 型のパラメータを持つ java.awt のメソッド
 void Canvas.paint(Graphics g)
          このキャンバスをペイントします。
 void Canvas.update(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 Component.paint(Graphics g)
          このコンポーネントをペイントします。
 void Component.update(Graphics g)
          このコンポーネントを更新します。
 void Component.paintAll(Graphics g)
          このコンポーネントおよびそのすべてのサブコンポーネントをペイントします。
 void Component.print(Graphics g)
          このコンポーネントを出力します。
 void Component.printAll(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 コンテキストで、最大の境界を持つ文字の境界を返します。
 void ScrollPane.printComponents(Graphics g)
          このスクロールペイン内のコンポーネントを出力します。
 

java.awt.image での Graphics の使用
 

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

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 JComponent.getGraphics()
          このコンポーネントのグラフィックスコンテキストを返します。
 

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

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

javax.swing.border での Graphics の使用
 

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

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 ComponentUI.update(Graphics g, JComponent c)
          指定されたコンポーネントをペイントする時間になったことを、この UI 委譲に通知します。
 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)
           
 

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

Graphics 型のパラメータを持つ javax.swing.plaf.basic のメソッド
 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 BasicTableUI.paint(Graphics g, JComponent c)
          installUI() により設定された table のインスタンス表現をペイントします。
 void BasicTableHeaderUI.paint(Graphics g, JComponent c)
           
 void BasicBorders.SplitPaneBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void BasicSplitPaneDivider.paint(Graphics g)
          ディバイダをペイントします。
 void BasicSplitPaneUI.finishedPaintingChildren(JSplitPane jc, Graphics g)
          JSplitPane の受信側がその子オブジェクトを描画するための Look & Feel を提供し終わったときに、メッセージを受け取ります。
 void BasicSplitPaneUI.paint(Graphics g, JComponent jc)
          Look & Feel をペイントするためにメッセージとして送られます。
 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 BasicProgressBarUI.paint(Graphics g, JComponent c)
          ペイントを 2 つのメソッド paintDeterminate または paintIndeterminate のどちらかに委譲します。
protected  void BasicProgressBarUI.paintIndeterminate(Graphics g, JComponent c)
          すべての直線バウンシングボックス進捗バーが正しく動作する、汎用の paint メソッドです。
protected  void BasicProgressBarUI.paintDeterminate(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)
          進捗文字列のペイント位置を指定します。
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 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 BasicBorders.RadioButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void BasicBorders.ButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void BasicBorders.RolloverButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void BasicBorders.ToggleButtonBorder.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 BasicRadioButtonUI.paint(Graphics g, JComponent c)
          ラジオボタンをペイントします。
protected  void BasicRadioButtonUI.paintFocus(Graphics g, Rectangle textRect, Dimension size)
           
 void BasicToggleButtonUI.paint(Graphics g, JComponent c)
           
protected  void BasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
           
 void BasicInternalFrameTitlePane.paintComponent(Graphics g)
           
protected  void BasicInternalFrameTitlePane.paintTitleBackground(Graphics g)
          paintComponent から呼び出します。
 void BasicInternalFrameTitlePane.SystemMenuBar.paint(Graphics g)
           
 void BasicDesktopPaneUI.paint(Graphics g, JComponent c)
           
 void BasicScrollPaneUI.paint(Graphics g, JComponent c)
           
 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)
          Java 2 プラットフォーム v 1.4 以降では、このメソッドを使用したり、オーバーライドしたりしないでください。
protected  void BasicButtonUI.paintText(Graphics g, AbstractButton b, 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 BasicArrowButton.paint(Graphics g)
           
 void BasicArrowButton.paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled)
           
 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)
           
protected  void BasicTextUI.paintBackground(Graphics g)
          ビューのバックグラウンドをペイントします。
protected  void BasicTextUI.paintSafely(Graphics g)
          このスレッドのビューからモデルが変更されないという保証付きで、安全にインタフェースをペイントします。
 void BasicTextUI.update(Graphics g, JComponent c)
          スーパークラスは制御不可能な方法でバックグラウンドをペイントします。
 void BasicTextUI.paint(Graphics g, JComponent c)
          インタフェースをペイントします。
 void BasicTabbedPaneUI.paint(Graphics g, JComponent c)
           
protected  void BasicTabbedPaneUI.paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
          タブ領域のタブをペイントします。
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 BasicToolBarUI.DragWindow.paint(Graphics g)
           
 void BasicSeparatorUI.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)
           
protected  void BasicMenuItemUI.paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
          メニュー項目のバックグラウンドを描画します。
protected  void BasicMenuItemUI.paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
          現在のメニュー項目のテキストを描画します。
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.drawString のように、位置 (x,y) にグラフィックス g を使用した文字列を描画します。
static void BasicGraphicsUtils.drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y)
          ちょうど g.drawString のように、位置 (x, y) にグラフィックス g を使用した文字列を描画します。
static void BasicGraphicsUtils.drawDashedRect(Graphics g, int x, int y, int width, int height)
           
protected  void BasicLabelUI.paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY)
          clippedText を textX、textY の位置に、ラベルのフォアグラウンドカラーでペイントします。
protected  void BasicLabelUI.paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
          clippedText を textX、textY の位置に background.lighter() でペイントします。
 void BasicLabelUI.paint(Graphics g, JComponent c)
          ラベルのテキストをフォアグラウンドカラーでペイントし、ラベルが不透明の場合は、バックグラウンドの全体をバックグラウンドカラーでペイントします。
 void BasicToolTipUI.paint(Graphics g, JComponent c)
           
 void BasicToolBarSeparatorUI.paint(Graphics g, JComponent c)
           
 void BasicPopupMenuSeparatorUI.paint(Graphics g, JComponent c)
           
 

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

Graphics 型のパラメータを持つ javax.swing.plaf.metal のメソッド
 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 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)
           
 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 MetalProgressBarUI.paintDeterminate(Graphics g, JComponent c)
          進捗バーに特別なハイライトを描画します。
 void MetalProgressBarUI.paintIndeterminate(Graphics g, JComponent c)
          進捗バーおよびバウンディングボックスに特別なハイライトを描画します。
 void MetalComboBoxIcon.paintIcon(Component c, Graphics g, int x, int y)
          水平線をペイントします。
 void MetalComboBoxButton.paintComponent(Graphics g)
           
 void MetalComboBoxUI.paint(Graphics g, JComponent c)
           
 void MetalBorders.ToggleButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
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 MetalRadioButtonUI.paint(Graphics g, JComponent c)
           
protected  void MetalRadioButtonUI.paintFocus(Graphics g, Rectangle t, Dimension d)
           
 void MetalBorders.PaletteBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 void MetalIconFactory.PaletteCloseIcon.paintIcon(Component c, Graphics g, int x, int y)
           
 void MetalInternalFrameTitlePane.paintPalette(Graphics g)
           
 void MetalInternalFrameTitlePane.paintComponent(Graphics g)
           
 void MetalBorders.InternalFrameBorder.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 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 MetalScrollButton.paint(Graphics g)
           
protected  void MetalScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void MetalScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
 void MetalBorders.TextFieldBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
 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.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.TableHeaderBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h)
           
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 MetalPopupMenuSeparatorUI.paint(Graphics g, JComponent c)
           
 void MetalSeparatorUI.paint(Graphics g, JComponent c)
           
protected  void MetalLabelUI.paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
          テキストをそれぞれのラベルのフォアグラウンドカラーではなく、グレー (Label.disabledForeground) を使ってペイントします。
 void MetalToolTipUI.paint(Graphics g, JComponent c)
           
 void MetalCheckBoxIcon.paintIcon(Component c, Graphics g, int x, int y)
           
protected  void MetalCheckBoxIcon.drawCheck(Component c, Graphics g, int x, int y)
           
 

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

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

javax.swing.text での Graphics の使用
 

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

Graphics 型のパラメータを持つ javax.swing.text のメソッド
abstract  void GlyphView.GlyphPainter.paint(GlyphView v, Graphics g, Shape a, int p0, int p1)
          指定された範囲を表すグリフをペイントします。
static int Utilities.drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)
          指定されたタブ拡張手法を使用して含まれているタブを拡張しながら、指定されたテキストを描画します。
 void GlyphView.paint(Graphics g, Shape a)
          テキスト書式の行の一部を描画します。
 void ParagraphView.paint(Graphics g, Shape a)
          指定された描画表面とその領域を使って描画します。
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)
          指定された描画表面とその領域を使って描画します。
protected  void BoxView.paintChild(Graphics g, Rectangle alloc, int index)
          子を描画します。
 void BoxView.paint(Graphics g, Shape allocation)
          指定された描画表面およびその表面上の領域を使って BoxView を描画します。
 void FieldView.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 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)
          ハイライトの一部分を描画します。
abstract  Shape LayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
           
 void Highlighter.HighlightPainter.paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)
          ハイライトを描画します。
 void DefaultHighlighter.paint(Graphics g)
          ハイライトを描画します。
 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 の描画中に呼び出されます。
 void Highlighter.paint(Graphics g)
          ハイライトを描画します。
 void DefaultCaret.paint(Graphics g)
          キャレットを垂直線として描画します。
 void Caret.paint(Graphics g)
          キャレットを描画します。
abstract  void View.paint(Graphics g, Shape allocation)
          指定された描画表面とその領域を使って描画します。
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 IconView.paint(Graphics g, Shape a)
          アイコンをペイントします。
 void ComponentView.paint(Graphics g, Shape a)
          実際の描画の動作は、コンポーネントがその親コンテナ (このビューを収容するコンテナ) との間にある関連性から発生します。
 void AsyncBoxView.paint(Graphics g, Shape alloc)
          指定された割り当ておよび描画表面を使って、ビューを描画します。
 void AsyncBoxView.ChildLocator.paintChildren(Graphics g)
          クリップ領域を交差する子をペイントします。
 

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

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

javax.swing.tree での Graphics の使用
 

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


JavaTM 2
Platform
Std. Ed. v1.4.0

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

Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.