Package org.xhtmlrenderer.pdf
Class EmptyReplacedElement
java.lang.Object
org.xhtmlrenderer.pdf.AbstractFormField
org.xhtmlrenderer.pdf.EmptyReplacedElement
- All Implemented Interfaces:
ReplacedElement
,ITextReplacedElement
User: beck
Date: 11/4/11
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private Point
private final int
private static final String
Fields inherited from class org.xhtmlrenderer.pdf.AbstractFormField
DEFAULT_CHECKED_STATE, OFF_STATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
protected String
int
int
Returns the current location where the element will be rendered on the canvasboolean
void
paint
(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box) void
setLocation
(int x, int y) Assigns the new locations where the element will be rendered.Methods inherited from class org.xhtmlrenderer.pdf.AbstractFormField
detach, getFieldName, getHeight, getValue, getWidth, getX, getY, initDimensions, isChecked, isReadOnly, isRequiresInteractivePaint, isSelected, setFillColor, setHeight, setStrokeColor, setWidth, setX, setY, spaces
-
Field Details
-
FIELD_TYPE
- See Also:
-
_width
private final int _width -
_height
private final int _height -
_location
-
-
Constructor Details
-
EmptyReplacedElement
public EmptyReplacedElement(int width, int height)
-
-
Method Details
-
paint
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidth
in interfaceReplacedElement
- Overrides:
getIntrinsicWidth
in classAbstractFormField
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
- Overrides:
getIntrinsicHeight
in classAbstractFormField
-
getLocation
Description copied from interface:ReplacedElement
Returns the current location where the element will be rendered on the canvas- Specified by:
getLocation
in interfaceReplacedElement
- Overrides:
getLocation
in classAbstractFormField
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElement
Assigns the new locations where the element will be rendered.- Specified by:
setLocation
in interfaceReplacedElement
- Overrides:
setLocation
in classAbstractFormField
- Parameters:
x
- new horizontal positiony
- new vertical position
-
getFieldType
- Specified by:
getFieldType
in classAbstractFormField
-
hasBaseline
public boolean hasBaseline() -
getBaseline
public int getBaseline()
-