Kagetaka

net.hizlab.kagetaka.rendering
クラス Background

java.lang.Object
  拡張net.hizlab.kagetaka.rendering.Background
すべての実装インタフェース:
Cloneable

public class Background
extends Object
implements Cloneable

ドキュメントの背景情報を表すクラスです。

バージョン:
$Revision: 1.6 $

メソッドの概要
 Object clone()
          このインスタンスを複製した物を返します。
 void draw(Drawer drawer, int x, int y, int width, int height, int totalWidth, int offsetX, int offsetY)
          背景を描画します。
 Color getColor()
          背景色を取得します。
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

clone

public Object clone()
このインスタンスを複製した物を返します。

戻り値:
複製したインスタンス

draw

public void draw(Drawer drawer,
                 int x,
                 int y,
                 int width,
                 int height,
                 int totalWidth,
                 int offsetX,
                 int offsetY)
背景を描画します。

パラメータ:
drawer - 描画用インターフェース
x - X
y - Y
width - 幅
height - 高さ
totalWidth - 全背景の幅
offsetX - 背景画像のオフセット X
offsetY - 背景画像のオフセット Y

getColor

public Color getColor()
背景色を取得します。

戻り値:
背景色

Kagetaka

Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'