com.qoppa.pdfNotes
Class NotesSettings

java.lang.Object
  extended bycom.qoppa.pdfNotes.NotesSettings

public class NotesSettings
extends Object

This class allows to set / get settings and preferences for the PDFNotesBean.

Author:
Qoppa Software

Field Summary
static String AUTHOR
           
static String TYPE_ARROW
           
static String TYPE_CIRCLE
           
static String TYPE_FILE_ATTACHMENT
           
static String TYPE_FREETEXT
           
static String TYPE_INK
           
static String TYPE_LINE
           
static String TYPE_LINK
           
static String TYPE_MARKUP_CROSSOUT
           
static String TYPE_MARKUP_HIGHLIGHT
           
static String TYPE_MARKUP_SQUIGGLY
           
static String TYPE_MARKUP_UNDERLINE
           
static String TYPE_NOTE
           
static String TYPE_POLYGON
           
static String TYPE_RUBBERSTAMP
           
static String TYPE_SQUARE
           
 
Constructor Summary
NotesSettings()
           
 
Method Summary
static String getAuthor()
           
static Dimension getMinSize(String annotType)
          Gets the minimum size for a given annotation.
static boolean isShowPropDialog(String annotType)
          Gets the flag for a given annotation to show or not the annotation properties popup dialog after an annotation has been created.
static void setAuthor(String authorName)
           
static void setMinSize(String annotType, int width, int height)
          Sets the minimum size for a given annotation.
static void setShowPropDialog(String annotType, boolean show)
          Sets the flag for a given annotation 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
 

Field Detail

TYPE_CIRCLE

public static String TYPE_CIRCLE

TYPE_SQUARE

public static String TYPE_SQUARE

TYPE_POLYGON

public static String TYPE_POLYGON

TYPE_LINE

public static String TYPE_LINE

TYPE_ARROW

public static String TYPE_ARROW

TYPE_INK

public static String TYPE_INK

TYPE_FREETEXT

public static String TYPE_FREETEXT

TYPE_LINK

public static String TYPE_LINK

TYPE_RUBBERSTAMP

public static String TYPE_RUBBERSTAMP

TYPE_NOTE

public static String TYPE_NOTE

TYPE_MARKUP_HIGHLIGHT

public static String TYPE_MARKUP_HIGHLIGHT

TYPE_MARKUP_UNDERLINE

public static String TYPE_MARKUP_UNDERLINE

TYPE_MARKUP_CROSSOUT

public static String TYPE_MARKUP_CROSSOUT

TYPE_MARKUP_SQUIGGLY

public static String TYPE_MARKUP_SQUIGGLY

TYPE_FILE_ATTACHMENT

public static String TYPE_FILE_ATTACHMENT

AUTHOR

public static String AUTHOR
Constructor Detail

NotesSettings

public NotesSettings()
Method Detail

getAuthor

public static String getAuthor()

setAuthor

public static void setAuthor(String authorName)

isShowPropDialog

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

Parameters:
annotType - the type of the annotation. Possible values are TYPE_* (TYPE_CIRCLE, TYPE_SQUARE, etc...)
Returns:
boolean the flag for a given annotation to show or not the annotation properties dialog after creation

setShowPropDialog

public static void setShowPropDialog(String annotType,
                                     boolean show)
Sets the flag for a given annotation to show or not the annotation properties popup dialog after an annotation has been created.

Parameters:
annotType - the type of the annotation. Possible values are TYPE_* (TYPE_CIRCLE, TYPE_SQUARE, etc...)
show -

setMinSize

public static void setMinSize(String annotType,
                              int width,
                              int height)
Sets the minimum size for a given annotation. When the annotation is drawn by a user with a "null size", the annotation size will be automatically set to the annotation's minimum size.

Parameters:
annotType - the type of the annotation. Possible values are TYPE_* (TYPE_CIRCLE, TYPE_SQUARE, etc...)
width - the new minimum width
height - the new minimum height

getMinSize

public static Dimension getMinSize(String annotType)
Gets the minimum size for a given annotation. When the annotation is drawn by a user with a "null size", the annotation size will be automatically set to the annotation's minimum size.

Parameters:
annotType - the type of the annotation. Possible values are TYPE_* (TYPE_CIRCLE, TYPE_SQUARE, etc...)
Returns:
Dimension = (width, height) the minimum size