de.uni_paderborn.robots.gui
Class StatisticPanel.ColorVal

java.lang.Object
  |
  +--de.uni_paderborn.robots.gui.StatisticPanel.ColorVal
Enclosing class:
StatisticPanel

class StatisticPanel.ColorVal
extends java.lang.Object

Inner class which is used for storing the color of the group. The color is equal to the type of the robot.


Field Summary
private  int robotColor
          this is used to save to type of the robot
 
Constructor Summary
StatisticPanel.ColorVal()
          constructor which sets the color value of the table to 0
StatisticPanel.ColorVal(int val)
          constructor which sets the energy value of the table
 
Method Summary
 int getColorVal()
          function which returns the current value
 void setColorVal(int val)
          function which sets the color value of the table
 void setColorVal(java.lang.Object val)
          function which sets the color value of the table
 java.lang.String toString()
          function which returns the current value
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

robotColor

private int robotColor
this is used to save to type of the robot
Constructor Detail

StatisticPanel.ColorVal

public StatisticPanel.ColorVal(int val)
constructor which sets the energy value of the table
Parameters:
val - the new color value

StatisticPanel.ColorVal

public StatisticPanel.ColorVal()
constructor which sets the color value of the table to 0
Method Detail

setColorVal

public void setColorVal(int val)
function which sets the color value of the table
Parameters:
val - the new color value

setColorVal

public void setColorVal(java.lang.Object val)
function which sets the color value of the table
Parameters:
val - object which contains the new value

getColorVal

public int getColorVal()
function which returns the current value
Returns:
the int-value of the color

toString

public java.lang.String toString()
function which returns the current value
Overrides:
toString in class java.lang.Object
Returns:
the string-value of the color