Class EmptyReplacedElement
java.lang.Object
org.openpdf.pdf.AbstractFormField
org.openpdf.pdf.EmptyReplacedElement
- All Implemented Interfaces:
ReplacedElement, ITextReplacedElement
User: beck
Date: 11/4/11
-
Field Summary
Fields inherited from class AbstractFormField
DEFAULT_CHECKED_STATE, OFF_STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected StringintintReturns the current location where the element will be rendered on the canvasbooleanvoidpaint(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box) voidsetLocation(int x, int y) Assigns the new locations where the element will be rendered.Methods inherited from class AbstractFormField
detach, getFieldName, getHeight, getValue, getWidth, getX, getY, initDimensions, isChecked, isReadOnly, isRequiresInteractivePaint, isSelected, setFillColor, setHeight, setStrokeColor, setWidth, setX, setY, spaces
-
Constructor Details
-
EmptyReplacedElement
public EmptyReplacedElement(int width, int height)
-
-
Method Details
-
paint
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidthin interfaceReplacedElement- Overrides:
getIntrinsicWidthin classAbstractFormField
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeightin interfaceReplacedElement- Overrides:
getIntrinsicHeightin classAbstractFormField
-
getLocation
Description copied from interface:ReplacedElementReturns the current location where the element will be rendered on the canvas- Specified by:
getLocationin interfaceReplacedElement- Overrides:
getLocationin classAbstractFormField
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElementAssigns the new locations where the element will be rendered.- Specified by:
setLocationin interfaceReplacedElement- Overrides:
setLocationin classAbstractFormField- Parameters:
x- new horizontal positiony- new vertical position
-
getFieldType
- Specified by:
getFieldTypein classAbstractFormField
-
hasBaseline
public boolean hasBaseline() -
getBaseline
public int getBaseline()
-