Package 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: nick@didkovsky.com
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PVLabelAdapter(java.lang.String text)
PVLabelAdapter(java.lang.String text, int alignment)
-
Method Summary
Modifier and Type Method Description void
addKeyListener(java.awt.event.KeyListener l)
boolean
equals(java.lang.Object arg0)
java.awt.Color
getBackground()
java.awt.Rectangle
getBounds()
java.awt.Component
getComponent()
java.awt.Font
getFont()
PVLabel
getImplementationLabel()
java.awt.Point
getLocation()
java.awt.Container
getParent()
java.lang.String
getText()
int
hashCode()
boolean
isEnabled()
void
removeKeyListener(java.awt.event.KeyListener l)
void
setAlignment(int alignment)
Must be one of three constants defined in PVLabel: CENTER, LEFT, RIGHTvoid
setBackground(java.awt.Color color)
void
setEnabled(boolean b)
void
setFont(java.awt.Font font)
void
setLocation(int x, int y)
void
setText(java.lang.String text)
void
setVisible(boolean b)
java.lang.String
toString()
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PVLabelAdapter
public PVLabelAdapter(java.lang.String text) -
PVLabelAdapter
public PVLabelAdapter(java.lang.String text, int alignment)
-
-
Method Details
-
getImplementationLabel
-
equals
public boolean equals(java.lang.Object arg0)- Overrides:
equals
in classjava.lang.Object
-
getBounds
public java.awt.Rectangle getBounds()- Specified by:
getBounds
in interfacePVComponent
- Returns:
-
getComponent
public java.awt.Component getComponent()- Specified by:
getComponent
in interfacePVComponent
- Returns:
-
getParent
public java.awt.Container getParent()- Specified by:
getParent
in interfacePVComponent
- Returns:
-
getText
public java.lang.String getText() -
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.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 interfacePVLabel
- Parameters:
alignment
-
-
setFont
public void setFont(java.awt.Font font)- Specified by:
setFont
in interfacePVComponent
- Specified by:
setFont
in interfacePVLabel
- Parameters:
font
-
-
setLocation
public void setLocation(int x, int y)- Specified by:
setLocation
in interfacePVComponent
- Parameters:
x
-y
-
-
getLocation
public java.awt.Point getLocation()- Specified by:
getLocation
in interfacePVComponent
-
setText
public void setText(java.lang.String text) -
setVisible
public void setVisible(boolean b)- Specified by:
setVisible
in interfacePVLabel
- Parameters:
b
-
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfacePVComponent
- Returns:
-
setEnabled
public void setEnabled(boolean b)- Specified by:
setEnabled
in interfacePVComponent
- Parameters:
b
-
-
addKeyListener
public void addKeyListener(java.awt.event.KeyListener l)- Specified by:
addKeyListener
in interfacePVComponent
- Parameters:
l
-
-
removeKeyListener
public void removeKeyListener(java.awt.event.KeyListener l)- Specified by:
removeKeyListener
in interfacePVComponent
- Parameters:
l
-
-
getBackground
public java.awt.Color getBackground()- Specified by:
getBackground
in interfacePVComponent
- Returns:
-
setBackground
public void setBackground(java.awt.Color color)- Specified by:
setBackground
in interfacePVComponent
- Parameters:
color
-
-
getFont
public java.awt.Font getFont()- Specified by:
getFont
in interfacePVComponent
-