Package ro.sync.ecss.extensions.dita
Class DITAUpdateImageMapOperation.DITANewShapeDescriptor
- java.lang.Object
-
- ro.sync.ecss.extensions.dita.DITAUpdateImageMapOperation.DITANewShapeDescriptor
-
- All Implemented Interfaces:
NewShapeDescriptor
- Enclosing class:
- DITAUpdateImageMapOperation
public static class DITAUpdateImageMapOperation.DITANewShapeDescriptor extends java.lang.Object implements NewShapeDescriptor
Descriptor of a shape that was added client-side.
-
-
Constructor Summary
Constructors Constructor Description DITANewShapeDescriptor(org.w3c.dom.Element elem)
Descriptor of a shape that was added client-side.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Integer>
getOriginalLayer()
void
mergeIntoOriginalShape(AuthorDocumentController controller, AuthorElement shapeElement)
Merge this new shape into the exiting one.java.util.Optional<java.lang.String>
serializeToXml()
-
-
-
Method Detail
-
serializeToXml
public java.util.Optional<java.lang.String> serializeToXml()
- Specified by:
serializeToXml
in interfaceNewShapeDescriptor
- Returns:
- The XML serialization of the new shape in DITA.
- See Also:
NewShapeDescriptor.serializeToXml()
-
mergeIntoOriginalShape
public void mergeIntoOriginalShape(AuthorDocumentController controller, AuthorElement shapeElement) throws javax.swing.text.BadLocationException
Description copied from interface:NewShapeDescriptor
Merge this new shape into the exiting one.- Specified by:
mergeIntoOriginalShape
in interfaceNewShapeDescriptor
- Parameters:
controller
- The document controller.shapeElement
- The existing shape element.- Throws:
javax.swing.text.BadLocationException
- See Also:
NewShapeDescriptor.mergeIntoOriginalShape(ro.sync.ecss.extensions.api.AuthorDocumentController, ro.sync.ecss.extensions.api.node.AuthorElement)
-
getOriginalLayer
public java.util.Optional<java.lang.Integer> getOriginalLayer()
- Specified by:
getOriginalLayer
in interfaceNewShapeDescriptor
- Returns:
- Returns the originalLayer.
- See Also:
NewShapeDescriptor.getOriginalLayer()
-
-