edu.uci.ics.jung.visualization.swt.graphics
Class SWTLabelImpl

java.lang.Object
  extended by edu.uci.ics.jung.visualization.swt.graphics.SWTLabelImpl
All Implemented Interfaces:
Label

public class SWTLabelImpl
extends Object
implements Label


Constructor Summary
SWTLabelImpl(org.eclipse.swt.graphics.GC delegate)
           
 
Method Summary
 Color getBackground()
           
 Font getFont()
           
 Color getForeground()
           
 Image getImage()
           
 Dimension getPreferredSize()
           
 String getText()
           
 Dimension getTextPreferredSize()
           
 boolean isOpaque()
           
 void setBackground(Color color)
           
 void setFont(Font font)
           
 void setForeground(Color color)
           
 void setImage(Image image)
           
 void setOpaque(boolean opaque)
           
 void setText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWTLabelImpl

public SWTLabelImpl(org.eclipse.swt.graphics.GC delegate)
Method Detail

getBackground

public Color getBackground()
Specified by:
getBackground in interface Label

getFont

public Font getFont()
Specified by:
getFont in interface Label

getForeground

public Color getForeground()
Specified by:
getForeground in interface Label

getImage

public Image getImage()
Specified by:
getImage in interface Label

getText

public String getText()
Specified by:
getText in interface Label

isOpaque

public boolean isOpaque()
Specified by:
isOpaque in interface Label

setBackground

public void setBackground(Color color)
Specified by:
setBackground in interface Label

setFont

public void setFont(Font font)
Specified by:
setFont in interface Label

setForeground

public void setForeground(Color color)
Specified by:
setForeground in interface Label

setImage

public void setImage(Image image)
Specified by:
setImage in interface Label

setOpaque

public void setOpaque(boolean opaque)
Specified by:
setOpaque in interface Label

setText

public void setText(String text)
Specified by:
setText in interface Label

getTextPreferredSize

public Dimension getTextPreferredSize()

getPreferredSize

public Dimension getPreferredSize()
Specified by:
getPreferredSize in interface Label


Copyright © 2007. All Rights Reserved.