com.qoppa.pdf.annotations
Class Widget
java.lang.Object
com.qoppa.pdf.annotations.Annotation
com.qoppa.pdf.annotations.Widget
- Direct Known Subclasses:
- WidgetButton, WidgetChoice, WidgetSignature, WidgetText
- public abstract class Widget
- extends Annotation
| 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 |
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
createComponent, 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, setInvisible, setLayer, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPopup, setReadOnly, setRectangle, setTriggerActions, shiftRectangle |
NUMBER_FORMAT
public static final DecimalFormat NUMBER_FORMAT
HIGH_NONE
public static final int HIGH_NONE
- See Also:
- Constant Field Values
HIGH_INVERT
public static final int HIGH_INVERT
- See Also:
- Constant Field Values
HIGH_OUTLINE
public static final int HIGH_OUTLINE
- See Also:
- Constant Field Values
HIGH_PUSH
public static final int HIGH_PUSH
- See Also:
- Constant Field Values
HIGH_TOGGLE
public static final int HIGH_TOGGLE
- See Also:
- Constant Field Values
Widget
public Widget(QFormField field,
PDFDictionary widgetDict,
boolean keepDict)
canEdit
public boolean canEdit()
getAppearanceState
public String getAppearanceState()
getBackground
public Color getBackground()
getCaption
public String getCaption()
getBorderColor
public Color getBorderColor()
getHighlightMode
public int getHighlightMode()
getField
public QFormField getField()
getSubtype
public String getSubtype()
- Description copied from class:
Annotation
- Gets the annotation's subtype string.
- Specified by:
getSubtype in class Annotation
- Returns:
- The annotation subtype.
getWidgetDict
public PDFDictionary getWidgetDict()
setHighlightMode
public void setHighlightMode(int highlightMode)
setAppearanceState
public void setAppearanceState(String aState)
setBackground
public void setBackground(Color background)
setBorderColor
public void setBorderColor(Color borderColor)
setCaption
public void setCaption(String caption)
fieldValueChanged
public abstract void fieldValueChanged()
throws PDFException
- Throws:
PDFException
isEditable
public boolean isEditable()
getGenNumber
public int getGenNumber()
setGenNumber
public void setGenNumber(int genNumber)
getMarkedContentInfo
public Hashtable getMarkedContentInfo(Vector commands)
getNormalStream
public PDFStream getNormalStream()
getObjNumber
public int getObjNumber()
setObjNumber
public void setObjNumber(int objNumber)
setField
public void setField(QFormField field)
setHidden
public void setHidden(boolean hidden)
- Description copied from class:
Annotation
- Sets this Annotation's HIDDEN flag. A hidden annotation will not be displayed on the screen and will not print.
- Overrides:
setHidden in class Annotation
- Parameters:
hidden - The new value of the HIDDEN flag.
setPrintable
public void setPrintable(boolean printable)
- Description copied from class:
Annotation
- Sets the value of the PRINTABLE flag.
- Overrides:
setPrintable in class Annotation
- Parameters:
printable - The new value for the PRINTABLE flag.
getPDFObjectManager
public PDFObjectManager getPDFObjectManager()
setPDFObjectManager
public void setPDFObjectManager(PDFObjectManager objectManager)
paintImpl
public void paintImpl(Graphics g,
boolean hasFocus)
revalidate
public void revalidate()
- Description copied from class:
Annotation
- Revalidates this annotation.
- Specified by:
revalidate in class Annotation
getFont
public PDFFont getFont()
getEditingComponent
public JComponent getEditingComponent()
getHorzTextAlign
public int getHorzTextAlign()
setFont
public void setFont(PDFFont font)
getDA
public String getDA()
setDA
public void setDA(String da)
normalizeRectangle
public void normalizeRectangle(double paperHeight)
setPage
public void setPage(IPDFPage page)
getPage
public IPDFPage getPage()
setWidgetHighlight
public void setWidgetHighlight(boolean highlight)
- Flags this widget so that when displayed, it will display a highlight over the
widget. This is intended so that a viewer will locate fields more easily on a form.
- Parameters:
highlight - Boolean flag indicating whether the field should be highlighted.