ru.novosoft.dc.core
Interface PictureHandler


public interface PictureHandler
extends ProcessLoggerFactory

A picture handler provides logging and access to the picture information.


Method Summary
 int get(int index)
          Get the value of the picture parameter of the specified index (meaning of indices specified in PictureInfo).
 java.lang.Object getContext()
          Return a picture context for testing on uniqueness.
 java.lang.Object getPictureID()
          Return a picture ID or null if no ID defined yet.
 int getPictureType()
          Return a type of the picture handled.
 int getUniqueTag()
          Return a unique tag of the picture or 0 if the tag unspecified.
 java.net.URL getURL()
          Return the URL of the picture or null if it is undefined.
 void info(java.lang.String message)
          Send an information message to the logger of this handler.
 void pictureWasChanged()
          Send a signal to the handler that a picture size or type was changed.
 void set(int index, int value)
          Set a value for the picture parameter of the specified index (meaning of indices specified in PictureInfo).
 void setPictureID(java.lang.Object value)
          Set a picture ID.
 void setURL(java.net.URL value)
          Set a new URL for the picture.
 void warning(java.lang.String message)
          Send a warning message to the logger of this handler.
 
Methods inherited from interface ru.novosoft.dc.core.ProcessLoggerFactory
newProcessLogger
 

Method Detail

info

public void info(java.lang.String message)
Send an information message to the logger of this handler.

warning

public void warning(java.lang.String message)
Send a warning message to the logger of this handler.

setPictureID

public void setPictureID(java.lang.Object value)
Set a picture ID. This operation is called by the picture pool.

getPictureID

public java.lang.Object getPictureID()
Return a picture ID or null if no ID defined yet.

set

public void set(int index,
                int value)
Set a value for the picture parameter of the specified index (meaning of indices specified in PictureInfo).

get

public int get(int index)
Get the value of the picture parameter of the specified index (meaning of indices specified in PictureInfo).

setURL

public void setURL(java.net.URL value)
Set a new URL for the picture.

getURL

public java.net.URL getURL()
Return the URL of the picture or null if it is undefined.

getUniqueTag

public int getUniqueTag()
Return a unique tag of the picture or 0 if the tag unspecified.

getPictureType

public int getPictureType()
Return a type of the picture handled.

getContext

public java.lang.Object getContext()
Return a picture context for testing on uniqueness.

pictureWasChanged

public void pictureWasChanged()
Send a signal to the handler that a picture size or type was changed.


Other Novosoft LLC products:
Handy Backup Handy Password manager