Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual.ui
Class IconSupport

java.lang.Object
  extended by cytoscape.visual.ui.IconSupport

public class IconSupport
extends Object

This used to be the MiscDialog class, but that was so poorly named, I had to change it. This class also contains support for getting an icon based on an object or type (as defined in ValueDisplayer).


Constructor Summary
IconSupport()
           
IconSupport(Object o)
           
IconSupport(Object startObject, byte type)
           
 
Method Summary
static ImageIcon[] getArrowIcons()
           
static HashMap getArrowToStringHashMap(int nodeSize)
           
static ImageIcon getColorIcon(Color c)
           
 ImageIcon getCurrentIcon()
           
 ImageIcon[] getIcons()
           
 Object getIconType(ImageIcon i)
           
static ImageIcon getLabelPositionIcon(LabelPosition pos)
           
static ImageIcon[] getLineTypeIcons()
           
static HashMap getLineTypeToStringHashMap()
           
static ImageIcon getNodeHeightIcon(Double d)
           
static ImageIcon getNodeSizeIcon(Double d)
           
static ImageIcon getNodeWidthIcon(Double d)
           
static HashMap getShapeByteToStringHashMap()
           
static ImageIcon[] getShapeIcons()
           
static HashMap getStringToArrowHashMap(int nodeSize)
          arrow dialog functions: getStringToArrowHashMap(int nodeSize) getArrowToStringHashMap(int nodeSize) getArrowIcons() Note: with the move to Giny, I'm dropping support for the scalable arrow type; we can add this back later if desired.
static HashMap getStringToLineTypeHashMap()
          line type dialog functions: getStringToLineTypeHashMap() getLineTypeToStringHashMap() getLineTypeIcons()
static HashMap getStringToShapeByteHashMap()
          shape dialog functions: getStringToShapeByteHashMap() getShapeByteToStringHashMap() getShapeIcons()
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconSupport

public IconSupport()

IconSupport

public IconSupport(Object o)

IconSupport

public IconSupport(Object startObject,
                   byte type)
Method Detail

getIcons

public ImageIcon[] getIcons()

getCurrentIcon

public ImageIcon getCurrentIcon()

getIconType

public Object getIconType(ImageIcon i)

getStringToArrowHashMap

public static HashMap getStringToArrowHashMap(int nodeSize)
arrow dialog functions: getStringToArrowHashMap(int nodeSize) getArrowToStringHashMap(int nodeSize) getArrowIcons() Note: with the move to Giny, I'm dropping support for the scalable arrow type; we can add this back later if desired. -AM 2003-10-28


getArrowToStringHashMap

public static HashMap getArrowToStringHashMap(int nodeSize)

getArrowIcons

public static ImageIcon[] getArrowIcons()

getStringToShapeByteHashMap

public static HashMap getStringToShapeByteHashMap()
shape dialog functions: getStringToShapeByteHashMap() getShapeByteToStringHashMap() getShapeIcons()


getShapeByteToStringHashMap

public static HashMap getShapeByteToStringHashMap()

getShapeIcons

public static ImageIcon[] getShapeIcons()

getStringToLineTypeHashMap

public static HashMap getStringToLineTypeHashMap()
line type dialog functions: getStringToLineTypeHashMap() getLineTypeToStringHashMap() getLineTypeIcons()


getLineTypeToStringHashMap

public static HashMap getLineTypeToStringHashMap()

getLineTypeIcons

public static ImageIcon[] getLineTypeIcons()

getColorIcon

public static ImageIcon getColorIcon(Color c)

getNodeWidthIcon

public static ImageIcon getNodeWidthIcon(Double d)

getNodeHeightIcon

public static ImageIcon getNodeHeightIcon(Double d)

getNodeSizeIcon

public static ImageIcon getNodeSizeIcon(Double d)

getLabelPositionIcon

public static ImageIcon getLabelPositionIcon(LabelPosition pos)

www.cytoscape.org