graphics
Class Graphics

java.lang.Object
  extended by graphics.Graphics
All Implemented Interfaces:
GraphicsInterface

public class Graphics
extends java.lang.Object
implements GraphicsInterface

This class maintains the programs Graphics package. The purpose of package is to render and display the programs data structure on screen.

Version:
1
Author:
Potkuri-group

Field Summary
private  GraphicsEngine graphicsEngine
          Current instance of GraphicsEngine class.
private  GraphicsWindow graphicsWindow
          Current instance of GraphicsWindow class.
 
Constructor Summary
Graphics(DataCollection dataCollection)
          Construct whole graphics-package.
 
Method Summary
 boolean showErrorMessage(java.lang.String message, boolean terminate)
          Method forwards error message to popup-window.
 boolean showMessage(java.lang.String message)
          Method forwards message to popup-window.
 boolean update()
          Method updates graphics -package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphicsEngine

private GraphicsEngine graphicsEngine
Current instance of GraphicsEngine class.


graphicsWindow

private GraphicsWindow graphicsWindow
Current instance of GraphicsWindow class.

Constructor Detail

Graphics

public Graphics(DataCollection dataCollection)
Construct whole graphics-package.

Parameters:
dataCollection - DataCollection class.
Method Detail

showErrorMessage

public boolean showErrorMessage(java.lang.String message,
                                boolean terminate)
Method forwards error message to popup-window.

Specified by:
showErrorMessage in interface GraphicsInterface
Parameters:
message - Error message.
terminate - Can we continue after this error.
Returns:
succeed

showMessage

public boolean showMessage(java.lang.String message)
Method forwards message to popup-window.

Specified by:
showMessage in interface GraphicsInterface
Parameters:
message - Message.
Returns:
succeed

update

public boolean update()
Method updates graphics -package.

Specified by:
update in interface GraphicsInterface
Returns:
update succeed