PamView
Class KeyPanel

java.lang.Object
  extended by PamView.KeyPanel
Direct Known Subclasses:
HistogramDisplay.HistoStatsWindow

public class KeyPanel
extends java.lang.Object

Class to generate standard panels for plot keys. Basically, it's a container with a simple layout that get's a load of other componenets added to it.

Author:
Doug

Nested Class Summary
(package private)  class KeyPanel.BPanel
           
 
Field Summary
private  java.util.ArrayList<PamKeyItem> keyItems
           
private  int keyType
           
private  javax.swing.JPanel panel
           
private  java.lang.String title
           
private  javax.swing.border.TitledBorder titledBorder
           
 
Constructor Summary
KeyPanel(java.lang.String title, int keyType)
           
 
Method Summary
 void add(PamKeyItem pamKeyItem)
           
 void clear()
           
private  void createPanel()
           
 void destroy()
           
private  void fillPanel()
           
 int getKeyType()
           
 javax.swing.JPanel getPanel()
           
 javax.swing.border.TitledBorder getTitledBorder()
           
 void remove(PamKeyItem pamKeyItem)
           
 void setKeyType(int keyType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

private java.lang.String title

keyItems

private java.util.ArrayList<PamKeyItem> keyItems

panel

private javax.swing.JPanel panel

titledBorder

private javax.swing.border.TitledBorder titledBorder

keyType

private int keyType
Constructor Detail

KeyPanel

public KeyPanel(java.lang.String title,
                int keyType)
Method Detail

add

public void add(PamKeyItem pamKeyItem)

remove

public void remove(PamKeyItem pamKeyItem)

getPanel

public javax.swing.JPanel getPanel()

createPanel

private void createPanel()

fillPanel

private void fillPanel()

clear

public void clear()

destroy

public void destroy()

getKeyType

public int getKeyType()

setKeyType

public void setKeyType(int keyType)

getTitledBorder

public javax.swing.border.TitledBorder getTitledBorder()