edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils
Class CAPEUtils

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.CAPEUtils

public class CAPEUtils
extends java.lang.Object

Utility functions for the GUI.


Constructor Summary
CAPEUtils()
           
 
Method Summary
static java.awt.Color determineColor(int index)
          Determines the text color based on the selected index of 'Node Text Color' combo box in the customize panel.
static java.awt.Shape determineNodeSize(int index)
          Determines the node size based on the selected index of the 'Node Size' combo box in the customize panel.
static int determineTextSize(int index)
          Determines the text size based on the selected index of the 'Node Text Size' combo boxe in the customize panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAPEUtils

public CAPEUtils()
Method Detail

determineColor

public static java.awt.Color determineColor(int index)
Determines the text color based on the selected index of 'Node Text Color' combo box in the customize panel.

Parameters:
index - the selected index of the 'Node Text Color' combo box
Returns:
the color at the selected index of the 'Node Text Color' combo box

determineNodeSize

public static java.awt.Shape determineNodeSize(int index)
Determines the node size based on the selected index of the 'Node Size' combo box in the customize panel.

Parameters:
index - the selected index of the 'Node Size' combo box
Returns:
a rectangle relative in size to the selected index of the 'Node Size' combo box

determineTextSize

public static int determineTextSize(int index)
Determines the text size based on the selected index of the 'Node Text Size' combo boxe in the customize panel.

Parameters:
index - the selected index of the 'Node Text Size' combo box
Returns:
the text size relative to the selected index of the 'Node Text Size' combo box