http://www.eteks.com

com.eteks.java2d
クラス PJAGraphicsManager2D

java.lang.Object
  |
  +--com.eteks.awt.PJAGraphicsManager
        |
        +--com.eteks.java2d.PJAGraphicsManager2D

public class PJAGraphicsManager2D
extends PJAGraphicsManager

Pure Java AWT Manager for Java2D. This class manages fonts and images with Java 2D GraphicsEnvironment. Fonts come from True Type font files and images are build with PJABufferedImage.

導入されたバージョン:
PJA2.0
バージョン:
2.1
作成者:
Emmanuel Puybaret
関連項目:
PJAToolkit

コンストラクタの概要
PJAGraphicsManager2D()
           
 
メソッドの概要
 int checkImage(java.awt.Image image, int width, int height, java.awt.image.ImageObserver observer)
          Checks the status of an image laoding.
 java.awt.Image createImage(java.awt.image.ImageProducer producer)
          Creates an image from the producer.
 java.awt.Image createImage(int width, int height)
          Creates an image of width x height pixels.
 java.lang.String[] getFontList()
          Returns the array {"Dialog", "SansSerif", "Serif", "Monospaced", "DialogInput"}.
 java.awt.FontMetrics getFontMetrics(java.awt.Font font)
          Returns the font metrics of a font.
 java.awt.peer.FontPeer getFontPeer(java.lang.String name, int style)
          Returns a dummy FontPeer object.
 java.awt.GraphicsConfiguration getGraphicsConfiguration()
          Returns a GraphicsConfiguration instance required by the the method getGraphicsConfiguration () of ComponentPeer interface.
 boolean prepareImage(java.awt.Image image, int width, int height, java.awt.image.ImageObserver observer)
          Starts the loading of an image.
 
クラス com.eteks.awt.PJAGraphicsManager から継承したメソッド
createImage, createImage, createImage, getClosestColorIndex, getColorModel, getDefaultFont, getDefaultGraphicsManager, getFontsDirectory, getFontsPath, getImage, getImage, getScreenHeight, getScreenResolution, getScreenWidth, isClassAccessible, isFontInstantiable, loadFont, loadFonts, loadFonts, sync
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PJAGraphicsManager2D

public PJAGraphicsManager2D()
メソッドの詳細

getFontPeer

public java.awt.peer.FontPeer getFontPeer(java.lang.String name,
                                          int style)
Returns a dummy FontPeer object.
オーバーライド:
クラス PJAGraphicsManager 内の getFontPeer
パラメータ:
name - The font name.
style - The font style (Font.PLAIN, Font.ITALIC, Font.BOLD or Font.BOLD | Font.ITALIC)

getFontList

public java.lang.String[] getFontList()
Returns the array {"Dialog", "SansSerif", "Serif", "Monospaced", "DialogInput"}. The list of True Type fonts is obtained from GraphicsEnvironment getAvailableFontFamilyNames() method.
オーバーライド:
クラス PJAGraphicsManager 内の getFontList

getFontMetrics

public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
Returns the font metrics of a font.
オーバーライド:
クラス PJAGraphicsManager 内の getFontMetrics

prepareImage

public boolean prepareImage(java.awt.Image image,
                            int width,
                            int height,
                            java.awt.image.ImageObserver observer)
Starts the loading of an image.
オーバーライド:
クラス PJAGraphicsManager 内の prepareImage
関連項目:
PJAToolkit.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)

checkImage

public int checkImage(java.awt.Image image,
                      int width,
                      int height,
                      java.awt.image.ImageObserver observer)
Checks the status of an image laoding.
オーバーライド:
クラス PJAGraphicsManager 内の checkImage
関連項目:
PJAToolkit.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)

createImage

public java.awt.Image createImage(java.awt.image.ImageProducer producer)
Creates an image from the producer. This is the method that finally creates an instance of PJABufferedImage.
オーバーライド:
クラス PJAGraphicsManager 内の createImage
戻り値:
An instance of the class java.awt.Image.

createImage

public java.awt.Image createImage(int width,
                                  int height)
Creates an image of width x height pixels. This method returns an instance of com.eteks.awt.PJABufferedImage.
オーバーライド:
クラス PJAGraphicsManager 内の createImage
パラメータ:
width - Width in pixels of the new image.
height - Height in pixels of the new image.
戻り値:
An instance of the class java.awt.Image.
関連項目:
PJAGraphicsEnvironment

getGraphicsConfiguration

public java.awt.GraphicsConfiguration getGraphicsConfiguration()
Returns a GraphicsConfiguration instance required by the the method getGraphicsConfiguration () of ComponentPeer interface.
オーバーライド:
クラス PJAGraphicsManager 内の getGraphicsConfiguration
導入されたバージョン:
PJA2.0

© 1997-2001 eTeks - All rights reserved