|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--gov.noaa.pmel.sgt.beans.PanelHolder
Object to hold all the objects necessary to describe a Panel.
Associated objects include Label, DataGroup, and
Legend.
Label,
Panel,
PanelModel for UML diagram,
DataGroup,
Legend,
Serialized Form| Constructor Summary | |
PanelHolder()
Default constructor. |
|
PanelHolder(java.lang.String id,
PanelModel pModel)
PanelHolder constructor. |
|
PanelHolder(java.lang.String id,
PanelModel pModel,
java.awt.Rectangle bounds,
java.util.Map labels,
java.util.Map dataGroups,
java.util.Map legends)
PanelHolder constructor. |
|
| Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener l)
Add changelistener |
void |
addDataGroup(DataGroup dataGroup)
Add DataGroup to the PanelHolder. |
void |
addLabel(Label label)
Add Label to the PanelHolder. |
void |
addLegend(Legend legend)
Add Legend to the PanelHolder. |
java.util.Iterator |
dataGroupIterator()
Get an Iterator of DataGroup objects. |
DataGroup |
findDataGroup(java.lang.String id)
Find a DataGroup by identifier. |
Label |
findLabel(java.lang.String id)
Find Label by identifier. |
Legend |
findLegend(java.lang.String id)
Find Legend by identifier. |
java.awt.Color |
getBackground()
Get background color. |
javax.swing.border.Border |
getBorder()
Return Border for Panel. |
java.awt.Rectangle |
getBounds()
Get bounds of Panel. |
java.util.Map |
getDataGroups()
Get Map containing DataGroups. |
int |
getDataGroupSize()
Get number of DataGroup objects in Map. |
java.lang.String |
getId()
Get PanelHolder identifier |
java.util.Map |
getLabels()
Get Map of Labels. |
int |
getLabelSize()
Get number of Label objects in Map. |
java.util.Map |
getLegends()
Get Map containing Legends. |
int |
getLegendSize()
Get number of Legend objects in Map. |
PanelModel |
getPanelModel()
Get the PanelModel. |
boolean |
hasDataGroup(java.lang.String id)
Does PanelHolder contain DataGroup? |
boolean |
hasLabel(java.lang.String id)
Does PanelHolder contain Label? |
boolean |
hasLegend(java.lang.String id)
Does PanelHolder contain Legend? |
boolean |
isInstantiated()
Is panel instantiated? |
boolean |
isUsePageBackground()
Use the page background color? |
boolean |
isVisible()
Is Panel visible? |
java.util.Iterator |
labelIterator()
Get an Iterator of Label objects. |
java.util.Iterator |
legendIterator()
Get an Iterator of Legend objects. |
void |
removeAllChangeListeners()
Remove all ChangeListeners. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Remove changelistener. |
void |
removeDataGroup(DataGroup dataGroup)
Remove DataGroup from the PanelHolder. |
void |
removeDesignChangeListeners()
Remove all ChangeListeners that implement the
DesignListener interface. |
void |
removeLabel(Label label)
Remove Label from the PanelHolder. |
void |
removeLegend(Legend legend)
Remove Legend from the PanelHolder. |
void |
setBackground(java.awt.Color background)
Set the Panel background color. |
void |
setBorder(javax.swing.border.Border border)
Set Border for Panel. |
void |
setBounds(java.awt.Rectangle bounds)
Set bounds of Panel. |
void |
setDataGroups(java.util.Map dataGroups)
Set Map of DataGroups. |
void |
setId(java.lang.String id)
Set PanelHolder identifier. |
void |
setInstantiated(boolean instantiated)
Set instantiated. |
void |
setLabels(java.util.Map labels)
Set Map of Labels. |
void |
setLegends(java.util.Map legends)
Set Map of Legends. |
void |
setPanelModel(PanelModel pModel)
Set the PanelModel parent. |
void |
setUsePageBackground(boolean pageBackground)
Set the Panel to use the Page background color. |
void |
setVisible(boolean visible)
Set Panel visible. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
ChangeListner callback. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PanelHolder()
PanelHolder identifier and
PanelModel parent to null.
public PanelHolder(java.lang.String id,
PanelModel pModel)
PanelHolder constructor.
id - PanelHolder identifierpModel - PanelModel parent
public PanelHolder(java.lang.String id,
PanelModel pModel,
java.awt.Rectangle bounds,
java.util.Map labels,
java.util.Map dataGroups,
java.util.Map legends)
PanelHolder constructor. This constructor has arguments to
pass Maps of Label, DataGroup, and
Legend objects. The Map key is the objects identifier.
id - PanelHolder identifierpModel - PanelModel parentbounds - boundslabels - Map containing LabelsdataGroups - Map containing DataGroupslegends - Map contiaining Legends| Method Detail |
public void setPanelModel(PanelModel pModel)
PanelModel parent.
pModel - PanelModelpublic PanelModel getPanelModel()
PanelModel.
public void addLabel(Label label)
Label to the PanelHolder.
label - Labelpublic void removeLabel(Label label)
Label from the PanelHolder.
label - Labelpublic void addDataGroup(DataGroup dataGroup)
DataGroup to the PanelHolder.
dataGroup - DataGrouppublic void removeDataGroup(DataGroup dataGroup)
DataGroup from the PanelHolder.
dataGroup - DataGrouppublic void addLegend(Legend legend)
Legend to the PanelHolder.
legend - Legendpublic void removeLegend(Legend legend)
Legend from the PanelHolder.
legend - Legendpublic void setId(java.lang.String id)
PanelHolder identifier.
id - identifierpublic java.lang.String getId()
PanelHolder identifier
public int getLabelSize()
Label objects in Map.
public int getDataGroupSize()
DataGroup objects in Map.
public int getLegendSize()
Legend objects in Map.
public java.util.Iterator labelIterator()
Iterator of Label objects.
public java.util.Iterator dataGroupIterator()
Iterator of DataGroup objects.
public java.util.Iterator legendIterator()
Iterator of Legend objects.
public void setBounds(java.awt.Rectangle bounds)
Panel.
bounds - boundspublic java.awt.Rectangle getBounds()
Panel.
public void removeAllChangeListeners()
ChangeListeners.
public void stateChanged(javax.swing.event.ChangeEvent e)
ChangeListner callback.
stateChanged in interface javax.swing.event.ChangeListenere - ChangeEventpublic void removeChangeListener(javax.swing.event.ChangeListener l)
l - changelistenerpublic void addChangeListener(javax.swing.event.ChangeListener l)
l - changelistenerpublic void removeDesignChangeListeners()
ChangeListeners that implement the
DesignListener interface.
DesignListenerpublic void setVisible(boolean visible)
Panel visible.
visible - true if visiblepublic boolean isVisible()
Panel visible?
public void setInstantiated(boolean instantiated)
Panel object has been created
this property is set true. Used internally.
instantiated - true if instantiatedpublic boolean isInstantiated()
public DataGroup findDataGroup(java.lang.String id)
DataGroup by identifier.
id - identifier
public Label findLabel(java.lang.String id)
Label by identifier.
id - identifier
public Legend findLegend(java.lang.String id)
Legend by identifier.
id - identifier
public boolean hasDataGroup(java.lang.String id)
PanelHolder contain DataGroup?
id - DataGroup identifier
public boolean hasLabel(java.lang.String id)
PanelHolder contain Label?
id - Label identifier
public boolean hasLegend(java.lang.String id)
PanelHolder contain Legend?
id - Legend identifier
public javax.swing.border.Border getBorder()
Border for Panel.
public void setBorder(javax.swing.border.Border border)
Border for Panel. Default = LineBorder(gray, 2)
border - Borderpublic java.util.Map getLabels()
Map of Labels.
public void setLabels(java.util.Map labels)
Map of Labels. Key in Map contains
Label identifier.
labels - Label Mappublic java.util.Map getLegends()
Map containing Legends.
public void setLegends(java.util.Map legends)
Map of Legends. Key in Map contains
Legend identifier.
legends - Legend Mappublic java.util.Map getDataGroups()
Map containing DataGroups.
public void setDataGroups(java.util.Map dataGroups)
Map of DataGroups. Key in Map contains
DataGroup identifier.
dataGroups - DataGroup Mappublic java.awt.Color getBackground()
public void setBackground(java.awt.Color background)
Panel background color.
background - colorpublic boolean isUsePageBackground()
public void setUsePageBackground(boolean pageBackground)
Panel to use the Page background color.
pageBackground - true to use page background color
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||