|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPdfObjectContainer
com.crionics.jpdf.forms.AbstractField
public abstract class AbstractField
Abstract class containing all the generic methods associated with Form Fields.
| Method Summary | |
|---|---|
int |
getAssociatedPageIndex()
Recovers the page Index where the Form Fields is present. |
java.awt.Color |
getBorderColor()
gets the border color |
int |
getBorderStyle()
returns the border style |
int |
getBorderWidth()
Returns the border width |
java.awt.Color |
getFillColor()
Recovers the background color of a Form Field |
java.lang.String |
getName()
Returns the Form Field name. |
int |
getOrientation()
return the widget orientation in degrees |
java.awt.Rectangle |
getPosition()
Recovers the position and size of the Form Field within the page |
java.awt.Color |
getTextColor()
return the text color |
java.lang.String |
getTextFont()
return the name of the font |
float |
getTextSize()
Return the size of the font, 0 means that the text is in autosize mode |
java.lang.String |
getToolTip()
return the tooltip for this field |
boolean |
isHidden()
Returns the Form Fields screen visibility flag value. |
boolean |
isPrintable()
Returns the Form Fields printer visibility flag value. |
boolean |
isReadOnly()
Returns the Form Field's ReadOnly flag value. |
void |
setBorderColor(java.awt.Color color)
sets the border color |
void |
setBorderStyle(int style)
sets the border style |
void |
setBorderWidth(int width)
sets the border width |
void |
setFillColor(java.awt.Color bgcolor)
Sets the background color of a Form Field |
void |
setHidden(boolean flag)
Allows to hide/show a Form Field on a PDF Viewer. |
void |
setOrientation(int orientation)
sets the widget orientation on teh page (in degrees) |
void |
setPosition(java.awt.Rectangle rect)
Sets the position and size of the Form Field within the page |
void |
setPrintable(boolean flag)
Allows to hide/show a Form Field a printed page. |
void |
setReadOnly(boolean flagReadOnly)
Sets/Clears the Form Field's ReadOnly flag. |
void |
setTextColor(java.awt.Color color)
Sets the text color |
void |
setTextFont(java.awt.Font font)
Sets the text font. for now only the 14 native fonts are supported. |
void |
setTextFont(java.lang.String font)
|
void |
setTextSize(float size)
sets the text size, use 0 for auto-size mode. |
void |
setToolTip(java.lang.String tip)
sets the widget tooltip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getAssociatedPageIndex()
throws java.io.IOException,
PdfException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.awt.Color getBorderColor()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public int getBorderStyle()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public int getBorderWidth()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.awt.Color getFillColor()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.lang.String getName()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public int getOrientation()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.awt.Rectangle getPosition()
throws java.io.IOException,
PdfException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.awt.Color getTextColor()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.lang.String getTextFont()
throws java.io.IOException,
PdfException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public float getTextSize()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public java.lang.String getToolTip()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public boolean isHidden()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public boolean isPrintable()
throws PdfException,
java.io.IOException
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.public boolean isReadOnly()
public void setBorderColor(java.awt.Color color)
throws java.io.IOException,
PdfException
color - color to use for the border, a transparent border can be used
by using an alpha=255
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setBorderStyle(int style)
throws PdfException,
java.io.IOException
style - a border style as defined in IBorderStyle
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setBorderWidth(int width)
throws java.io.IOException,
PdfException
width - the border width, border with a 0 width are ignored
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setFillColor(java.awt.Color bgcolor)
throws PdfException,
java.io.IOException
bgcolor - The background color to set, or null to render it transparent.
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setHidden(boolean flag)
throws PdfException,
java.io.IOException
flag - true to show it, false to hide it.
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setOrientation(int orientation)
throws PdfException,
java.io.IOException
orientation - the widget orientation in degres
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setPosition(java.awt.Rectangle rect)
throws java.io.IOException,
PdfException
rect - The position and size of the Form Fields in pixels.
Coordinates are relative to the top left corner of the page
when the document is viewed on a PDF Viewer.
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setPrintable(boolean flag)
throws PdfException,
java.io.IOException
flag - true to show it, false to hide it.
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setReadOnly(boolean flagReadOnly)
throws PdfException,
java.io.IOException
flagReadOnly - true to set it, false to clear it.
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setTextColor(java.awt.Color color)
throws PdfException,
java.io.IOException
color - the text color
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setTextFont(java.awt.Font font)
throws PdfException,
java.io.IOException
name - font name
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setTextFont(java.lang.String font)
throws PdfException,
java.io.IOException
PdfException
java.io.IOException
public void setTextSize(float size)
throws PdfException,
java.io.IOException
size - the text size
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
public void setToolTip(java.lang.String tip)
throws PdfException,
java.io.IOException
tip - a string which will be display when the mouse is left over the
widget, a tooltip
PdfException - Raised if a problem occured while parsing the file.
java.io.IOException - Raised if a problem occured while reading the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||