Package org.xhtmlrenderer.pdf
Class RadioButtonFormField
java.lang.Object
org.xhtmlrenderer.pdf.AbstractFormField
org.xhtmlrenderer.pdf.RadioButtonFormField
- All Implemented Interfaces:
ReplacedElement
,ITextReplacedElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Box
private final ITextReplacedElementFactory
private static final String
Fields inherited from class org.xhtmlrenderer.pdf.AbstractFormField
DEFAULT_CHECKED_STATE, OFF_STATE
-
Constructor Summary
ConstructorsConstructorDescriptionRadioButtonFormField
(ITextReplacedElementFactory factory, LayoutContext c, BlockBox box, int cssWidth, int cssHeight) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
createAppearances
(com.lowagie.text.pdf.PdfContentByte cb, com.lowagie.text.pdf.PdfFormField field, String onValue, float width, float height, boolean normal, FSColor color, FSColor darker) private void
createField
(RenderingContext c, ITextOutputDevice outputDevice, com.lowagie.text.pdf.PdfContentByte cb, com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.pdf.PdfFormField group, RadioButtonFormField fieldElem, RadioButtonFormField checked) void
int
getBox()
private RadioButtonFormField
getChecked
(List<RadioButtonFormField> fields) protected String
boolean
void
paint
(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box) private float
reduce
(float value) Methods inherited from class org.xhtmlrenderer.pdf.AbstractFormField
getFieldName, getHeight, getIntrinsicHeight, getIntrinsicWidth, getLocation, getValue, getWidth, getX, getY, initDimensions, isChecked, isReadOnly, isRequiresInteractivePaint, isSelected, setFillColor, setHeight, setLocation, setStrokeColor, setWidth, setX, setY, spaces
-
Field Details
-
FIELD_TYPE
- See Also:
-
_factory
-
_box
-
-
Constructor Details
-
RadioButtonFormField
public RadioButtonFormField(ITextReplacedElementFactory factory, LayoutContext c, BlockBox box, int cssWidth, int cssHeight)
-
-
Method Details
-
getFieldType
- Specified by:
getFieldType
in classAbstractFormField
-
paint
-
getChecked
-
createField
private void createField(RenderingContext c, ITextOutputDevice outputDevice, com.lowagie.text.pdf.PdfContentByte cb, com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.pdf.PdfFormField group, RadioButtonFormField fieldElem, RadioButtonFormField checked) -
createAppearances
-
reduce
private float reduce(float value) -
detach
- Specified by:
detach
in interfaceReplacedElement
- Overrides:
detach
in classAbstractFormField
-
getBox
-
getBaseline
public int getBaseline() -
hasBaseline
public boolean hasBaseline()
-