ImageScience 3.0.0

imagescience.utility
Class Messenger

java.lang.Object
  extended by imagescience.utility.Messenger

public class Messenger
extends java.lang.Object

Displays various types of messages.


Constructor Summary
Messenger()
          Default constructor.
 
Method Summary
 boolean log()
          Indicates whether log messages are displayed.
 void log(boolean enable)
          Enables or disables displaying of log messages.
 void log(java.lang.String message)
          Displays the given log message if displaying is enabled for such messages.
 boolean status()
          Indicates whether status messages are displayed.
 void status(boolean enable)
          Enables or disables displaying of status messages.
 void status(java.lang.String message)
          Displays the given status message if displaying is enabled for such messages.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messenger

public Messenger()
Default constructor.

Method Detail

log

public boolean log()
Indicates whether log messages are displayed.

Returns:
Value true if log messages are displayed, or false if this is not the case.

log

public void log(boolean enable)
Enables or disables displaying of log messages. By default they are not displayed.

Parameters:
enable - If true (or false) log messages are (or are not) displayed.

log

public void log(java.lang.String message)
Displays the given log message if displaying is enabled for such messages. The given message is then written to ImageJ's log window.

Parameters:
message - The message.

status

public boolean status()
Indicates whether status messages are displayed.

Returns:
Value true if status messages are displayed, or false if this is not the case.

status

public void status(boolean enable)
Enables or disables displaying of status messages. By default they are not displayed.

Parameters:
enable - If true (or false) status messages are (or are not) displayed.

status

public void status(java.lang.String message)
Displays the given status message if displaying is enabled for such messages. The given message is then written to ImageJ's status bar.

Parameters:
message - The message.

ImageScience 3.0.0

Copyright (C) Erik Meijering. Permission to use this software and corresponding documentation for educational, research, and not-for-profit purposes, without a fee and without a signed licensing agreement, is granted, subject to the following terms and conditions.

IT IS NOT ALLOWED TO REDISTRIBUTE, SELL, OR LEASE THIS SOFTWARE, OR DERIVATIVE WORKS THEREOF, WITHOUT PERMISSION IN WRITING FROM THE COPYRIGHT HOLDER. THE COPYRIGHT HOLDER IS FREE TO MAKE VERSIONS OF THE SOFTWARE AVAILABLE FOR A FEE OR COMMERCIALLY ONLY.

IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OF ANY KIND WHATSOEVER, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE EXPRESS OR IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND CORRESPONDING DOCUMENTATION IS PROVIDED "AS IS". THE COPYRIGHT HOLDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.