|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.gui.visualization.container.ContainerManager<InstanceContainer>
adams.gui.visualization.instance.InstanceContainerManager
public class InstanceContainerManager
A handler for the Instance containers.
| Field Summary | |
|---|---|
protected AbstractColorProvider |
m_ColorProvider
the color provider for managing the colors. |
protected ContainerListManager<InstanceContainerManager> |
m_Owner
the owning panel. |
| Fields inherited from class adams.gui.visualization.container.ContainerManager |
|---|
m_DataChangeListeners, m_List, m_Updating |
| Constructor Summary | |
|---|---|
InstanceContainerManager(ContainerListManager<InstanceContainerManager> owner)
Initializes the manager. |
|
| Method Summary | |
|---|---|
void |
add(InstanceContainer c)
Adds the given container to the list. |
void |
clear()
Clears the container list. |
int |
countVisible()
Returns the number of visible containers. |
Vector<InstanceContainer> |
getAllVisible()
Returns (a copy of) all currently stored containers. |
AbstractColorProvider |
getColorProvider()
Returns the color provider to use. |
Color |
getNextColor()
Returns the next color in line. |
ContainerListManager |
getOwner()
Returns the owning panel. |
InstanceContainer |
getVisible(int index)
Returns the nth visible container. |
int[] |
getVisibleIndices()
Returns the indices of all visible containers. |
int |
indexOf(String id)
Determines the index of the sequence with the specified ID. |
boolean |
isVisible(int index)
Returns whether the container at the specified position is visible. |
InstanceContainer |
newContainer(Comparable o)
Returns a new container containing the given payload. |
InstanceContainer |
remove(int index)
Removes the container at the specified position. |
void |
setColorProvider(AbstractColorProvider value)
Sets the color provider to use. |
void |
setVisible(int index,
boolean visible)
Sets the specified container's visibility. |
| Methods inherited from class adams.gui.visualization.container.ContainerManager |
|---|
addAll, addDataChangeListener, contains, count, finishUpdate, finishUpdate, get, getAll, indexOf, isUpdating, notifyDataChangeListeners, postAdd, preAdd, preSet, removeDataChangeListener, set, startUpdate, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ContainerListManager<InstanceContainerManager> m_Owner
protected AbstractColorProvider m_ColorProvider
| Constructor Detail |
|---|
public InstanceContainerManager(ContainerListManager<InstanceContainerManager> owner)
owner - the owning panel| Method Detail |
|---|
public ContainerListManager getOwner()
public void setColorProvider(AbstractColorProvider value)
setColorProvider in interface ColorContainerManagervalue - the color providerpublic AbstractColorProvider getColorProvider()
getColorProvider in interface ColorContainerManagerpublic Color getNextColor()
getNextColor in interface ColorContainerManagerpublic void clear()
clear in class ContainerManager<InstanceContainer>public InstanceContainer newContainer(Comparable o)
newContainer in class ContainerManager<InstanceContainer>o - the payload to encapsulate
public void add(InstanceContainer c)
add in class ContainerManager<InstanceContainer>c - the container to addpublic InstanceContainer remove(int index)
remove in class ContainerManager<InstanceContainer>index - the index of the container to remove
public int indexOf(String id)
indexOf in interface NamedContainerManagerid - the ID of the sequence
public int[] getVisibleIndices()
getVisibleIndices in interface VisibilityContainerManager<InstanceContainer>public Vector<InstanceContainer> getAllVisible()
getAllVisible in interface VisibilityContainerManager<InstanceContainer>public boolean isVisible(int index)
isVisible in interface VisibilityContainerManager<InstanceContainer>index - the container's position
public void setVisible(int index,
boolean visible)
setVisible in interface VisibilityContainerManager<InstanceContainer>index - the index of the containervisible - if true then the container will be made visiblepublic InstanceContainer getVisible(int index)
getVisible in interface VisibilityContainerManager<InstanceContainer>index - the index (relates only to the visible containers!)
public int countVisible()
countVisible in interface VisibilityContainerManager<InstanceContainer>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||