GridSim 5.0 beta

gridsim.parallel.gui
Class GUISettings

Object
  extended by GUISettings

 class GUISettings
extends Object

This class stores settings shared by all the windows of the graphical user interface.

Since:
5.0
Author:
Marcos Dias de Assuncao

Method Summary
 Color[] getARCommittedColors()
          Returns colours for advance reservations confirmed by the user
 Color[] getARInProgressColors()
          Returns colours for advance reservations in progress
 Color[] getARNonCommittedColors()
          Returns colours for advance reservations not confirmed by the user
 BasicStroke getDashedStroke()
          Returns a dashed stroke object to be used to draw time lines on the GUI windows
 Color getGraphAreaColor()
          Returns the colour of the area of the graph
 Color getGraphBDColor()
          Returns the colour of the border of the area of the graphs
 Color getGraphBGColor()
          Returns the background colour for the graphs of scheduling queues
 Font getGraphFont()
          Returns the font to be used in the graphs
static GUISettings getInstance()
          Returns the single instance of the GUISettings object, creating it if it has not already been instantiated.
 Color[] getJobDoneColors()
          Returns colours for jobs completed.
 Color[] getJobInExecColors()
          Returns colours for jobs in execution.
 Color[] getJobQueuedColors()
          Returns colours for waiting jobs.
 Color getLabelColor()
          Returns the colour of the top text
 BasicStroke getNormalStroke()
          Returns a normal stroke to be used to draw the generic lines on the windows
protected  String getProperty(String key)
          Get the value of a property.
 Color[] getQueueColors()
          Return colours for job queues or partitions
 Color getTimeGridColor()
          Returns the colour of the time grid
 Color getTimeLineColor()
          Returns the colour of the current time line
 long getTimeSpan()
          Gets the time span for the GUI components
 Composite getTransparentComposite()
          Returns a composite object to be used to draw objects that overlap in the resource windows
 Color getXAxisTextColor()
          Returns the colour of the text in the x axis of the graphs
 boolean setTimeSpan(long timeSpan)
          Sets the time span for the GUI components
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GUISettings getInstance()
Returns the single instance of the GUISettings object, creating it if it has not already been instantiated.

Returns:
the GUI settings instance.

getTimeSpan

public long getTimeSpan()
Gets the time span for the GUI components

Returns:
the time span for the GUI components

setTimeSpan

public boolean setTimeSpan(long timeSpan)
Sets the time span for the GUI components

Parameters:
timeSpan - the time span for the GUI components
Returns:
true if the time span has been updated or false otherwise.

getDashedStroke

public BasicStroke getDashedStroke()
Returns a dashed stroke object to be used to draw time lines on the GUI windows

Returns:
the dashed stroke

getNormalStroke

public BasicStroke getNormalStroke()
Returns a normal stroke to be used to draw the generic lines on the windows

Returns:
the generic stroke

getGraphBGColor

public Color getGraphBGColor()
Returns the background colour for the graphs of scheduling queues

Returns:
the background colour

getGraphBDColor

public Color getGraphBDColor()
Returns the colour of the border of the area of the graphs

Returns:
the colour of the border of the area of the graphs

getGraphAreaColor

public Color getGraphAreaColor()
Returns the colour of the area of the graph

Returns:
the colour of the graph area

getTimeGridColor

public Color getTimeGridColor()
Returns the colour of the time grid

Returns:
the colour of the time grid

getLabelColor

public Color getLabelColor()
Returns the colour of the top text

Returns:
the colour of the top text

getXAxisTextColor

public Color getXAxisTextColor()
Returns the colour of the text in the x axis of the graphs

Returns:
the colour of the text in the x axis of the graphs

getTimeLineColor

public Color getTimeLineColor()
Returns the colour of the current time line

Returns:
the colour of the current time line

getGraphFont

public Font getGraphFont()
Returns the font to be used in the graphs

Returns:
the font to be used in the graphs

getTransparentComposite

public Composite getTransparentComposite()
Returns a composite object to be used to draw objects that overlap in the resource windows

Returns:
a composite object to be used to draw objects that overlap in the resource windows

getQueueColors

public Color[] getQueueColors()
Return colours for job queues or partitions

Returns:
the colours for the partitions

getJobQueuedColors

public Color[] getJobQueuedColors()
Returns colours for waiting jobs.

Returns:
an array of colours

getJobDoneColors

public Color[] getJobDoneColors()
Returns colours for jobs completed.

Returns:
an array of colours

getJobInExecColors

public Color[] getJobInExecColors()
Returns colours for jobs in execution.

Returns:
an array of colours

getARNonCommittedColors

public Color[] getARNonCommittedColors()
Returns colours for advance reservations not confirmed by the user

Returns:
an array of colours

getARCommittedColors

public Color[] getARCommittedColors()
Returns colours for advance reservations confirmed by the user

Returns:
an array of colours

getARInProgressColors

public Color[] getARInProgressColors()
Returns colours for advance reservations in progress

Returns:
an array of colours

getProperty

protected String getProperty(String key)
Get the value of a property.

Parameters:
key - the property's key
Returns:
the value associated to the key.

GridSim 5.0 beta

The University of Melbourne, Australia, 2009