public class Inline extends FlowObjectWithElements implements InlineElement
Modifier and Type | Class and Description |
---|---|
static class |
Inline.Factory
This factory creates some special Inline-Objects.
|
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Constructor and Description |
---|
Inline()
Creates a new empty inline.
|
Inline(BlockElement element)
Creates a new inline and adds an element.
|
Inline(boolean collapseWhiteSpace)
Creates a new empty inline and sets white-space-collapse.
|
Inline(InlineElement element)
Creates a new inline and adds an element.
|
Inline(java.lang.String text)
Creates a new inline with a simple text as content.
|
Inline(java.lang.String text,
boolean collapseWhiteSpace)
Creates a new inline with a simple text as content.
|
Inline(java.lang.String text,
java.awt.Color color)
Creates a new inline with a simple text as content.
|
Modifier and Type | Method and Description |
---|---|
Inline |
add(BlockElement element)
Adds an formatting object (that is a block-group-member) to this FO
at end.
|
Inline |
add(Footnote footnote)
Adds an footnote to this inline at end.
|
Inline |
add(InlineElement element)
Adds an formatting object (that is an inline-group-member) to this FO
at end.
|
Inline |
add(int idx,
BlockElement element)
Adds an formatting object (that is a block-group-member) to this FO
at the given index.
|
Inline |
add(int idx,
InlineElement element)
Adds an formatting object (that is an inline-group-member) to this FO
at the given index.
|
Inline |
add(int idx,
java.lang.String text)
Adds some text (PCdata) to this FO at the given index.
|
Inline |
add(java.lang.String text)
Adds some text (PCdata) to this FO.
|
Inline |
addBasicLink(java.lang.String url)
Adds a basic link to this inline.
|
Inline |
addBasicLink(java.lang.String text,
java.lang.String externalDestination)
Adds a basic link to this inline.
|
Accessibility |
getAccessibility()
Gets the accessibilty of this fo.
|
Background |
getBackground()
Gets the background of this fo.
|
Border |
getBorder()
Gets the border of this fo.
|
java.awt.Color |
getColor()
Gets the (foreground) color of this inline.
|
Padding |
getPadding()
Gets the padding of this fo.
|
RelativePosition |
getRelativePosition()
Gets the relative position of this fo.
|
Values.VerticalAlignment |
getVerticalAlignment()
Gets the vertical alignment.
|
boolean |
hasBorder()
Returns true if at least one border attribute is set.
|
boolean |
isWhiteSpaceCollapse() |
void |
newLine()
Deprecated.
Use a new Block or call Block.newLine
|
void |
setAccessibility(Accessibility access)
Sets the accessibility of this fo.
|
void |
setBackground(Background bg)
Sets the background of this fo.
|
void |
setBackgroundColor(java.awt.Color c)
Sets the background-color of this inline.
|
void |
setBlink(boolean b)
Sets, if this inline is blinking.
|
void |
setBold(boolean b)
Sets, if this inline is bold.
|
void |
setBorder(Border border)
Sets the border of this fo.
|
void |
setColor(java.awt.Color c)
Sets the foreground-color of this inline.
|
void |
setItalic(boolean b)
Sets, if this inline is italic.
|
void |
setLetterSpacing(Measure space) |
void |
setLineThrough(boolean b)
Sets, if this inline has a line through.
|
void |
setOverline(boolean b)
Sets, if this inline is overlined.
|
void |
setPadding(Padding padding)
Sets the padding of this fo.
|
void |
setRelativePosition(RelativePosition pos)
Sets the relative position of this fo.
|
void |
setUnderline(boolean b)
Sets, if this inline is underlined.
|
void |
setVerticalAlignment(Measure vAlign) |
void |
setVerticalAlignment(Values.VerticalAlignment va)
Sets the vertical alignment.
|
void |
setWhiteSpaceCollapse(boolean b) |
add, add, add, add, addAllImpl, addAllUnsafe, addAllUnsafe, addElement, addElement, addElements, addElements, addUnsafe, addUnsafe, clone, firstElement, getElements, isEmpty, lastElement, remove, remove, removeAll, removeElement, removeElement, removeLast, replaceElement, setElement
cloned, clonedList, createUniqueID, doGetAttribute, doSetAttribute, elementCount, get, getAbsolutePosition, getAttributeMap, getDefinedAttributes, getDocument, getFont, getID, getLanguage, getLogger, getMargin, getMeasureValue, getObjectValue, getObjectValue, getObjectValue, getObjectValue, getOrphans, getParentFO, getWidows, hasID, hasPadding, isHyphenation, setAbsolutePosition, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setFont, setHyphenation, setID, setLanguage, setLanguage, setMargin, setOrphans, setWidows
getDefaultMapType, setDefaultMapType
addAttributeChangeListener, clearEqualAttributes, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, contains, copyAttributes, createID, findFirstNodeWithText, findNode, findNodesWithText, fire, fireSaxEvents, getAttrAsBoolean, getAttrAsInteger, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getContentText, getDefinedAttributes, getElements, getElements, getElements, getFirstElement, getIndex, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getParent, getParent, getParent, getParentOrThis, getQName, getRoot, hasEqualAttrs, indexOf, liftInheritedAttribute, removeAttributeChangeListener, setAttribute, setAttributes, setAttrIfNotNull, setEnableAttributeChangeEvent, setNamespace, setParent, setQName, setUndefinedAttributes, writeTo, writeTo, writeTo, writeTo
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeChangeListener, addElement, addElement, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, fireSaxEvents, firstElement, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getDefinedAttributes, getElements, getElements, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getQName, getRoot, indexOf, isEmpty, lastElement, removeAttributeChangeListener, removeElement, removeElement, replaceElement, setAttribute, setAttributes, setElement, setNamespace
clone, getParent, setParent, writeTo
public Inline()
public Inline(java.lang.String text)
text
- Simple text.public Inline(java.lang.String text, java.awt.Color color)
text
- Simple text.color
- Color.public Inline(InlineElement element)
element
- Element.public Inline(BlockElement element)
element
- Element.public Inline(java.lang.String text, boolean collapseWhiteSpace)
text
- Simple text.collapseWhiteSpace
- Do collapse white Space (true by default).public Inline(boolean collapseWhiteSpace)
collapseWhiteSpace
- Do collapse white Space (true by default).public void newLine()
public void setWhiteSpaceCollapse(boolean b)
public boolean isWhiteSpaceCollapse()
public void setColor(java.awt.Color c)
c
- Foreground-Color.public java.awt.Color getColor()
public void setBackgroundColor(java.awt.Color c)
c
- Background-Color.public void setUnderline(boolean b)
b
- true, if underlined.public void setLineThrough(boolean b)
b
- true, if has a line-through.public void setOverline(boolean b)
b
- true, if overlined.public void setBlink(boolean b)
b
- true, if blinking.public void setItalic(boolean b)
b
- true, if italic.public void setBold(boolean b)
b
- true, if bold.public void setVerticalAlignment(Values.VerticalAlignment va)
va
- Vertical Alignment (Values.V_ALIGN_*).public void setVerticalAlignment(Measure vAlign)
public void setLetterSpacing(Measure space)
public Values.VerticalAlignment getVerticalAlignment()
public Inline add(InlineElement element)
element
- FormattingObject.public Inline add(BlockElement element)
element
- FormattingObject.public Inline add(Footnote footnote)
footnote
- Footnote.public Inline add(java.lang.String text)
text
- Some text.public Inline add(int idx, InlineElement element)
idx
- Index.element
- FormattingObject.public Inline add(int idx, BlockElement element)
idx
- Index.element
- FormattingObject.public Inline add(int idx, java.lang.String text)
idx
- Index.text
- Some text.public Inline addBasicLink(java.lang.String text, java.lang.String externalDestination)
text
- text of link.externalDestination
- External destination of link.public Inline addBasicLink(java.lang.String url)
url
- URL of link (URL is text and external destination).public Padding getPadding()
getPadding
in class FormattingObject
public void setPadding(Padding padding)
setPadding
in class FormattingObject
padding
- Padding.public boolean hasBorder()
hasBorder
in class FormattingObject
public Border getBorder()
getBorder
in class FormattingObject
public void setBorder(Border border)
setBorder
in class FormattingObject
border
- Border.public Background getBackground()
getBackground
in class FormattingObject
public void setBackground(Background bg)
setBackground
in class FormattingObject
bg
- Background.public Accessibility getAccessibility()
getAccessibility
in class FormattingObject
public void setAccessibility(Accessibility access)
setAccessibility
in class FormattingObject
access
- Accessibility.public RelativePosition getRelativePosition()
getRelativePosition
in class FormattingObject
public void setRelativePosition(RelativePosition pos)
setRelativePosition
in class FormattingObject
pos
- RelativePosition.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.