Package com.pixelmed.display
Class DisplayedAreaSelection
java.lang.Object
com.pixelmed.display.DisplayedAreaSelection
- All Implemented Interfaces:
Cloneable
A class to keep track of a selected sub-region of an image for the purposes of display.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
protected double
protected boolean
protected boolean
protected boolean
protected int
protected int
protected int
protected double
protected double
protected double
protected int
protected int
protected int
protected int
protected boolean
protected int
-
Method Summary
-
Field Details
-
imageWidth
protected int imageWidth -
imageHeight
protected int imageHeight -
tlhcX
protected int tlhcX -
tlhcY
protected int tlhcY -
brhcX
protected int brhcX -
brhcY
protected int brhcY -
selectionWidth
protected int selectionWidth -
selectionHeight
protected int selectionHeight -
fitToWindow
protected boolean fitToWindow -
useExplicitPixelMagnificationRatio
protected boolean useExplicitPixelMagnificationRatio -
deducePixelMagnificationRatioFromSpacing
protected boolean deducePixelMagnificationRatioFromSpacing -
requestedDisplaySpacing
protected double requestedDisplaySpacing -
rowSpacing
protected double rowSpacing -
columnSpacing
protected double columnSpacing -
pixelMagnificationRatio
protected double pixelMagnificationRatio -
horizontalGravity
protected int horizontalGravity -
verticalGravity
protected int verticalGravity -
crop
protected boolean crop
-
-
Method Details
-
translate
public void translate(int deltaX, int deltaY) -
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
toString
-
setPixelMagnificationRatio
public void setPixelMagnificationRatio(double pixelMagnificationRatio) Change the selection to use the specified magnification ratio. Turns off fitToWindow if previously selected, since we have requested explicit magnification- Parameters:
pixelMagnificationRatio
- the magnification factor of display pixels relative to the image pixels (i.e., 1.0 means 1 display pixel per 1 image pixel)
-