org.knime.base.node.viz.histogram.util
Class AggregationColumnIcon

java.lang.Object
  extended by org.knime.base.node.viz.histogram.util.AggregationColumnIcon
All Implemented Interfaces:
Icon

public class AggregationColumnIcon
extends Object
implements Icon

Constructs a new icon with its specific Color and size.


Constructor Summary
AggregationColumnIcon(DataColumnSpec columnSpec, Color color)
          Creates new squared color icon.
 
Method Summary
 Color getColor()
           
 DataColumnSpec getColumnSpec()
           
 int getIconHeight()
          
 int getIconWidth()
          
 String getText()
           
 void paintIcon(Component c, Graphics g, int x, int y)
          
 void setColor(Color color)
          Set's a new color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregationColumnIcon

public AggregationColumnIcon(DataColumnSpec columnSpec,
                             Color color)
Creates new squared color icon.

Parameters:
columnSpec - The column specification.
color - The initial color.
Method Detail

setColor

public void setColor(Color color)
Set's a new color.

Parameters:
color - The new Color.

getColor

public Color getColor()
Returns:
The color.

getText

public String getText()
Returns:
The display text which is the name of the column

getColumnSpec

public DataColumnSpec getColumnSpec()
Returns:
The column specification

getIconHeight

public int getIconHeight()

Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()

Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)

Specified by:
paintIcon in interface Icon


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.