Interface NewShapeDescriptor
-
- All Known Implementing Classes:
DITAUpdateImageMapOperation.DITANewShapeDescriptor
,XHTMLUpdateImageMapOperation.XHTMLNewShapeDescriptor
@API(type=EXTENDABLE, src=PUBLIC) public interface NewShapeDescriptor
Descriptor for new shapes that were received from the JavaScript-base image map editor in Web Author.- Since:
- 25.0
-
-
Method Summary
All Methods Instance Methods Abstract 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
java.util.Optional<java.lang.String> serializeToXml()
- Returns:
- The XML serialization of the new shape in DITA.
-
mergeIntoOriginalShape
void mergeIntoOriginalShape(AuthorDocumentController controller, AuthorElement shapeElement) throws javax.swing.text.BadLocationException
Merge this new shape into the exiting one.- Parameters:
controller
- The document controller.shapeElement
- The existing shape element.- Throws:
javax.swing.text.BadLocationException
-
getOriginalLayer
java.util.Optional<java.lang.Integer> getOriginalLayer()
- Returns:
- Returns the originalLayer.
-
-