cvj2.app.file.imgload
クラス ImageLoadProperty

java.lang.Object
  上位を拡張 cvj2.app.file.imgload.ImageLoadProperty
すべての実装されたインタフェース:
java.lang.Comparable<ImageLoadProperty>

public class ImageLoadProperty
extends java.lang.Object
implements java.lang.Comparable<ImageLoadProperty>

画像ロード時の条件設定


コンストラクタの概要
ImageLoadProperty(FileInfo fileOrDir, FileInfo file2, ImageRotate rotate, java.awt.Dimension targetSize, java.lang.Double zoomRatio)
          コンストラクタ。
 
メソッドの概要
 int compareTo(ImageLoadProperty other)
          オーバーライド
static ImageLoadProperty createForThumbnail(FileInfo fileOrDir, boolean forceAddToThumbnailCache)
          サムネイル用オブジェクトを生成
 boolean equals(java.lang.Object obj)
          オーバーライド
 boolean equalsFileAndRotate(FileInfo fileOrDir, FileInfo file2, ImageRotate rotate)
          ファイルと回転が同じかどうか
 FileInfo getFile2()
          読み込み対象のファイル (画像表示画面で2頁表示する場合)
 FileInfo getFileOrDir()
          読み込み対象のファイル or ディレクトリ
 ImageRotate getRotate()
          回転
 java.awt.Dimension getTargetSize()
          ロード結果として欲しい画像サイズ
 java.lang.Double getZoomRatio()
          ズーム
 int hashCode()
          オーバーライド
 boolean isForceAddToThumbnailCache()
          サムネイルの一括登録用か
 boolean isThumbnail()
          サムネイル用画像か
 java.lang.String toString()
          オーバーライド
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ImageLoadProperty

public ImageLoadProperty(FileInfo fileOrDir,
                         FileInfo file2,
                         ImageRotate rotate,
                         java.awt.Dimension targetSize,
                         java.lang.Double zoomRatio)
コンストラクタ。
targetSize か zoomRatio はどちらかが設定されていなければならない

パラメータ:
fileOrDir - 読み込み対象
rotate - 回転
targetSize - サイズ変換する場合のサイズ (サイズは、回転後のサイズ)
zoomRatio - サイズ変換する場合の拡大縮小率
メソッドの詳細

createForThumbnail

public static ImageLoadProperty createForThumbnail(FileInfo fileOrDir,
                                                   boolean forceAddToThumbnailCache)
サムネイル用オブジェクトを生成


getFileOrDir

public FileInfo getFileOrDir()
読み込み対象のファイル or ディレクトリ


getFile2

public FileInfo getFile2()
読み込み対象のファイル (画像表示画面で2頁表示する場合)


getRotate

public ImageRotate getRotate()
回転


getTargetSize

public java.awt.Dimension getTargetSize()
ロード結果として欲しい画像サイズ


getZoomRatio

public java.lang.Double getZoomRatio()
ズーム


isThumbnail

public boolean isThumbnail()
サムネイル用画像か


isForceAddToThumbnailCache

public boolean isForceAddToThumbnailCache()
サムネイルの一括登録用か


equalsFileAndRotate

public boolean equalsFileAndRotate(FileInfo fileOrDir,
                                   FileInfo file2,
                                   ImageRotate rotate)
ファイルと回転が同じかどうか


compareTo

public int compareTo(ImageLoadProperty other)
オーバーライド

定義:
インタフェース java.lang.Comparable<ImageLoadProperty> 内の compareTo

equals

public boolean equals(java.lang.Object obj)
オーバーライド

オーバーライド:
クラス java.lang.Object 内の equals

hashCode

public int hashCode()
オーバーライド

オーバーライド:
クラス java.lang.Object 内の hashCode

toString

public java.lang.String toString()
オーバーライド

オーバーライド:
クラス java.lang.Object 内の toString