Cytoscape 2.8.0 API

cytoscape.visual.ui.icon
Class LineTypeIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by cytoscape.visual.ui.icon.VisualPropertyIcon
          extended by cytoscape.visual.ui.icon.LineTypeIcon
All Implemented Interfaces:
Serializable, Accessible, Icon

public class LineTypeIcon
extends VisualPropertyIcon

DOCUMENT ME!

Author:
$author$
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
 
Field Summary
protected  Graphics2D g2d
           
 
Fields inherited from class cytoscape.visual.ui.icon.VisualPropertyIcon
bottomPad, color, DEFAULT_ICON_COLOR, DEFAULT_ICON_SIZE, height, leftPad, name, shape, width
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
LineTypeIcon()
          Creates a new LineTypeIcon object.
LineTypeIcon(LineStyle style)
           
LineTypeIcon(Stroke stroke, int width, int height, String name)
          Creates a new LineTypeIcon object.
LineTypeIcon(Stroke stroke, int width, int height, String name, Color color)
          Creates a new LineTypeIcon object.
 
Method Summary
 void paintIcon(Component c, Graphics g, int x, int y)
          DOCUMENT ME!
 void setText(String text)
          DOCUMENT ME!
 void setTextColor(Color color)
          DOCUMENT ME!
 void setTextFont(Font font)
          DOCUMENT ME!
 
Methods inherited from class cytoscape.visual.ui.icon.VisualPropertyIcon
getColor, getIconHeight, getIconWidth, getName, getShape, setBottomPadding, setColor, setIconHeight, setIconWidth, setLeftPadding, setName
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getImage, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

g2d

protected Graphics2D g2d
Constructor Detail

LineTypeIcon

public LineTypeIcon()
Creates a new LineTypeIcon object.


LineTypeIcon

public LineTypeIcon(LineStyle style)

LineTypeIcon

public LineTypeIcon(Stroke stroke,
                    int width,
                    int height,
                    String name)
Creates a new LineTypeIcon object.

Parameters:
stroke - DOCUMENT ME!
width - DOCUMENT ME!
height - DOCUMENT ME!
name - DOCUMENT ME!

LineTypeIcon

public LineTypeIcon(Stroke stroke,
                    int width,
                    int height,
                    String name,
                    Color color)
Creates a new LineTypeIcon object.

Parameters:
stroke - DOCUMENT ME!
width - DOCUMENT ME!
height - DOCUMENT ME!
name - DOCUMENT ME!
color - DOCUMENT ME!
Method Detail

paintIcon

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

Specified by:
paintIcon in interface Icon
Overrides:
paintIcon in class ImageIcon
Parameters:
c - DOCUMENT ME!
g - DOCUMENT ME!
x - DOCUMENT ME!
y - DOCUMENT ME!

setText

public void setText(String text)
DOCUMENT ME!

Parameters:
text - DOCUMENT ME!

setTextFont

public void setTextFont(Font font)
DOCUMENT ME!

Parameters:
font - DOCUMENT ME!

setTextColor

public void setTextColor(Color color)
DOCUMENT ME!

Parameters:
color - DOCUMENT ME!

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.