|
intra-mart 6.1.14 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.co.intra_mart.foundation.drawer.AbstractDrawer
画像ファイル出力用のスケルトンクラスです。
サブクラスでは、createImage メソッドをオーバーライドして、 画像を描画する機能を実装する必要があります。
コンストラクタの概要 | |
protected |
AbstractDrawer()
唯一のコンストラクタ。 |
メソッドの概要 | |
protected abstract void |
createImage(Graphics g)
画像ファイルを描画します。 |
String |
getContentType()
画像ファイルのフォーマットを返却します。 |
int |
getHeight()
画像ファイルの高さを返却します。 |
int |
getWidth()
画像ファイルの幅を返却します。 |
void |
putImage(OutputStream out)
指定のストリームにファイルを出力します。 |
void |
setContentType(String type)
画像ファイルのフォーマットを設定します。 |
void |
setHeight(int height)
画像ファイルの高さを設定します。 |
void |
setWidth(int width)
画像ファイルの幅を設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected AbstractDrawer()
メソッドの詳細 |
protected abstract void createImage(Graphics g)
g
- グラフィックコンテキストpublic void setContentType(String type)
type
- コンテントタイプpublic void setWidth(int width)
width
- 幅public void setHeight(int height)
public String getContentType()
public int getWidth()
public int getHeight()
public void putImage(OutputStream out) throws IOException
#setContentType()
によって決定されます。
out
- 出力先ストリーム
IOException
|
intra-mart 6.1.14 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |