|
http://www.eteks.com | ||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--com.eteks.awt.PJAGraphicsManager | +--com.eteks.java2d.PJAGraphicsManager2D
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
.
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. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public PJAGraphicsManager2D()
メソッドの詳細 |
public java.awt.peer.FontPeer getFontPeer(java.lang.String name, int style)
FontPeer
object.PJAGraphicsManager
内の getFontPeer
name
- The font name.style
- The font style (Font.PLAIN
, Font.ITALIC
,
Font.BOLD
or Font.BOLD | Font.ITALIC
)public java.lang.String[] getFontList()
{"Dialog", "SansSerif", "Serif", "Monospaced", "DialogInput"}
.
The list of True Type fonts is obtained from
GraphicsEnvironment getAvailableFontFamilyNames() method.PJAGraphicsManager
内の getFontList
public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
PJAGraphicsManager
内の getFontMetrics
public boolean prepareImage(java.awt.Image image, int width, int height, java.awt.image.ImageObserver observer)
PJAGraphicsManager
内の prepareImage
PJAToolkit.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
public int checkImage(java.awt.Image image, int width, int height, java.awt.image.ImageObserver observer)
PJAGraphicsManager
内の checkImage
PJAToolkit.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
public java.awt.Image createImage(java.awt.image.ImageProducer producer)
producer
. This is the method that
finally creates an instance of PJABufferedImage
.PJAGraphicsManager
内の createImage
java.awt.Image
.public java.awt.Image createImage(int width, int height)
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.java.awt.Image
.PJAGraphicsEnvironment
public java.awt.GraphicsConfiguration getGraphicsConfiguration()
GraphicsConfiguration
instance required by the the method
getGraphicsConfiguration ()
of ComponentPeer
interface.PJAGraphicsManager
内の getGraphicsConfiguration
|
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |