org.odftoolkit.odfdom.dom.element.draw
Class OdfTextBoxElement
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.odftoolkit.odfdom.dom.element.OdfElement
org.odftoolkit.odfdom.dom.element.draw.OdfTextBoxElement
- All Implemented Interfaces:
- Serializable, Cloneable, Element, EventTarget, Node, NodeList, TypeInfo
- Direct Known Subclasses:
- OdfTextBox
public abstract class OdfTextBoxElement
- extends OdfElement
DOM implementation of OpenDocument element draw:text-box.
- See Also:
- Serialized Form
| Fields inherited from class org.apache.xerces.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
|
Method Summary |
OdfAlphabeticalIndexElement |
createAlphabeticalIndexElement(String name)
Create child element text:alphabetical-index. |
OdfBibliographyElement |
createBibliographyElement(String name)
Create child element text:bibliography. |
OdfCaptionElement |
createCaptionElement()
Create child element draw:caption. |
OdfCircleElement |
createCircleElement()
Create child element draw:circle. |
OdfConnectorElement |
createConnectorElement(Integer viewBox)
Create child element draw:connector. |
OdfControlElement |
createControlElement(OdfId control)
Create child element draw:control. |
OdfCustomShapeElement |
createCustomShapeElement()
Create child element draw:custom-shape. |
OdfHyperlinkElement |
createdrawHyperlinkElement(OdfAnyURI href)
Create child element draw:a. |
OdfMeasureElement |
createdrawMeasureElement(OdfLength x1,
OdfLength y1,
OdfLength x2,
OdfLength y2)
Create child element draw:measure. |
OdfEllipseElement |
createEllipseElement()
Create child element draw:ellipse. |
OdfFrameElement |
createFrameElement()
Create child element draw:frame. |
OdfGroupElement |
createGroupElement()
Create child element draw:g. |
OdfHeadingElement |
createHeadingElement(OdfPositiveInteger outlineLevel)
Create child element text:h. |
OdfIllustrationIndexElement |
createIllustrationIndexElement(String name)
Create child element text:illustration-index. |
OdfLineElement |
createLineElement(OdfLength x1,
OdfLength y1,
OdfLength x2,
OdfLength y2)
Create child element draw:line. |
OdfListElement |
createListElement()
Create child element text:list. |
OdfNumberedParagraphElement |
createNumberedParagraphElement(String listId)
Create child element text:numbered-paragraph. |
OdfObjectIndexElement |
createObjectIndexElement(String name)
Create child element text:object-index. |
OdfPageThumbnailElement |
createPageThumbnailElement()
Create child element draw:page-thumbnail. |
OdfParagraphElement |
createParagraphElement()
Create child element text:p. |
OdfPathElement |
createPathElement(String d,
Integer viewBox)
Create child element draw:path. |
OdfPolygonElement |
createPolygonElement(String points,
Integer viewBox)
Create child element draw:polygon. |
OdfPolylineElement |
createPolylineElement(String points,
Integer viewBox)
Create child element draw:polyline. |
OdfRectElement |
createRectElement()
Create child element draw:rect. |
OdfRegularPolygonElement |
createRegularPolygonElement(OdfBoolean concave,
OdfPositiveInteger corners)
Create child element draw:regular-polygon. |
OdfRegularPolygonElement |
createRegularPolygonElement(OdfPositiveInteger corners,
OdfBoolean concave)
Create child element draw:regular-polygon. |
OdfSceneElement |
createSceneElement()
Create child element dr3d:scene. |
OdfSectionElement |
createSectionElement(OdfSectionDisplayType display,
String condition,
String name)
Create child element text:section. |
OdfSectionElement |
createSectionElement(String name,
OdfSectionDisplayType display)
Create child element text:section. |
OdfSoftPageBreakElement |
createSoftPageBreakElement()
Create child element text:soft-page-break. |
OdfTableElement |
createTableElement()
Create child element table:table. |
OdfTableIndexElement |
createTableIndexElement(String name)
Create child element text:table-index. |
OdfTableOfContentElement |
createTableOfContentElement(String name)
Create child element text:table-of-content. |
OdfUserIndexElement |
createUserIndexElement(String name)
Create child element text:user-index. |
String |
getChainNextName()
Get value of attribute draw:chain-next-name. |
OdfNonNegativeLength |
getCornerRadius()
Get value of attribute draw:corner-radius. |
String |
getId()
Get value of attribute text:id. |
OdfLength |
getMaxHeight()
Get value of attribute fo:max-height. |
OdfLength |
getMaxWidth()
Get value of attribute fo:max-width. |
OdfLength |
getMinHeight()
Get value of attribute fo:min-height. |
OdfLength |
getMinWidth()
Get value of attribute fo:min-width. |
OdfName |
getOdfName()
Get the element name |
OdfId |
getXmlid()
Get value of attribute xml:id. |
void |
setChainNextName(String chainNextName)
Set value of attribute draw:chain-next-name. |
void |
setCornerRadius(OdfNonNegativeLength cornerRadius)
Set value of attribute draw:corner-radius. |
void |
setId(String id)
Set value of attribute text:id. |
void |
setMaxHeight(OdfLength maxHeight)
Set value of attribute fo:max-height. |
void |
setMaxWidth(OdfLength maxWidth)
Set value of attribute fo:max-width. |
void |
setMinHeight(OdfLength minHeight)
Set value of attribute fo:min-height. |
void |
setMinWidth(OdfLength minWidth)
Set value of attribute fo:min-width. |
void |
setXmlid(OdfId xmlid)
Set value of attribute xml:id. |
| Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfElement |
cloneNode, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getParentAs, hasOdfAttribute, insertBefore, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, removeChild, replaceChild, setOdfAttribute, toString |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
| Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren |
| Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData |
ELEMENT_NAME
public static final OdfName ELEMENT_NAME
OdfTextBoxElement
public OdfTextBoxElement(OdfFileDom aOwnerDoc)
- Create the instance of OdfTextBoxElement
- Parameters:
aOwnerDoc - The type is OdfFileDom
getOdfName
public OdfName getOdfName()
- Get the element name
- Specified by:
getOdfName in class OdfElement
- Returns:
- return the name of element draw:text-box.
getChainNextName
public String getChainNextName()
- Get value of attribute draw:chain-next-name.
- Returns:
- return the attribute which type is String
setChainNextName
public void setChainNextName(String chainNextName)
- Set value of attribute draw:chain-next-name.
- Parameters:
chainNextName - the attribute's type is String
getCornerRadius
public OdfNonNegativeLength getCornerRadius()
- Get value of attribute draw:corner-radius.
- Returns:
- return the attribute which type is OdfNonNegativeLength
setCornerRadius
public void setCornerRadius(OdfNonNegativeLength cornerRadius)
- Set value of attribute draw:corner-radius.
- Parameters:
cornerRadius - the attribute's type is OdfNonNegativeLength
getMinHeight
public OdfLength getMinHeight()
- Get value of attribute fo:min-height.
- Returns:
- return the attribute which type is OdfLength
setMinHeight
public void setMinHeight(OdfLength minHeight)
- Set value of attribute fo:min-height.
- Parameters:
minHeight - the attribute's type is OdfLength
getMinWidth
public OdfLength getMinWidth()
- Get value of attribute fo:min-width.
- Returns:
- return the attribute which type is OdfLength
setMinWidth
public void setMinWidth(OdfLength minWidth)
- Set value of attribute fo:min-width.
- Parameters:
minWidth - the attribute's type is OdfLength
getMaxHeight
public OdfLength getMaxHeight()
- Get value of attribute fo:max-height.
- Returns:
- return the attribute which type is OdfLength
setMaxHeight
public void setMaxHeight(OdfLength maxHeight)
- Set value of attribute fo:max-height.
- Parameters:
maxHeight - the attribute's type is OdfLength
getMaxWidth
public OdfLength getMaxWidth()
- Get value of attribute fo:max-width.
- Returns:
- return the attribute which type is OdfLength
setMaxWidth
public void setMaxWidth(OdfLength maxWidth)
- Set value of attribute fo:max-width.
- Parameters:
maxWidth - the attribute's type is OdfLength
getId
public String getId()
- Get value of attribute text:id.
- Returns:
- return the attribute which type is String
setId
public void setId(String id)
- Set value of attribute text:id.
- Parameters:
id - the attribute's type is String
getXmlid
public OdfId getXmlid()
- Get value of attribute xml:id.
- Returns:
- return the attribute which type is OdfId
setXmlid
public void setXmlid(OdfId xmlid)
- Set value of attribute xml:id.
- Parameters:
xmlid - the attribute's type is OdfId
createHeadingElement
public OdfHeadingElement createHeadingElement(OdfPositiveInteger outlineLevel)
- Create child element text:h.
- Parameters:
outlineLevel - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfPositiveInteger
- Returns:
- return the element text:h
createParagraphElement
public OdfParagraphElement createParagraphElement()
- Create child element text:p.
- Returns:
- return the element text:p
createListElement
public OdfListElement createListElement()
- Create child element text:list.
- Returns:
- return the element text:list
createNumberedParagraphElement
public OdfNumberedParagraphElement createNumberedParagraphElement(String listId)
- Create child element text:numbered-paragraph.
- Parameters:
listId - String
- Returns:
- return the element text:numbered-paragraph
createTableElement
public OdfTableElement createTableElement()
- Create child element table:table.
- Returns:
- return the element table:table
createSectionElement
public OdfSectionElement createSectionElement(String name,
OdfSectionDisplayType display)
- Create child element text:section.
- Parameters:
name - Stringdisplay - the attribute's type is OdfSectionDisplayType, see text:section-display at specification
- Returns:
- return the element text:section
createSectionElement
public OdfSectionElement createSectionElement(OdfSectionDisplayType display,
String condition,
String name)
- Create child element text:section.
- Parameters:
display - the attribute's type is OdfSectionDisplayType, see text:section-display at specificationcondition - Stringname - String
- Returns:
- return the element text:section
createSoftPageBreakElement
public OdfSoftPageBreakElement createSoftPageBreakElement()
- Create child element text:soft-page-break.
- Returns:
- return the element text:soft-page-break
createTableOfContentElement
public OdfTableOfContentElement createTableOfContentElement(String name)
- Create child element text:table-of-content.
- Parameters:
name - String
- Returns:
- return the element text:table-of-content
createIllustrationIndexElement
public OdfIllustrationIndexElement createIllustrationIndexElement(String name)
- Create child element text:illustration-index.
- Parameters:
name - String
- Returns:
- return the element text:illustration-index
createTableIndexElement
public OdfTableIndexElement createTableIndexElement(String name)
- Create child element text:table-index.
- Parameters:
name - String
- Returns:
- return the element text:table-index
createObjectIndexElement
public OdfObjectIndexElement createObjectIndexElement(String name)
- Create child element text:object-index.
- Parameters:
name - String
- Returns:
- return the element text:object-index
createUserIndexElement
public OdfUserIndexElement createUserIndexElement(String name)
- Create child element text:user-index.
- Parameters:
name - String
- Returns:
- return the element text:user-index
createAlphabeticalIndexElement
public OdfAlphabeticalIndexElement createAlphabeticalIndexElement(String name)
- Create child element text:alphabetical-index.
- Parameters:
name - String
- Returns:
- return the element text:alphabetical-index
createBibliographyElement
public OdfBibliographyElement createBibliographyElement(String name)
- Create child element text:bibliography.
- Parameters:
name - String
- Returns:
- return the element text:bibliography
createRectElement
public OdfRectElement createRectElement()
- Create child element draw:rect.
- Returns:
- return the element draw:rect
createLineElement
public OdfLineElement createLineElement(OdfLength x1,
OdfLength y1,
OdfLength x2,
OdfLength y2)
- Create child element draw:line.
- Parameters:
x1 - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLengthy1 - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLengthx2 - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLengthy2 - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLength
- Returns:
- return the element draw:line
createPolylineElement
public OdfPolylineElement createPolylineElement(String points,
Integer viewBox)
- Create child element draw:polyline.
- Parameters:
points - StringviewBox - Integer
- Returns:
- return the element draw:polyline
createPolygonElement
public OdfPolygonElement createPolygonElement(String points,
Integer viewBox)
- Create child element draw:polygon.
- Parameters:
points - StringviewBox - Integer
- Returns:
- return the element draw:polygon
createRegularPolygonElement
public OdfRegularPolygonElement createRegularPolygonElement(OdfPositiveInteger corners,
OdfBoolean concave)
- Create child element draw:regular-polygon.
- Parameters:
corners - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfPositiveIntegerconcave - the attribute's type is Boolean
- Returns:
- return the element draw:regular-polygon
createRegularPolygonElement
public OdfRegularPolygonElement createRegularPolygonElement(OdfBoolean concave,
OdfPositiveInteger corners)
- Create child element draw:regular-polygon.
- Parameters:
concave - the attribute's type is Booleancorners - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfPositiveInteger
- Returns:
- return the element draw:regular-polygon
createPathElement
public OdfPathElement createPathElement(String d,
Integer viewBox)
- Create child element draw:path.
- Parameters:
d - StringviewBox - Integer
- Returns:
- return the element draw:path
createCircleElement
public OdfCircleElement createCircleElement()
- Create child element draw:circle.
- Returns:
- return the element draw:circle
createEllipseElement
public OdfEllipseElement createEllipseElement()
- Create child element draw:ellipse.
- Returns:
- return the element draw:ellipse
createGroupElement
public OdfGroupElement createGroupElement()
- Create child element draw:g.
- Returns:
- return the element draw:g
createPageThumbnailElement
public OdfPageThumbnailElement createPageThumbnailElement()
- Create child element draw:page-thumbnail.
- Returns:
- return the element draw:page-thumbnail
createFrameElement
public OdfFrameElement createFrameElement()
- Create child element draw:frame.
- Returns:
- return the element draw:frame
createdrawMeasureElement
public OdfMeasureElement createdrawMeasureElement(OdfLength x1,
OdfLength y1,
OdfLength x2,
OdfLength y2)
- Create child element draw:measure.
- Parameters:
x1 - the attribute's type is Stringy1 - the attribute's type is Stringx2 - the attribute's type is Stringy2 - the attribute's type is String
- Returns:
- return the element draw:measure
createCaptionElement
public OdfCaptionElement createCaptionElement()
- Create child element draw:caption.
- Returns:
- return the element draw:caption
createConnectorElement
public OdfConnectorElement createConnectorElement(Integer viewBox)
- Create child element draw:connector.
- Parameters:
viewBox - Integer
- Returns:
- return the element draw:connector
createControlElement
public OdfControlElement createControlElement(OdfId control)
- Create child element draw:control.
- Parameters:
control - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfId
- Returns:
- return the element draw:control
createSceneElement
public OdfSceneElement createSceneElement()
- Create child element dr3d:scene.
- Returns:
- return the element dr3d:scene
createCustomShapeElement
public OdfCustomShapeElement createCustomShapeElement()
- Create child element draw:custom-shape.
- Returns:
- return the element draw:custom-shape
createdrawHyperlinkElement
public OdfHyperlinkElement createdrawHyperlinkElement(OdfAnyURI href)
- Create child element draw:a.
- Parameters:
href - the attribute's type is URI
- Returns:
- return the element draw:a
Copyright © 2009. All Rights Reserved.