Class Viewer.Main.ScreenImageHandler
All Packages Class Hierarchy This Package Previous Next Index
Class Viewer.Main.ScreenImageHandler
Object
|
+----Viewer.Main.ScreenImageHandler
- public class ScreenImageHandler
- extends Object
This calls manages the the image viewing and processing part of
DICOMScope. This class contains all important objects of the GUI
and the data level.
- Author:
- Klaus Kleber
- Since:
- 30.04.1999
-
imageCanvas
- Contains the current ImageCanvas.
-
imageCanvasMouseEventListener
- MouseListener and MouseMotionListener which handles the MouseEvents.
-
mainImageViewerPanel
- Contains the main GUI object.
-
paintStructure
- Contains the current PaintStructure
-
presentationStateGraphicsHandler
- Contains the current PresentationStateGraphicsHandler.
-
transformationConverter
- Object which transforms the visible part of the image to device space
-
Viewer.Main.ScreenImageHandler(MainImageViewerPanel, PresentationStateGraphicsHandler)
- Builds the screenImageHandler.
-
buildImageBuffer(boolean, boolean, boolean, boolean)
- Builds the visible part of the image in the bufferedScreenImage.
-
deleteActivePresentationStateGraphicObject()
- Deletes the active PresentationStateGraphicObject in the presentationStateGraphicsHandler.
-
drawScreenImage(Graphics2D)
- This function draws the visible part of the image in the
specified Graphics2D object.
-
getBufferedScreenImage()
- Returns the content of the Image Canvas.
-
getImageCanvas()
- Returns the current ImageCanvas.
-
resetState()
- Resets the all objects of the ScreenImageHandler.
-
setClick(Point2D. Float)
- This function search for the first PresentationStateLayerObject which contains the specified point.
-
setCloseNew()
- Closes a new Annoatation and
transforms the Annotation to a PresentationStateGraphicObject.
-
setCurrentLayerObject(int)
- Sets the specified PresentationStateLayerObject to the active PresentationStateLayerObject.
-
setEditAction()
- Sets a MouseEventListenerEditAnnotation the the imageCanvas.
-
setImageCanvas(ImageCanvas)
- Sets the ImageCanvas.
-
setNewCenter(double)
- Sets a new center value for the image and draws the image.
-
setNewImage()
- Initialize the image data struture for new image.
-
setNewImagePartHeight(int)
- Sets the image on a new position of the display.
-
setNewImagePartWidth(int)
- Sets the image on a new position of the display.
-
setNewPaintObjectAction(PaintObject)
- Initialize all obejcts for drawing a new Annotation.
-
setNewPoint(Point2D. Float)
- Sets a new Point to the current Annotation in the paintStructure.
-
setNewPresentationState()
- If a new jDVPresentationState object is available, this methode updates all object.
-
setNewText(String, boolean, boolean, boolean, boolean, boolean, boolean)
- Sets an new presentationStateTextObject form the specified parameters.
-
setNewTextPart(boolean, boolean)
- Sets either an new anchor or a new bounding box to an existing PresentationStateTextObject and
deletes the old if exist.
-
setNewTextValue(String)
- Sets an new text value to an existing PresentationStateTextObject.
-
setNewWidth(double)
- Sets a new widht value for the image and draws the image.
-
setNewWindow(double, double)
- Set a new window.
-
setStopNew()
- Stops creating a new Annoatation and
transforms the Annotation to a PresentationStateGraphicObject.
-
startMoveAnnotation()
- Initializes the active PresentationStateGraphicObject in the
presentationStateGraphicsHandler for moving.
-
stopMoveAnnotation()
- Stop moving the active PresentationStateGraphicObject in the
presentationStateGraphicsHandler.
-
stopMoveText()
- Stop moving the active PresentationStateTextObject in the
presentationStateGraphicsHandler.
imageCanvas
public Viewer.GUI.ImageCanvas imageCanvas
- Contains the current ImageCanvas. This is the image drawing part of the GUI.
- Since:
30.04.1999
imageCanvasMouseEventListener
public Viewer.Controller.ImageCanvasMouseEventListener imageCanvasMouseEventListener
- MouseListener and MouseMotionListener which handles the MouseEvents.
- Since:
30.04.1999
mainImageViewerPanel
public Viewer.GUI.MainImageViewerPanel mainImageViewerPanel
- Contains the main GUI object.
- Since:
30.04.1999
paintStructure
public Viewer.Presentation.PaintStructure paintStructure
- Contains the current PaintStructure
- Since:
30.04.1999
presentationStateGraphicsHandler
public Viewer.Presentation.PresentationStateGraphicsHandler presentationStateGraphicsHandler
- Contains the current PresentationStateGraphicsHandler.
- Since:
30.04.1999
transformationConverter
public Viewer.Presentation.TransformationConverter transformationConverter
- Object which transforms the visible part of the image to device space
- Since:
30.04.1999
ScreenImageHandler
public ScreenImageHandler(MainImageViewerPanel mainImageViewerPanel,
PresentationStateGraphicsHandler presentationStateGraphicsHandler)
- Builds the screenImageHandler.
- Parameters:
- mainImageViewerPanel - Contains the main GUI object
- presentationStateGraphicsHandler - Contains the current ScreenImageHandler.
- Since:
- 30.04.1999
buildImageBuffer
public void buildImageBuffer(boolean first,
boolean loadNewPixels,
boolean newScrollbarValue,
boolean resetState)
- Builds the visible part of the image in the bufferedScreenImage.
- Parameters:
- first - if true builds the bufferedScreenImage at first time.
- loadNewPixels - if ture - load the pixels form the c++ part
- newScrollbarValue - if true sets the scrollbar properties of the PanleScollImage.
- resetState - if true resets all objects to their initial state.
- Since:
- 30.04.1999
deleteActivePresentationStateGraphicObject
public void deleteActivePresentationStateGraphicObject()
- Deletes the active PresentationStateGraphicObject in the presentationStateGraphicsHandler.
- Since:
- 30.04.1999
- See Also:
- PopupMenuController, PresentationStateGraphicsHandler
drawScreenImage
public void drawScreenImage(Graphics2D g2)
- This function draws the visible part of the image in the
specified Graphics2D object.
- Parameters:
- g2 - Specifies the Graphics2D object.
- Since:
- 30.04.1999
getBufferedScreenImage
public java.awt.image.BufferedImage getBufferedScreenImage()
- Returns the content of the Image Canvas.
- Returns:
- Returns the content of the Image Canvas.
- Since:
- 30.04.1999
getImageCanvas
public Viewer.GUI.ImageCanvas getImageCanvas()
- Returns the current ImageCanvas.
- Returns:
- The current ImageCanvas.
- Since:
- 30.04.1999
resetState
public void resetState()
- Resets the all objects of the ScreenImageHandler.
- Since:
- 30.04.1999
setClick
public void setClick(Point2D.Float clickedPoint)
- This function search for the first PresentationStateLayerObject which contains the specified point.
- Parameters:
- clickedPoint - The specified point.
- Since:
- 30.04.1999
setCloseNew
public void setCloseNew()
- Closes a new Annoatation and
transforms the Annotation to a PresentationStateGraphicObject.
- Since:
- 30.04.1999
- See Also:
- PopupMenuController
setCurrentLayerObject
public void setCurrentLayerObject(int index)
- Sets the specified PresentationStateLayerObject to the active PresentationStateLayerObject.
- Parameters:
- index - The index of the PresentationStateLayerObject
- Since:
- 30.04.1999
setEditAction
public void setEditAction()
- Sets a MouseEventListenerEditAnnotation the the imageCanvas.
- Since:
- 30.04.1999
setImageCanvas
public void setImageCanvas(ImageCanvas imageCanvas)
- Sets the ImageCanvas.
- Parameters:
- imageCanvas - New ImageCanas.
- Since:
- 30.04.1999
setNewCenter
public void setNewCenter(double center)
- Sets a new center value for the image and draws the image.
- Parameters:
- center - the new center value.
- Since:
- 30.04.1999
setNewImage
public boolean setNewImage()
- Initialize the image data struture for new image. Called if a new image width other
dimensions than the old image should be displayed.
- Since:
- 30.04.1999
setNewImagePartHeight
public void setNewImagePartHeight(int newHeight)
- Sets the image on a new position of the display.
- Parameters:
- newHeight - Specifies the new virtualTLHC.y of the image.
- Since:
- 30.04.1999
- See Also:
- TransformationConverter
setNewImagePartWidth
public void setNewImagePartWidth(int newWidth)
- Sets the image on a new position of the display.
- Parameters:
- newWidth - Specifies the new virtualTLHC.x of the image.
- Since:
- 30.04.1999
- See Also:
- TransformationConverter
setNewPaintObjectAction
public void setNewPaintObjectAction(PaintObject thePaintObject)
- Initialize all obejcts for drawing a new Annotation. The paintStructure will be reset and
the ImageCanvasNewListener will be set.
- Parameters:
- theAnnotation - The new Annotation.
- Since:
- 30.04.1999
setNewPoint
public void setNewPoint(Point2D.Float newPoint)
- Sets a new Point to the current Annotation in the paintStructure.
- Parameters:
- newPoint - Contains the new Point.
- Since:
- 30.04.1999
setNewPresentationState
public void setNewPresentationState()
- If a new jDVPresentationState object is available, this methode updates all object.
- Since:
- 30.04.1999
setNewText
public void setNewText(String text,
boolean isBoundingBox,
boolean isAnchor,
boolean isboth,
boolean isAnchorDisplay,
boolean isBoxDisplay,
boolean isAnchorVisible)
- Sets an new presentationStateTextObject form the specified parameters.
- Parameters:
- text - Contains the text of the new presentationStateTextObject.
- isBoundingBox - Contains true if the new presentationStateTextObject have only a bounding box and no anchor point.
- isAnchor - Contains true if the new presentationStateTextObject have only an anchor point and no bounding box .
- isboth - Contains true if the new presentationStateTextObject have an achor point and a bounding box .
- isAnchorDisplay - Contains true if the anchor point is display relative.
- isBoxDisplay - Contains true if the bounding box is display relative.
- isAnchorVisible - Contains ture if the anchor point is visible.
- Since:
- 30.04.1999
setNewTextPart
public void setNewTextPart(boolean anchor,
boolean isDisplayRelative)
- Sets either an new anchor or a new bounding box to an existing PresentationStateTextObject and
deletes the old if exist.
- Parameters:
- anchor - If true insert anchor point, if false insert bounding box.
- isDisplayRelative - If true the anchor point is display relative.
- Since:
- 30.04.1999
setNewTextValue
public void setNewTextValue(String text)
- Sets an new text value to an existing PresentationStateTextObject.
- Parameters:
- text - The new text value.
- Since:
- 30.04.1999
setNewWidth
public void setNewWidth(double width)
- Sets a new widht value for the image and draws the image.
- Parameters:
- width - the new width value.
- Since:
- 30.04.1999
setNewWindow
public void setNewWindow(double center,
double width)
- Set a new window.
- Parameters:
- width - The new window with.
- center - The new window center.
- Since:
- 30.04.1999
setStopNew
public void setStopNew()
- Stops creating a new Annoatation and
transforms the Annotation to a PresentationStateGraphicObject.
- Since:
- 30.04.1999
- See Also:
- PopupMenuController
startMoveAnnotation
public void startMoveAnnotation()
- Initializes the active PresentationStateGraphicObject in the
presentationStateGraphicsHandler for moving. Sets the ImageCanvasMoveListener.
- Since:
- 30.04.1999
- See Also:
- PopupMenuController
stopMoveAnnotation
public void stopMoveAnnotation()
- Stop moving the active PresentationStateGraphicObject in the
presentationStateGraphicsHandler.
- Since:
- 30.04.1999
- See Also:
- PopupMenuController
stopMoveText
public void stopMoveText()
- Stop moving the active PresentationStateTextObject in the
presentationStateGraphicsHandler.
- Since:
- 30.04.1999
- See Also:
- PopupMenuController
All Packages Class Hierarchy This Package Previous Next Index