- java.lang.Object
-
- bdv.viewer.VisibilityAndGrouping
-
@Deprecated public class VisibilityAndGrouping extends Object
Deprecated.This is not necessary anymore, becauseViewerStatecan be modified directly. (SeeViewerPanel.state().) Manage visibility and currentness of sources and groups, as well as grouping of sources, and display mode.- Author:
- Tobias Pietzsch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVisibilityAndGrouping.EventDeprecated.static interfaceVisibilityAndGrouping.UpdateListenerDeprecated.
-
Field Summary
Fields Modifier and Type Field Description protected CopyOnWriteArrayList<VisibilityAndGrouping.UpdateListener>updateListenersDeprecated.
-
Constructor Summary
Constructors Constructor Description VisibilityAndGrouping(ViewerState viewerState)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddSourceToGroup(int sourceIndex, int groupIndex)Deprecated.voidaddUpdateListener(VisibilityAndGrouping.UpdateListener l)Deprecated.intgetCurrentGroup()Deprecated.intgetCurrentSource()Deprecated.DisplayModegetDisplayMode()Deprecated.List<SourceGroup>getSourceGroups()Deprecated.List<SourceState<?>>getSources()Deprecated.ViewerStategetState()Deprecated.booleanisFusedEnabled()Deprecated.booleanisGroupActive(int groupIndex)Deprecated.booleanisGroupingEnabled()Deprecated.booleanisSourceActive(int sourceIndex)Deprecated.booleanisSourceVisible(int sourceIndex)Deprecated.intnumGroups()Deprecated.intnumSources()Deprecated.voidremoveSourceFromGroup(int sourceIndex, int groupIndex)Deprecated.voidremoveUpdateListener(VisibilityAndGrouping.UpdateListener l)Deprecated.voidsetCurrentGroup(int groupIndex)Deprecated.voidsetCurrentGroupOrSource(int index)Deprecated.voidsetCurrentSource(int sourceIndex)Deprecated.voidsetCurrentSource(Source<?> source)Deprecated.voidsetDisplayMode(DisplayMode displayMode)Deprecated.voidsetFusedEnabled(boolean enable)Deprecated.voidsetGroupActive(int groupIndex, boolean isActive)Deprecated.voidsetGroupingEnabled(boolean enable)Deprecated.voidsetGroupName(int groupIndex, String name)Deprecated.voidsetSourceActive(int sourceIndex, boolean isActive)Deprecated.voidsetSourceActive(Source<?> source, boolean isActive)Deprecated.voidtoggleActiveGroupOrSource(int index)Deprecated.protected voidupdate(int id)Deprecated.
-
-
-
Field Detail
-
updateListeners
protected final CopyOnWriteArrayList<VisibilityAndGrouping.UpdateListener> updateListeners
Deprecated.
-
-
Constructor Detail
-
VisibilityAndGrouping
@Deprecated public VisibilityAndGrouping(ViewerState viewerState)
Deprecated.
-
-
Method Detail
-
getState
@Deprecated public ViewerState getState()
Deprecated.
-
numSources
@Deprecated public int numSources()
Deprecated.
-
getSources
@Deprecated public List<SourceState<?>> getSources()
Deprecated.
-
numGroups
@Deprecated public int numGroups()
Deprecated.
-
getSourceGroups
@Deprecated public List<SourceGroup> getSourceGroups()
Deprecated.
-
getDisplayMode
@Deprecated public DisplayMode getDisplayMode()
Deprecated.
-
setDisplayMode
@Deprecated public void setDisplayMode(DisplayMode displayMode)
Deprecated.
-
getCurrentSource
@Deprecated public int getCurrentSource()
Deprecated.
-
setCurrentSource
@Deprecated public void setCurrentSource(int sourceIndex)
Deprecated.TODO- Parameters:
sourceIndex-
-
setCurrentSource
@Deprecated public void setCurrentSource(Source<?> source)
Deprecated.
-
isSourceActive
@Deprecated public boolean isSourceActive(int sourceIndex)
Deprecated.
-
setSourceActive
@Deprecated public void setSourceActive(int sourceIndex, boolean isActive)
Deprecated.Set the source active (visible in fused mode) or inactive.- Parameters:
sourceIndex-isActive-
-
setSourceActive
@Deprecated public void setSourceActive(Source<?> source, boolean isActive)
Deprecated.Set the source active (visible in fused mode) or inactive.- Parameters:
source-isActive-
-
getCurrentGroup
@Deprecated public int getCurrentGroup()
Deprecated.
-
setCurrentGroup
@Deprecated public void setCurrentGroup(int groupIndex)
Deprecated.TODO- Parameters:
groupIndex-
-
isGroupActive
@Deprecated public boolean isGroupActive(int groupIndex)
Deprecated.
-
setGroupActive
@Deprecated public void setGroupActive(int groupIndex, boolean isActive)
Deprecated.Set the group active (visible in fused mode) or inactive.- Parameters:
groupIndex-isActive-
-
setGroupName
@Deprecated public void setGroupName(int groupIndex, String name)
Deprecated.
-
addSourceToGroup
@Deprecated public void addSourceToGroup(int sourceIndex, int groupIndex)
Deprecated.
-
removeSourceFromGroup
@Deprecated public void removeSourceFromGroup(int sourceIndex, int groupIndex)
Deprecated.
-
setCurrentGroupOrSource
@Deprecated public void setCurrentGroupOrSource(int index)
Deprecated.TODO- Parameters:
index-
-
toggleActiveGroupOrSource
@Deprecated public void toggleActiveGroupOrSource(int index)
Deprecated.TODO- Parameters:
index-
-
isGroupingEnabled
@Deprecated public boolean isGroupingEnabled()
Deprecated.
-
isFusedEnabled
@Deprecated public boolean isFusedEnabled()
Deprecated.
-
setGroupingEnabled
@Deprecated public void setGroupingEnabled(boolean enable)
Deprecated.
-
setFusedEnabled
@Deprecated public void setFusedEnabled(boolean enable)
Deprecated.
-
isSourceVisible
@Deprecated public boolean isSourceVisible(int sourceIndex)
Deprecated.
-
update
@Deprecated protected void update(int id)
Deprecated.
-
addUpdateListener
@Deprecated public void addUpdateListener(VisibilityAndGrouping.UpdateListener l)
Deprecated.
-
removeUpdateListener
@Deprecated public void removeUpdateListener(VisibilityAndGrouping.UpdateListener l)
Deprecated.
-
-