gcspy.vis
Class TileManagerColors

java.lang.Object
  extended by gcspy.vis.TileManagerColors

public class TileManagerColors
extends java.lang.Object

Color configuration for the tile manager

Author:
Tony Printezis

Constructor Summary
TileManagerColors()
          Create new set of (default) colours
TileManagerColors(Space space)
          Create new set of (default) colours for a space
 
Method Summary
 java.awt.Color getActiveMarkerColor()
          Get the colour used for active markers
 java.awt.Color getLinkColor()
          Get the colour used for links
 java.awt.Color getMarkerColor()
          Get the colour used for markers
 java.awt.Color getSelectedColor()
          get teh selected colour
 java.awt.Color getSeparatorColor()
          Get the colour used for separators
 java.awt.Color getStreamColor(int index)
          Return a stream's colour
 void revertToDefaults()
          Revert the colours for tiles, selections, markers, active markers, separators, links to their defaults
 void setActiveMarkerColor(java.awt.Color activeMarkerColor)
          Set the active marker colour
 void setLinkColor(java.awt.Color linkColor)
          Set the link colour
 void setMarkerColor(java.awt.Color markerColor)
          Set the marker colour
 void setSelectedColor(java.awt.Color selectedColor)
          Set the selected colour
 void setSeparatorColor(java.awt.Color separatorColor)
          Set the separator colour
 void setStreamColor(int index, java.awt.Color streamColor)
          Set the colour for a stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TileManagerColors

public TileManagerColors()
Create new set of (default) colours


TileManagerColors

public TileManagerColors(Space space)
Create new set of (default) colours for a space

Parameters:
space - The space
Method Detail

setSelectedColor

public void setSelectedColor(java.awt.Color selectedColor)
Set the selected colour

Parameters:
selectedColor - the colour

setMarkerColor

public void setMarkerColor(java.awt.Color markerColor)
Set the marker colour

Parameters:
markerColor - the colour

setActiveMarkerColor

public void setActiveMarkerColor(java.awt.Color activeMarkerColor)
Set the active marker colour

Parameters:
activeMarkerColor - the colour

setSeparatorColor

public void setSeparatorColor(java.awt.Color separatorColor)
Set the separator colour

Parameters:
separatorColor - the colour

setLinkColor

public void setLinkColor(java.awt.Color linkColor)
Set the link colour

Parameters:
linkColor - the colour

setStreamColor

public void setStreamColor(int index,
                           java.awt.Color streamColor)
Set the colour for a stream

Parameters:
index - the stream ID
streamColor - the colour

getSelectedColor

public java.awt.Color getSelectedColor()
get teh selected colour

Returns:
the selected colour

getMarkerColor

public java.awt.Color getMarkerColor()
Get the colour used for markers

Returns:
the marker colour

getActiveMarkerColor

public java.awt.Color getActiveMarkerColor()
Get the colour used for active markers

Returns:
the active marker colour

getSeparatorColor

public java.awt.Color getSeparatorColor()
Get the colour used for separators

Returns:
the separator colour

getLinkColor

public java.awt.Color getLinkColor()
Get the colour used for links

Returns:
the link colour

getStreamColor

public java.awt.Color getStreamColor(int index)
Return a stream's colour

Parameters:
index - the stream ID
Returns:
the selected colour

revertToDefaults

public void revertToDefaults()
Revert the colours for tiles, selections, markers, active markers, separators, links to their defaults