|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.beans.Label
public class Label
Encapsulates SGLabel
properties.
Constructor Summary | |
---|---|
Label()
Default constructor. |
|
Label(java.lang.String id,
Point2D.Double loc,
double wid,
double hgt)
Label constructor. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
|
protected void |
fireStateChanged()
|
Rectangle2D.Double |
getBoundsP()
Get Label bounds. |
java.awt.Color |
getColor()
Get label color. |
java.awt.Font |
getFont()
Get label font. |
double |
getHeightP()
Get Label height. |
java.lang.String |
getId()
Get Label identifier. |
int |
getJustification()
Get label justification. |
Point2D.Double |
getLocationP()
Get Label location |
int |
getOrientation()
Get label orientation. |
PanelHolder |
getPanelHolder()
Get panel holder. |
java.lang.String |
getText()
Get label text. |
double |
getWidthP()
Get label width. |
boolean |
isInstantiated()
Is SGLabel instatiated? |
boolean |
isSelectable()
Is label selectable? |
boolean |
isVisible()
Is Label visible? |
void |
removeAllChangeListeners()
Remove all change listeners. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Remove change listener. |
void |
removeDesignChangeListeners()
Remove change listeners that implement DesignListener . |
void |
setBoundsP(Rectangle2D.Double bounds)
Set Label bounds. |
void |
setColor(java.awt.Color color)
Set label color. |
void |
setFont(java.awt.Font font)
Set label font. |
void |
setHeightP(double heightP)
Set Label height. |
void |
setId(java.lang.String id)
Set label identifier. |
void |
setInstantiated(boolean instantiated)
Set instantiation for label. |
void |
setJustification(int justification)
Set label justification. |
void |
setLocationP(Point2D.Double locationP)
Set Label location. |
void |
setOrientation(int orientation)
Set label orientation. |
void |
setPanelHolder(PanelHolder pHolder)
Set panelholder. |
void |
setSelectable(boolean selectable)
Set label selectable. |
void |
setText(java.lang.String text)
Set label text. |
void |
setVisible(boolean visible)
Set label visiblity. |
void |
setWidthP(double widthP)
Set label width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Label()
null
.
public Label(java.lang.String id, Point2D.Double loc, double wid, double hgt)
id
- label identifierloc
- location in physical coordinateswid
- width in physical coordinateshgt
- height in physical coorindates.Method Detail |
---|
public java.lang.String getId()
public void setId(java.lang.String id)
id
- identifierpublic void setBoundsP(Rectangle2D.Double bounds)
bounds
- bounds in physical coordinates.public Rectangle2D.Double getBoundsP()
public void setLocationP(Point2D.Double locationP)
locationP
- location in physical coordinates.public Point2D.Double getLocationP()
public void setHeightP(double heightP)
heightP
- height in physical coordinatespublic double getHeightP()
public void setWidthP(double widthP)
widthP
- width in physcial coordinatespublic double getWidthP()
public void removeChangeListener(javax.swing.event.ChangeListener l)
l
- change listener.public void removeAllChangeListeners()
public void addChangeListener(javax.swing.event.ChangeListener l)
public void removeDesignChangeListeners()
DesignListener
.
protected void fireStateChanged()
public void setText(java.lang.String text)
text
- label textpublic java.lang.String getText()
public void setVisible(boolean visible)
visible
- label visiblitypublic boolean isVisible()
public void setInstantiated(boolean instantiated)
instantiated
- SGLabel instantiatedpublic boolean isInstantiated()
public void setPanelHolder(PanelHolder pHolder)
pHolder
- panel holderpublic PanelHolder getPanelHolder()
public int getJustification()
public void setJustification(int justification)
justification
- label justificationSGLabel
public java.awt.Color getColor()
public java.awt.Font getFont()
public void setColor(java.awt.Color color)
color
- label colorpublic void setFont(java.awt.Font font)
font
- label fontpublic int getOrientation()
public void setOrientation(int orientation)
orientation
- label orientationSGLabel
public boolean isSelectable()
public void setSelectable(boolean selectable)
selectable
- true if label is selectable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |