クラスjava.awt.Graphics2D
の使用

Graphics2Dを使用するパッケージ
パッケージ
説明
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
フォント関連のクラスおよびインタフェースを提供します。
イメージを作成および修正するためのクラスを提供します。
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
クロス・プラットフォームのNimbus Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
  • java.awtでのGraphics2Dの使用

    Graphics2Dを返すjava.awtのメソッド
    修飾子と型
    メソッド
    説明
    abstract Graphics2D
    GraphicsEnvironment.createGraphics(BufferedImage img)
    指定されたBufferedImageにレンダリングするためのGraphics2Dオブジェクトを返します。
    SplashScreen.createGraphics()
    スプラッシュ画面上に描画できるようにする、スプラッシュ画面のオーバーレイ・イメージのグラフィックス・コンテキストを(Graphics2Dオブジェクトとして)作成します。
  • java.awt.fontでのGraphics2Dの使用

    Graphics2Dのパラメータを持つjava.awt.fontのメソッド
    修飾子と型
    メソッド
    説明
    abstract void
    GraphicAttribute.draw(Graphics2D graphics, float x, float y)
    このGraphicAttributeを指定された位置にレンダリングします。
    void
    ImageGraphicAttribute.draw(Graphics2D graphics, float x, float y)
    このGraphicAttributeを指定された位置にレンダリングします。
    void
    ShapeGraphicAttribute.draw(Graphics2D graphics, float x, float y)
    このGraphicAttributeを指定された位置にレンダリングします。
    void
    TextLayout.draw(Graphics2D g2, float x, float y)
    指定されたGraphics2Dコンテキストの指定された位置にこのTextLayoutを描画します。
  • java.awt.imageでのGraphics2Dの使用

    Graphics2Dを返すjava.awt.imageのメソッド
    修飾子と型
    メソッド
    説明
    BufferedImage.createGraphics()
    このBufferedImageに描画するために使用できるGraphics2Dを作成します。
    abstract Graphics2D
    VolatileImage.createGraphics()
    このVolatileImageに描画するために使用できるGraphics2Dを作成します。
  • javax.swingでのGraphics2Dの使用

    Graphics2Dのパラメータを持つjavax.swingのメソッド
    修飾子と型
    メソッド
    説明
    void
    Painter.paint(Graphics2D g, T object, int width, int height)
    指定されたGraphics2Dオブジェクトに描画します。
  • javax.swing.plaf.basicでのGraphics2Dの使用

    Graphics2Dのパラメータを持つjavax.swing.plaf.basicのメソッド
    修飾子と型
    メソッド
    説明
    static void
    BasicGraphicsUtils.drawString(JComponent c, Graphics2D g, String string, float x, float y)
    提供されたコンポーネントのテキスト・プロパティとアンチ・エイリアシング・ヒントを使用して、指定された文字列を指定されたロケーションに描画します。
    static void
    BasicGraphicsUtils.drawStringUnderlineCharAt(JComponent c, Graphics2D g, String string, int underlinedIndex, float x, float y)
    指定された文字の下にある指定されたロケーションに、指定された文字列を描画します。
  • javax.swing.plaf.nimbusでのGraphics2Dの使用

    Graphics2Dのパラメータを持つjavax.swing.plaf.nimbusのメソッド
    修飾子と型
    メソッド
    説明
    protected void
    AbstractRegionPainter.configureGraphics(Graphics2D g)
    指定されたGraphics2Dを構成します。
    protected abstract void
    AbstractRegionPainter.doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys)
    実際にペイント操作を実行します。
    final void
    AbstractRegionPainter.paint(Graphics2D g, JComponent c, int w, int h)
    指定されたGraphics2Dオブジェクトに描画します。
  • javax.swing.textでのGraphics2Dの使用

    Graphics2Dのパラメータを持つjavax.swing.textのメソッド
    修飾子と型
    メソッド
    説明
    protected float
    PasswordView.drawEchoCharacter(Graphics2D g, float x, float y, char c)
    エコー文字または、パスワード文字列を表示するのに使うグラフィックをレンダリングします。
    protected void
    PlainView.drawLine(int lineIndex, Graphics2D g, float x, float y)
    末尾の余白を抑止し、タブを拡張しながら、1行のテキストをレンダリングします。
    protected void
    WrappedPlainView.drawLine(int p0, int p1, Graphics2D g, float x, float y)
    末尾の余白を抑止し、タブを拡張しながら、1行のテキストをレンダリングします。
    protected float
    PlainView.drawSelectedText(Graphics2D g, float x, float y, int p0, int p1)
    モデル内の指定された範囲を、選択されたテキストとしてレンダリングします。
    protected float
    WrappedPlainView.drawSelectedText(Graphics2D g, float x, float y, int p0, int p1)
    モデル内の指定された範囲を、選択されたテキストとしてレンダリングします。
    static final float
    Utilities.drawTabbedText(Segment s, float x, float y, Graphics2D g, TabExpander e, int startOffset)
    指定されたタブ拡張手法を使用して含まれているタブを拡張しながら、指定されたテキストをレンダリングします。
    protected float
    PlainView.drawUnselectedText(Graphics2D g, float x, float y, int p0, int p1)
    モデル内の指定された範囲を通常の選択されていないテキストとしてレンダリングします。
    protected float
    WrappedPlainView.drawUnselectedText(Graphics2D g, float x, float y, int p0, int p1)
    モデル内の指定された範囲を通常の選択されていないテキストとしてレンダリングします。