databionics.io
Class DataClass

java.lang.Object
  extended by databionics.io.DataItem
      extended by databionics.io.DataClass

public class DataClass
extends DataItem

The DataClass of a data point or a bestmatch.


Field Summary
protected  java.awt.Color color
          Color of class
protected static org.apache.log4j.Logger log
          Log4j logging.
protected  int mapspace
          size of space of this class on current map
protected  java.lang.String name
          Name of class
protected  double promapspace
          prozentual space of this class on current map
 
Fields inherited from class databionics.io.DataItem
index
 
Constructor Summary
DataClass()
          Standard constructor
DataClass(int index)
          Constructor with index
DataClass(int index, java.lang.String name)
          Constructor with index and name
DataClass(int index, java.lang.String name, java.awt.Color color)
          Constructor with all fields.
 
Method Summary
 java.lang.Object clone()
           
 java.awt.Color getColor()
          Get the class number.
 int getMapspace()
           
 java.lang.String getName()
          Get the name of DataClass.
 double getPromapspace()
           
 void setColor(java.awt.Color color)
          Set the class color.
 void setMapspace(int mapspace)
           
 void setName(java.lang.String name)
          Set the name of DataClass.
 void setPromapspace(double promapspace)
           
 java.lang.String toString(java.lang.String delimiter)
          String representation with custom delimiter.
 
Methods inherited from class databionics.io.DataItem
getIndex, setIndex, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Log4j logging.


name

protected java.lang.String name
Name of class


color

protected java.awt.Color color
Color of class


mapspace

protected int mapspace
size of space of this class on current map


promapspace

protected double promapspace
prozentual space of this class on current map

Constructor Detail

DataClass

public DataClass()
Standard constructor


DataClass

public DataClass(int index)
Constructor with index

Parameters:
index - The index of the data point of bestmatch

DataClass

public DataClass(int index,
                 java.lang.String name)
Constructor with index and name

Parameters:
index - The index of the data point of bestmatch
name - The class name

DataClass

public DataClass(int index,
                 java.lang.String name,
                 java.awt.Color color)
Constructor with all fields.

Parameters:
index - The index of the data point of bestmatch
name - The class name
color - The class color
Method Detail

getColor

public java.awt.Color getColor()
Get the class number.


getName

public java.lang.String getName()
Get the name of DataClass.


setColor

public void setColor(java.awt.Color color)
Set the class color.


setName

public void setName(java.lang.String name)
Set the name of DataClass.


toString

public java.lang.String toString(java.lang.String delimiter)
String representation with custom delimiter.

Specified by:
toString in class DataItem

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getMapspace

public int getMapspace()
Returns:
Returns the mapspace.

setMapspace

public void setMapspace(int mapspace)
Parameters:
mapspace - The mapspace to set.

getPromapspace

public double getPromapspace()
Returns:
Returns the promapspace.

setPromapspace

public void setPromapspace(double promapspace)
Parameters:
promapspace - The promapspace to set.


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.