Class Main.MainContext
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Main.MainContext

Object
   |
   +----Main.MainContext

public class MainContext
extends Object
This class manages the context of DICOMscope. Some global variables of the programm are available by methods of this class. It implements the singleton pattern.

Author:
Klaus Kleber, Andreas Schroeter
Since:
30.04.1999

Variable Index

 o appName
Application Name
 o appVersionH
Application Version (high number).
 o appVersionL
Application Version (low number)
 o bigBrowserFontSize
Fontsize for the widgets in the StudyMan class on the high quality monitor.
 o fontName
Name of the font for the widget.
 o fontNameText
Name of the font for drawing PresentationStateTextObject.
 o fontSizeHighQuality
Fontsize for the widget on the high quality monitor
 o fontSizeLowQuality
Fontsize for the widget on the slow quality monitor
 o fontSizeTextHighQuality
Fontsize of the PresentationStateTextObject for the high quality monitor.
 o fontSizeTextLowQuality
Fontsize of the PresentationStateTextObject for the low quality monitor.
 o highQualitySystem
True if the hight quality monitor with the dome board is used.
 o sizeFactorHigh
Contains a value for the size of windows in the low quality modus.
 o sizeFactorLow
Contains a value for the size of windows in the low quality modus.
 o testInstallation
If true the DICOMscope will running in the testmodus.
 o usedRGB
Not used yet

Method Index

 o getFontTextAnnotations()
Returns the font for displaying PresentationStateTextObjects.
 o getIndexColorModel()
Returns a 8 Bit IndexColorModel
 o getSizeFactor()
Returns a value for the size of Windows.
 o getUsedColorModel()
Returns the ColorModel used for displaying images.
 o getUsedFont()
Returns the font for the widgets.
 o instance()
Return the only instance of a MainContext object.
 o printLogFile(String)
Prints the specified text in the log file.

Variables

 o appName
public static java.lang.String appName
Application Name

Since: 30.04.1999
 o appVersionH
public static int appVersionH
Application Version (high number). The complete version number is .

Since: 30.04.1999
 o appVersionL
public static int appVersionL
Application Version (low number)

Since: 30.04.1999
 o bigBrowserFontSize
public int bigBrowserFontSize
Fontsize for the widgets in the StudyMan class on the high quality monitor.

Since: 30.04.1999
 o fontName
public java.lang.String fontName
Name of the font for the widget.

Since: 30.04.1999
 o fontNameText
public java.lang.String fontNameText
Name of the font for drawing PresentationStateTextObject.

Since: 30.04.1999
 o fontSizeHighQuality
public int fontSizeHighQuality
Fontsize for the widget on the high quality monitor

Since: 30.04.1999
 o fontSizeLowQuality
public int fontSizeLowQuality
Fontsize for the widget on the slow quality monitor

Since: 30.04.1999
 o fontSizeTextHighQuality
public int fontSizeTextHighQuality
Fontsize of the PresentationStateTextObject for the high quality monitor.

Since: 30.04.1999
 o fontSizeTextLowQuality
public int fontSizeTextLowQuality
Fontsize of the PresentationStateTextObject for the low quality monitor.

Since: 30.04.1999
 o highQualitySystem
public boolean highQualitySystem
True if the hight quality monitor with the dome board is used.

Since: 30.04.1999
 o sizeFactorHigh
public int sizeFactorHigh
Contains a value for the size of windows in the low quality modus.

Since: 30.04.1999
 o sizeFactorLow
public int sizeFactorLow
Contains a value for the size of windows in the low quality modus.

Since: 30.04.1999
 o testInstallation
public boolean testInstallation
If true the DICOMscope will running in the testmodus.

Since: 30.04.1999
 o usedRGB
public boolean usedRGB
Not used yet

Since: 30.04.1999

Methods

 o getFontTextAnnotations
public java.awt.Font getFontTextAnnotations()
Returns the font for displaying PresentationStateTextObjects. Depends from the system.

Returns:
The font for displaying PresentationStateTextObjects.
Since:
30.04.1999
 o getIndexColorModel
public java.awt.image.ColorModel getIndexColorModel()
Returns a 8 Bit IndexColorModel

Parameters:
A - 8 Bit IndexColorModel
Since:
30.04.1999
 o getSizeFactor
public int getSizeFactor()
Returns a value for the size of Windows. Depends from the system.

Returns:
A value for the size of Windows.
Since:
30.04.1999
 o getUsedColorModel
public java.awt.image.ColorModel getUsedColorModel()
Returns the ColorModel used for displaying images. Depends from the system.

Returns:
The ColorModel used for displaying images.
Since:
30.04.1999
 o getUsedFont
public java.awt.Font getUsedFont()
Returns the font for the widgets. Depends from the system.

Returns:
The font for the widgets.
Since:
30.04.1999
 o instance
public static Main.MainContext instance()
Return the only instance of a MainContext object. If there is no instance this methode create this instance.
status: tested

Returns:
The only intance of this class.
Since:
30.04.1999
 o printLogFile
public void printLogFile(String output)
Prints the specified text in the log file.

Parameters:
output - Text which should print.
Since:
30.04.1999

All Packages  Class Hierarchy  This Package  Previous  Next  Index