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

javadoc

parent 4460d990
No related branches found
No related tags found
No related merge requests found
......@@ -642,6 +642,9 @@ public class ViewerPanel extends JPanel implements OverlayRenderer, TransformLis
setInterpolation( mode );
}
/**
* Set the {@link Interpolation} mode.
*/
public synchronized void setInterpolation( final Interpolation mode )
{
final Interpolation interpolation = state.getInterpolation();
......@@ -797,11 +800,25 @@ public class ViewerPanel extends JPanel implements OverlayRenderer, TransformLis
display.repaint();
}
/**
* Add a {@link InterpolationModeListener} to notify when the interpolation
* mode is changed. Listeners will be notified <em>before</em> calling
* {@link #requestRepaint()} so they have the chance to interfere.
*
* @param listener
* the interpolation mode listener to add.
*/
public void addInterpolationModeListener( final InterpolationModeListener listener )
{
interpolationModeListeners.add( listener );
}
/**
* Remove a {@link InterpolationModeListener}.
*
* @param listener
* the interpolation mode listener to remove.
*/
public void removeInterpolationModeListener( final InterpolationModeListener listener )
{
interpolationModeListeners.remove( listener );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment