com.qoppa.pdfNotes.settings
Class FileAttachmentTool

java.lang.Object
  extended by com.qoppa.pdfNotes.settings.FileAttachmentTool

public class FileAttachmentTool
extends Object

This class manages the default properties and settings for the File Attachment Tool. The method setDefaultProperties() can be used to set the Annotation properties to this Tool's default properties.

The Tool's property values can be retrieved and initialized with the methods toXMLString() and setFromXML() in the AnnotationTools class. Please see AnnotationTools.

Author:
Qoppa Software

Constructor Summary
FileAttachmentTool()
           
 
Method Summary
static int getDefaultTransparency()
          Gets the default transparency value that is used when new annotations are created.
static boolean isShowPropDialog()
          Gets the flag for this Tool to show or not the annotation properties popup dialog after an annotation has been created.
static void setDefaultProperties(FileAttachment fileAttachment)
          This is a convenience method to set the FileAttachment properties to the FileAttachmentTool default properties.
static void setDefaultTransparency(int defaultTransparency)
          Sets the default transparency values when new annotations are created.
static void setShowPropDialog(boolean showPropDialog)
          Sets the flag for this Tool to show or not the annotation properties popup dialog after an annotation has been created.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAttachmentTool

public FileAttachmentTool()
Method Detail

setDefaultProperties

public static void setDefaultProperties(FileAttachment fileAttachment)
This is a convenience method to set the FileAttachment properties to the FileAttachmentTool default properties.


getDefaultTransparency

public static int getDefaultTransparency()
Gets the default transparency value that is used when new annotations are created.

Returns:
the default transparency value

setDefaultTransparency

public static void setDefaultTransparency(int defaultTransparency)
Sets the default transparency values when new annotations are created.

Parameters:
defaultTransparency - Thew new default transparency value

isShowPropDialog

public static boolean isShowPropDialog()
Gets the flag for this Tool to show or not the annotation properties popup dialog after an annotation has been created.

Returns:
the showPropDialog

setShowPropDialog

public static void setShowPropDialog(boolean showPropDialog)
Sets the flag for this Tool to show or not the annotation properties popup dialog after an annotation has been created.

Parameters:
showPropDialog - the showPropDialog to set