jp.digitalmuseum.utils
クラス Rectangle

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

public class Rectangle
extends java.lang.Object
implements java.lang.Iterable<Position>, java.io.Serializable
Rectangle in the world coordinate.
作成者:
Jun KATO
関連項目:
直列化された形式

フィールドの概要
static int LEFT_BOTTOM
           
static int LEFT_TOP
           
static int RIGHT_BOTTOM
           
static int RIGHT_TOP
           
 
コンストラクタの概要
Rectangle()
           
Rectangle(Position[] corners)
           
Rectangle(Position rt, Position rb, Position lb, Position lt)
           
Rectangle(Rectangle rectangle)
           
 
メソッドの概要
 Position get(int i)
           
 Position getLeftBottom()
           
 Position getLeftTop()
           
 int getRectangleCornerIndexNear(double x, double y)
           
 Position getRightBottom()
           
 Position getRightTop()
           
 double getRotation()
           
 java.util.Iterator<Position> iterator()
           
 void set(int i, double x, double y)
           
 void set(int i, Position p)
           
 void set(Rectangle rectangle)
           
 void setLeftBottom(double x, double y)
           
 void setLeftBottom(Position p)
           
 void setLeftTop(double x, double y)
           
 void setLeftTop(Position p)
           
 void setRightBottom(double x, double y)
           
 void setRightBottom(Position p)
           
 void setRightTop(double x, double y)
           
 void setRightTop(Position 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
関連項目:
定数フィールド値
コンストラクタの詳細

Rectangle

public Rectangle()

Rectangle

public Rectangle(Rectangle rectangle)

Rectangle

public Rectangle(Position rt,
                 Position rb,
                 Position lb,
                 Position lt)

Rectangle

public Rectangle(Position[] corners)
メソッドの詳細

get

public Position get(int i)

getRightTop

public Position getRightTop()

getRightBottom

public Position getRightBottom()

getLeftBottom

public Position getLeftBottom()

getLeftTop

public Position getLeftTop()

set

public void set(Rectangle rectangle)

set

public void set(int i,
                Position p)

set

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

setRightTop

public void setRightTop(Position p)

setRightTop

public void setRightTop(double x,
                        double y)

setRightBottom

public void setRightBottom(Position p)

setRightBottom

public void setRightBottom(double x,
                           double y)

setLeftBottom

public void setLeftBottom(Position p)

setLeftBottom

public void setLeftBottom(double x,
                          double y)

setLeftTop

public void setLeftTop(Position p)

setLeftTop

public void setLeftTop(double x,
                       double y)

getRectangleCornerIndexNear

public int getRectangleCornerIndexNear(double x,
                                       double y)

getRotation

public double getRotation()

iterator

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


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