public class DisplayedAreaSelection
extends java.lang.Object
implements java.lang.Cloneable
A class to keep track of a selected sub-region of an image for the purposes of display.
SingleImagePanel
Modifier and Type | Field and Description |
---|---|
protected int |
brhcX |
protected int |
brhcY |
protected double |
columnSpacing |
protected boolean |
crop |
protected boolean |
deducePixelMagnificationRatioFromSpacing |
protected boolean |
fitToWindow |
protected int |
horizontalGravity |
protected int |
imageHeight |
protected int |
imageWidth |
protected double |
pixelMagnificationRatio |
protected double |
requestedDisplaySpacing |
protected double |
rowSpacing |
protected int |
selectionHeight |
protected int |
selectionWidth |
protected int |
tlhcX |
protected int |
tlhcY |
protected boolean |
useExplicitPixelMagnificationRatio |
protected int |
verticalGravity |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
setPixelMagnificationRatio(double pixelMagnificationRatio)
Change the selection to use the specified magnification ratio.
|
java.lang.String |
toString() |
void |
translate(int deltaX,
int deltaY) |
protected int imageWidth
protected int imageHeight
protected int tlhcX
protected int tlhcY
protected int brhcX
protected int brhcY
protected int selectionWidth
protected int selectionHeight
protected boolean fitToWindow
protected boolean useExplicitPixelMagnificationRatio
protected boolean deducePixelMagnificationRatioFromSpacing
protected double requestedDisplaySpacing
protected double rowSpacing
protected double columnSpacing
protected double pixelMagnificationRatio
protected int horizontalGravity
protected int verticalGravity
protected boolean crop
public void translate(int deltaX, int deltaY)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
public void setPixelMagnificationRatio(double pixelMagnificationRatio)
pixelMagnificationRatio
- the magnification factor of display pixels relative to the image pixels (i.e., 1.0 means 1 display pixel per 1 image pixel)