com.qoppa.pdf.annotations
Class Popup

java.lang.Object
  extended bycom.qoppa.pdf.annotations.Annotation
      extended bycom.qoppa.pdf.annotations.Popup

public class Popup
extends Annotation

Class representing a Sound annotation in a PDF document. Sound annotations are displayed using a speaker icon and can be double-clicked to play back the audio content.

Author:
Qoppa Software

Field Summary
 
Fields inherited from class com.qoppa.pdf.annotations.Annotation
BORDERSTYLE_BEVELED, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY
 
Constructor Summary
Popup()
           
Popup(boolean open)
          Constructs a rubber stamp annotation
 
Method Summary
 JComponent createComponent(Point2D cropOrigin, IPDFActionHandler actionHandler)
          Creates a JComponent object capable of displaying this annotation.
 PDFObjectKey getObjectKey()
           
 String getSubtype()
          Returns this annotation's subtype: "Popup"
 boolean isOpen()
           
 void paintImpl(Graphics graphics, boolean hasFocus)
          Draws the stamp.
 void revalidate()
          Revalidates this annotation.
 void setObjectKey(PDFObjectKey key)
           
 void setOpen(boolean open)
           
 
Methods inherited from class com.qoppa.pdf.annotations.Annotation
getActions, getAppearStream, getBorderStyle, getBorderWidth, getColor, getComponent, getContents, getCreationDate, getCreator, getFlags, getLayer, getName, getOpacity, getPopup, getRectangle, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, setActions, setAppearStream, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPopup, setPrintable, setReadOnly, setRectangle, setTriggerActions, shiftRectangle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Popup

public Popup(boolean open)
Constructs a rubber stamp annotation


Popup

public Popup()
Method Detail

getSubtype

public String getSubtype()
Returns this annotation's subtype: "Popup"

Specified by:
getSubtype in class Annotation
Returns:
The annotation subtype.

createComponent

public JComponent createComponent(Point2D cropOrigin,
                                  IPDFActionHandler actionHandler)
Creates a JComponent object capable of displaying this annotation.

Specified by:
createComponent in class Annotation
Returns:
JComponent do display this annotation.

paintImpl

public void paintImpl(Graphics graphics,
                      boolean hasFocus)
Draws the stamp.

Parameters:
graphics - The graphics object to use when drawing.
hasFocus - Flag indicating whether the annotation should be painted with or without focus.

revalidate

public void revalidate()
Description copied from class: Annotation
Revalidates this annotation.

Specified by:
revalidate in class Annotation

isOpen

public boolean isOpen()

setOpen

public void setOpen(boolean open)

setObjectKey

public void setObjectKey(PDFObjectKey key)

getObjectKey

public PDFObjectKey getObjectKey()