Skip to content
Snippets Groups Projects
Commit b307ad94 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Deprecate some unused methods

parent 4b22aa0c
No related branches found
No related tags found
No related merge requests found
......@@ -267,20 +267,21 @@ public class ViewerState
interpolation = method;
}
// TODO: replace by getDisplayMode()
/**
* Is the display mode <em>single-source</em>? In <em>single-source</em>
* mode, only the current source (SPIM angle). Otherwise, in <em>fused</em>
* mode, all active sources are blended.
*
* @return whether the display mode is <em>single-source</em>.
*
* @deprecated replaced by {@link #getDisplayMode()}
*/
@Deprecated
public synchronized boolean isSingleSourceMode()
{
return displayMode == SINGLE;
}
// TODO: replace by setDisplayMode();
/**
* Set the display mode to <em>single-source</em> (true) or <em>fused</em>
* (false). In <em>single-source</em> mode, only the current source (SPIM
......@@ -289,7 +290,10 @@ public class ViewerState
* @param singleSourceMode
* If true, set <em>single-source</em> mode. If false, set
* <em>fused</em> mode.
*
* @deprecated replaced by {@link #setDisplayMode(DisplayMode)}
*/
@Deprecated
public synchronized void setSingleSourceMode( final boolean singleSourceMode )
{
if ( singleSourceMode )
......@@ -299,14 +303,35 @@ public class ViewerState
}
/**
* TODO
* Set the {@link DisplayMode}.
*
* <ul>
* <li>In <em>single-source</em> mode, only the current source (SPIM angle) is shown.</li>
* <li>In <em>fused</em> mode, all active sources are blended.</li>
* <li>In <em>single-group</em> mode, all sources of the current group are blended.</li>
* <li>In <em>fused group</em> mode, all sources of all active groups are blended.</li>
* </ul>
*
* @param mode
* the display mode
*/
public synchronized void setDisplayMode( final DisplayMode mode )
{
displayMode = mode;
}
/**
* Get the current {@link DisplayMode}.
*
* <ul>
* <li>In <em>single-source</em> mode, only the current source (SPIM angle) is shown.</li>
* <li>In <em>fused</em> mode, all active sources are blended.</li>
* <li>In <em>single-group</em> mode, all sources of the current group are blended.</li>
* <li>In <em>fused group</em> mode, all sources of all active groups are blended.</li>
* </ul>
*
* @return the current display mode
*/
public synchronized DisplayMode getDisplayMode()
{
return displayMode;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment