|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.pkg.OdfElement
org.odftoolkit.odfdom.dom.element.OdfStylableElement
org.odftoolkit.odfdom.dom.element.OdfStyleableShapeElement
org.odftoolkit.odfdom.dom.element.draw.DrawShapeElementBase
org.odftoolkit.odfdom.dom.element.draw.DrawGElement
public class DrawGElement
DOM implementation of OpenDocument element draw:g.
Field Summary | |
---|---|
static OdfName |
ELEMENT_NAME
|
Fields inherited from class org.odftoolkit.odfdom.dom.element.OdfStylableElement |
---|
mFamily, mStyleNameAttrib |
Fields inherited from class org.apache.xerces.dom.ElementNSImpl |
---|
localName, namespaceURI |
Fields inherited from class org.apache.xerces.dom.ElementImpl |
---|
attributes, name |
Fields inherited from class org.apache.xerces.dom.ParentNode |
---|
firstChild, fNodeListCache, ownerDocument |
Fields inherited from class org.apache.xerces.dom.ChildNode |
---|
nextSibling, previousSibling |
Fields inherited from interface org.w3c.dom.TypeInfo |
---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
Constructor Summary | |
---|---|
DrawGElement(OdfFileDom ownerDoc)
Create the instance of DrawGElement |
Method Summary | |
---|---|
void |
accept(ElementVisitor visitor)
Accept an visitor instance to allow the visitor to do some operations. |
String |
getDrawCaptionIdAttribute()
Receives the value of the ODFDOM attribute representation DrawCaptionIdAttribute , See draw:caption-id |
OdfName |
getOdfName()
Get the element name |
String |
getSvgYAttribute()
Receives the value of the ODFDOM attribute representation SvgYAttribute , See svg:y |
Dr3dSceneElement |
newDr3dSceneElement()
Create child element dr3d:scene. |
DrawAElement |
newDrawAElement(String xlinkHrefValue,
String xlinkTypeValue)
Create child element draw:a. |
DrawCaptionElement |
newDrawCaptionElement()
Create child element draw:caption. |
DrawCircleElement |
newDrawCircleElement()
Create child element draw:circle. |
DrawConnectorElement |
newDrawConnectorElement(int svgViewBoxValue)
Create child element draw:connector. |
DrawControlElement |
newDrawControlElement(String drawControlValue)
Create child element draw:control. |
DrawCustomShapeElement |
newDrawCustomShapeElement()
Create child element draw:custom-shape. |
DrawEllipseElement |
newDrawEllipseElement()
Create child element draw:ellipse. |
DrawFrameElement |
newDrawFrameElement()
Create child element draw:frame. |
DrawGElement |
newDrawGElement()
Create child element draw:g. |
DrawGluePointElement |
newDrawGluePointElement(String drawEscapeDirectionValue,
String drawIdValue,
String svgXValue,
String svgYValue)
Create child element draw:glue-point. |
DrawLineElement |
newDrawLineElement(String svgX1Value,
String svgX2Value,
String svgY1Value,
String svgY2Value)
Create child element draw:line. |
DrawMeasureElement |
newDrawMeasureElement(String svgX1Value,
String svgX2Value,
String svgY1Value,
String svgY2Value)
Create child element draw:measure. |
DrawPageThumbnailElement |
newDrawPageThumbnailElement()
Create child element draw:page-thumbnail. |
DrawPathElement |
newDrawPathElement(String svgDValue,
int svgViewBoxValue)
Create child element draw:path. |
DrawPolygonElement |
newDrawPolygonElement(String drawPointsValue,
int svgViewBoxValue)
Create child element draw:polygon. |
DrawPolylineElement |
newDrawPolylineElement(String drawPointsValue,
int svgViewBoxValue)
Create child element draw:polyline. |
DrawRectElement |
newDrawRectElement()
Create child element draw:rect. |
DrawRegularPolygonElement |
newDrawRegularPolygonElement(boolean drawConcaveValue,
int drawCornersValue)
Create child element draw:regular-polygon. |
OfficeEventListenersElement |
newOfficeEventListenersElement()
Create child element office:event-listeners. |
SvgDescElement |
newSvgDescElement()
Create child element svg:desc. |
SvgTitleElement |
newSvgTitleElement()
Create child element svg:title. |
void |
setDrawCaptionIdAttribute(String drawCaptionIdValue)
Sets the value of ODFDOM attribute representation DrawCaptionIdAttribute , See draw:caption-id |
void |
setSvgYAttribute(String svgYValue)
Sets the value of ODFDOM attribute representation SvgYAttribute , See svg:y |
Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfStyleableShapeElement |
---|
adjustStyleNameAttrib, setAttributeNodeNS, setAttributeNS |
Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfStylableElement |
---|
getAutomaticStyle, getAutomaticStyles, getDocumentStyle, getOrCreateUnqiueAutomaticStyle, getProperties, getProperty, getStrictProperties, getStyleFamily, getStyleName, hasAutomaticStyle, hasDocumentStyle, hasProperty, onInsertNode, onRemoveNode, removeProperty, reuseDocumentStyle, setDocumentStyle, setProperties, setProperty, setStyleName |
Methods inherited from class org.odftoolkit.odfdom.pkg.OdfElement |
---|
cloneNode, cloneOdfElement, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, hasOdfAttribute, insertBefore, onInsertNode, onRemoveNode, removeChild, replaceChild, setOdfAttribute, setOdfAttributeValue, toString |
Methods inherited from class org.apache.xerces.dom.ElementNSImpl |
---|
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues |
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.ChildNode |
---|
getNextSibling, getParentNode, getPreviousSibling |
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 class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
Field Detail |
---|
public static final OdfName ELEMENT_NAME
Constructor Detail |
---|
public DrawGElement(OdfFileDom ownerDoc)
DrawGElement
ownerDoc
- The type is OdfFileDom
Method Detail |
---|
public OdfName getOdfName()
getOdfName
in class OdfElement
OdfName
the name of element draw:g.public String getDrawCaptionIdAttribute()
DrawCaptionIdAttribute
, See draw:caption-id
String
, the value or null
, if the attribute is not set and no default value defined.public void setDrawCaptionIdAttribute(String drawCaptionIdValue)
DrawCaptionIdAttribute
, See draw:caption-id
drawCaptionIdValue
- The type is String
public String getSvgYAttribute()
SvgYAttribute
, See svg:y
String
, the value or null
, if the attribute is not set and no default value defined.public void setSvgYAttribute(String svgYValue)
SvgYAttribute
, See svg:y
svgYValue
- The type is String
public Dr3dSceneElement newDr3dSceneElement()
public DrawAElement newDrawAElement(String xlinkHrefValue, String xlinkTypeValue)
xlinkHrefValue
- the String
value of XlinkHrefAttribute
, see xlink:href at specificationxlinkTypeValue
- the String
value of XlinkTypeAttribute
, see xlink:type at specification
Child element is new in Odf 1.2
public DrawCaptionElement newDrawCaptionElement()
public DrawCircleElement newDrawCircleElement()
public DrawConnectorElement newDrawConnectorElement(int svgViewBoxValue)
svgViewBoxValue
- the Integer
value of SvgViewBoxAttribute
, see svg:viewBox at specification
public DrawControlElement newDrawControlElement(String drawControlValue)
drawControlValue
- the String
value of DrawControlAttribute
, see draw:control at specification
public DrawCustomShapeElement newDrawCustomShapeElement()
public DrawEllipseElement newDrawEllipseElement()
public DrawFrameElement newDrawFrameElement()
public DrawGElement newDrawGElement()
public DrawGluePointElement newDrawGluePointElement(String drawEscapeDirectionValue, String drawIdValue, String svgXValue, String svgYValue)
drawEscapeDirectionValue
- the String
value of DrawEscapeDirectionAttribute
, see draw:escape-direction at specificationdrawIdValue
- the String
value of DrawIdAttribute
, see draw:id at specificationsvgXValue
- the String
value of SvgXAttribute
, see svg:x at specificationsvgYValue
- the String
value of SvgYAttribute
, see svg:y at specification
public DrawLineElement newDrawLineElement(String svgX1Value, String svgX2Value, String svgY1Value, String svgY2Value)
svgX1Value
- the String
value of SvgX1Attribute
, see svg:x1 at specificationsvgX2Value
- the String
value of SvgX2Attribute
, see svg:x2 at specificationsvgY1Value
- the String
value of SvgY1Attribute
, see svg:y1 at specificationsvgY2Value
- the String
value of SvgY2Attribute
, see svg:y2 at specification
public DrawMeasureElement newDrawMeasureElement(String svgX1Value, String svgX2Value, String svgY1Value, String svgY2Value)
svgX1Value
- the String
value of SvgX1Attribute
, see svg:x1 at specificationsvgX2Value
- the String
value of SvgX2Attribute
, see svg:x2 at specificationsvgY1Value
- the String
value of SvgY1Attribute
, see svg:y1 at specificationsvgY2Value
- the String
value of SvgY2Attribute
, see svg:y2 at specification
public DrawPageThumbnailElement newDrawPageThumbnailElement()
public DrawPathElement newDrawPathElement(String svgDValue, int svgViewBoxValue)
svgDValue
- the String
value of SvgDAttribute
, see svg:d at specificationsvgViewBoxValue
- the Integer
value of SvgViewBoxAttribute
, see svg:viewBox at specification
public DrawPolygonElement newDrawPolygonElement(String drawPointsValue, int svgViewBoxValue)
drawPointsValue
- the String
value of DrawPointsAttribute
, see draw:points at specificationsvgViewBoxValue
- the Integer
value of SvgViewBoxAttribute
, see svg:viewBox at specification
public DrawPolylineElement newDrawPolylineElement(String drawPointsValue, int svgViewBoxValue)
drawPointsValue
- the String
value of DrawPointsAttribute
, see draw:points at specificationsvgViewBoxValue
- the Integer
value of SvgViewBoxAttribute
, see svg:viewBox at specification
public DrawRectElement newDrawRectElement()
public DrawRegularPolygonElement newDrawRegularPolygonElement(boolean drawConcaveValue, int drawCornersValue)
drawConcaveValue
- the Boolean
value of DrawConcaveAttribute
, see draw:concave at specificationdrawCornersValue
- the Integer
value of DrawCornersAttribute
, see draw:corners at specification
public OfficeEventListenersElement newOfficeEventListenersElement()
public SvgDescElement newSvgDescElement()
public SvgTitleElement newSvgTitleElement()
public void accept(ElementVisitor visitor)
OdfElement
accept
in class OdfElement
visitor
- an instance of DefaultElementVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |