public class DisplayShutter
extends java.lang.Object
A set of display shutter parameters constructed from the attributes of the DICOM Display Shutter Module.
Modifier and Type | Field and Description |
---|---|
protected int |
centerOfCircularShutterX |
protected int |
centerOfCircularShutterY |
protected boolean |
hasCircularShutter |
protected boolean |
hasPolygonalShutter |
protected boolean |
hasRectangularShutter |
protected int |
radiusOfCircularShutter |
protected int |
shutterLeftVerticalEdge |
protected int |
shutterLowerHorizontalEdge |
protected int |
shutterRightVerticalEdge |
protected int |
shutterUpperHorizontalEdge |
protected int[] |
verticesOfPolygonalShutter |
protected java.awt.geom.Point2D[] |
verticesOfPolygonalShutterAsPoints |
Constructor and Description |
---|
DisplayShutter(AttributeList list)
Extract the display shutter paramaters from a list of attributes
|
Modifier and Type | Method and Description |
---|---|
int |
getCenterOfCircularShutterX()
Get center X value of circular shutter.
|
int |
getCenterOfCircularShutterY()
Get center Y value of circular shutter.
|
java.awt.geom.Point2D |
getCircularShutterBRHC()
Get BRHC of rectangle bounding circular shutter.
|
java.awt.geom.Point2D |
getCircularShutterTLHC()
Get TLHC of rectangle bounding circular shutter.
|
int |
getRadiusOfCircularShutter()
Get radius of circular shutter.
|
java.awt.geom.Point2D |
getRectangularShutterBRHC()
Get BRHC of rectangular shutter.
|
java.awt.geom.Point2D |
getRectangularShutterTLHC()
Get TLHC of rectangular shutter.
|
int |
getShutterLeftVerticalEdge()
Get left vertical edge of rectangular shutter.
|
int |
getShutterLowerHorizontalEdge()
Get lower horizontal edge of rectangular shutter.
|
int |
getShutterRightVerticalEdge()
Get right vertical edge of rectangular shutter.
|
int |
getShutterUpperHorizontalEdge()
Get upper horizontal edge of rectangular shutter.
|
int[] |
getVerticesOfPolygonalShutter()
Get vertices of polygonal shutter.
|
java.awt.geom.Point2D[] |
getVerticesOfPolygonalShutterAsPoint2D()
Get vertices of polygonal shutter as Point2D.
|
boolean |
isCircularShutter()
Is there a circular shutter.
|
boolean |
isPolygonalShutter()
Is there a polygonal shutter.
|
boolean |
isRectangularShutter()
Is there a rectangular shutter.
|
void |
setCircularDisplayShutter(int centerOfCircularShutterX,
int centerOfCircularShutterY,
int radiusOfCircularShutter)
Set the parameters of a circular shutter.
|
void |
setRectangularDisplayShutter(int shutterLeftVerticalEdge,
int shutterRightVerticalEdge,
int shutterUpperHorizontalEdge,
int shutterLowerHorizontalEdge)
Set the parameters of a rectangular shutter.
|
java.lang.String |
toString() |
protected int centerOfCircularShutterX
protected int centerOfCircularShutterY
protected boolean hasCircularShutter
protected boolean hasPolygonalShutter
protected boolean hasRectangularShutter
protected int radiusOfCircularShutter
protected int shutterLeftVerticalEdge
protected int shutterLowerHorizontalEdge
protected int shutterRightVerticalEdge
protected int shutterUpperHorizontalEdge
protected int[] verticesOfPolygonalShutter
protected java.awt.geom.Point2D[] verticesOfPolygonalShutterAsPoints
public DisplayShutter(AttributeList list)
list
- list of attributespublic int getCenterOfCircularShutterX()
public int getCenterOfCircularShutterY()
public java.awt.geom.Point2D getCircularShutterBRHC()
public java.awt.geom.Point2D getCircularShutterTLHC()
public int getRadiusOfCircularShutter()
public java.awt.geom.Point2D getRectangularShutterBRHC()
public java.awt.geom.Point2D getRectangularShutterTLHC()
public int getShutterLeftVerticalEdge()
public int getShutterLowerHorizontalEdge()
public int getShutterRightVerticalEdge()
public int getShutterUpperHorizontalEdge()
public int[] getVerticesOfPolygonalShutter()
public java.awt.geom.Point2D[] getVerticesOfPolygonalShutterAsPoint2D()
public boolean isCircularShutter()
public boolean isPolygonalShutter()
public boolean isRectangularShutter()
public void setCircularDisplayShutter(int centerOfCircularShutterX, int centerOfCircularShutterY, int radiusOfCircularShutter)
centerOfCircularShutterX
- center X value (column)centerOfCircularShutterY
- center Y value (row)radiusOfCircularShutter
- radiuspublic void setRectangularDisplayShutter(int shutterLeftVerticalEdge, int shutterRightVerticalEdge, int shutterUpperHorizontalEdge, int shutterLowerHorizontalEdge)
shutterLeftVerticalEdge
- left vertical edgeshutterRightVerticalEdge
- right vertical edgeshutterUpperHorizontalEdge
- upper horizontal edgeshutterLowerHorizontalEdge
- lower horizontal edgepublic final java.lang.String toString()
toString
in class java.lang.Object