Home / Development / Documentation / 2.0.44 / PieColorIcon
TreeGraph 2
 


info.bioinfweb.treegraph.gui.dialogs.elementformats.piecolor
Class PieColorIcon

java.lang.Object
  extended by info.bioinfweb.treegraph.gui.dialogs.elementformats.piecolor.PieColorIcon
All Implemented Interfaces:
Icon

public class PieColorIcon
extends Object
implements Icon

Icon used in the pie color list of the IconPieChartLabelPanel.

Since:
2.0.43
Author:
Ben Stöver

Field Summary
private  Color color
           
static int ICON_DOMENSION
           
 
Constructor Summary
PieColorIcon()
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setColor(Color color)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_DOMENSION

public static final int ICON_DOMENSION
See Also:
Constant Field Values

color

private Color color
Constructor Detail

PieColorIcon

public PieColorIcon()
Method Detail

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

setColor

public void setColor(Color color)