jp.digitalmuseum.utils
クラス ScreenRectangle

java.lang.Object
  上位を拡張 jp.digitalmuseum.utils.ScreenRectangle
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Iterable<ScreenPosition>

public class ScreenRectangle
extends java.lang.Object
implements java.lang.Iterable<ScreenPosition>, java.io.Serializable

Rectangle in the screen coordinate.

作成者:
Jun KATO
関連項目:
直列化された形式

フィールドの概要
static int LEFT_BOTTOM
           
static int LEFT_TOP
           
static int RIGHT_BOTTOM
           
static int RIGHT_TOP
           
 
コンストラクタの概要
ScreenRectangle()
           
ScreenRectangle(ScreenPosition[] corners)
           
ScreenRectangle(ScreenPosition rt, ScreenPosition rb, ScreenPosition lb, ScreenPosition lt)
           
ScreenRectangle(ScreenRectangle rectangle)
           
 
メソッドの概要
 void draw(java.awt.Graphics2D g)
           
 void draw(java.awt.Graphics2D g, boolean withDescription)
           
 ScreenPosition get(int i)
           
 ScreenPosition getLeftBottom()
           
 ScreenPosition getLeftTop()
           
 int getRectangleCornerIndexNear(int x, int y)
           
 ScreenPosition getRightBottom()
           
 ScreenPosition getRightTop()
           
 double getRotation()
           
 java.util.Iterator<ScreenPosition> iterator()
           
 void set(int i, int x, int y)
           
 void set(int i, ScreenPosition p)
           
 void set(ScreenRectangle rectangle)
           
 void setLeftBottom(int x, int y)
           
 void setLeftBottom(ScreenPosition p)
           
 void setLeftTop(int x, int y)
           
 void setLeftTop(ScreenPosition p)
           
 void setRightBottom(int x, int y)
           
 void setRightBottom(ScreenPosition p)
           
 void setRightTop(int x, int y)
           
 void setRightTop(ScreenPosition p)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

RIGHT_TOP

public static final int RIGHT_TOP
関連項目:
定数フィールド値

RIGHT_BOTTOM

public static final int RIGHT_BOTTOM
関連項目:
定数フィールド値

LEFT_BOTTOM

public static final int LEFT_BOTTOM
関連項目:
定数フィールド値

LEFT_TOP

public static final int LEFT_TOP
関連項目:
定数フィールド値
コンストラクタの詳細

ScreenRectangle

public ScreenRectangle()

ScreenRectangle

public ScreenRectangle(ScreenRectangle rectangle)

ScreenRectangle

public ScreenRectangle(ScreenPosition rt,
                       ScreenPosition rb,
                       ScreenPosition lb,
                       ScreenPosition lt)

ScreenRectangle

public ScreenRectangle(ScreenPosition[] corners)
メソッドの詳細

get

public ScreenPosition get(int i)

getRightTop

public ScreenPosition getRightTop()

getRightBottom

public ScreenPosition getRightBottom()

getLeftBottom

public ScreenPosition getLeftBottom()

getLeftTop

public ScreenPosition getLeftTop()

set

public void set(ScreenRectangle rectangle)

set

public void set(int i,
                ScreenPosition p)

set

public void set(int i,
                int x,
                int y)

setRightTop

public void setRightTop(ScreenPosition p)

setRightTop

public void setRightTop(int x,
                        int y)

setRightBottom

public void setRightBottom(ScreenPosition p)

setRightBottom

public void setRightBottom(int x,
                           int y)

setLeftBottom

public void setLeftBottom(ScreenPosition p)

setLeftBottom

public void setLeftBottom(int x,
                          int y)

setLeftTop

public void setLeftTop(ScreenPosition p)

setLeftTop

public void setLeftTop(int x,
                       int y)

getRectangleCornerIndexNear

public int getRectangleCornerIndexNear(int x,
                                       int y)

getRotation

public double getRotation()

iterator

public java.util.Iterator<ScreenPosition> iterator()
定義:
インタフェース java.lang.Iterable<ScreenPosition> 内の iterator

draw

public void draw(java.awt.Graphics2D g)

draw

public void draw(java.awt.Graphics2D g,
                 boolean withDescription)


Copyright by Jun KATO (arc@dmz) at http://mr.digitalmuseum.jp/