com.softsynth.jmsl.view
Class PVLabelAdapter
java.lang.Object
com.softsynth.jmsl.view.PVLabelAdapter
- All Implemented Interfaces:
- PVComponent, PVLabel
public class PVLabelAdapter
- extends java.lang.Object
- implements PVLabel
- Author:
- Nick Didkovsky, (c) 2004 All rights reserved, Email:
didkovn@mail.rockefeller.edu
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
PVLabelAdapter
public PVLabelAdapter(java.lang.String text)
PVLabelAdapter
public PVLabelAdapter(java.lang.String text,
int alignment)
getImplementationLabel
public PVLabel getImplementationLabel()
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals in class java.lang.Object
getBounds
public java.awt.Rectangle getBounds()
- Specified by:
getBounds in interface PVComponent
- Returns:
getComponent
public java.awt.Component getComponent()
- Specified by:
getComponent in interface PVComponent
- Returns:
getParent
public java.awt.Container getParent()
- Specified by:
getParent in interface PVComponent
- Returns:
getText
public java.lang.String getText()
- Specified by:
getText in interface PVLabel
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
setAlignment
public void setAlignment(int alignment)
- Description copied from interface:
PVLabel
- Must be one of three constants defined in PVLabel: CENTER, LEFT, RIGHT
- Specified by:
setAlignment in interface PVLabel
- Parameters:
alignment -
setFont
public void setFont(java.awt.Font font)
- Specified by:
setFont in interface PVComponent- Specified by:
setFont in interface PVLabel
- Parameters:
font -
setLocation
public void setLocation(int x,
int y)
- Specified by:
setLocation in interface PVComponent
- Parameters:
x - y -
setText
public void setText(java.lang.String text)
- Specified by:
setText in interface PVLabel
- Parameters:
text -
setVisible
public void setVisible(boolean b)
- Specified by:
setVisible in interface PVLabel
- Parameters:
b -
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface PVComponent
- Returns:
setEnabled
public void setEnabled(boolean b)
- Specified by:
setEnabled in interface PVComponent
- Parameters:
b -
addKeyListener
public void addKeyListener(java.awt.event.KeyListener l)
- Specified by:
addKeyListener in interface PVComponent
- Parameters:
l -
removeKeyListener
public void removeKeyListener(java.awt.event.KeyListener l)
- Specified by:
removeKeyListener in interface PVComponent
- Parameters:
l -
getBackground
public java.awt.Color getBackground()
- Specified by:
getBackground in interface PVComponent
- Returns:
setBackground
public void setBackground(java.awt.Color color)
- Specified by:
setBackground in interface PVComponent
- Parameters:
color -
getFont
public java.awt.Font getFont()
- Specified by:
getFont in interface PVComponent