|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectGUISettings
class GUISettings
This class stores settings shared by all the windows of the graphical user interface.
| 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 |
|---|
public static GUISettings getInstance()
GUISettings
object, creating it if it has not already been instantiated.
public long getTimeSpan()
public boolean setTimeSpan(long timeSpan)
timeSpan - the time span for the GUI components
true if the time span has been updated
or false otherwise.public BasicStroke getDashedStroke()
public BasicStroke getNormalStroke()
public Color getGraphBGColor()
public Color getGraphBDColor()
public Color getGraphAreaColor()
public Color getTimeGridColor()
public Color getLabelColor()
public Color getXAxisTextColor()
public Color getTimeLineColor()
public Font getGraphFont()
public Composite getTransparentComposite()
public Color[] getQueueColors()
public Color[] getJobQueuedColors()
public Color[] getJobDoneColors()
public Color[] getJobInExecColors()
public Color[] getARNonCommittedColors()
public Color[] getARCommittedColors()
public Color[] getARInProgressColors()
protected String getProperty(String key)
key - the property's key
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||