@API(type=EXTENDABLE, src=PUBLIC) public abstract class AuthorImageMapDecorator extends AuthorImageDecorator
|Constructor and Description|
Base functionality for the Author Image Map Decorator.
|Modifier and Type||Method and Description|
Check if the node to be painted is part of an image map.
Decorates an image.
public AuthorImageMapDecorator(EditImageMapCore imageMapCore)
imageMapCore- The image map core.
protected abstract boolean isNodeOfInterest(AuthorNode node, SupportedFrameworks framework)
node- The current node.
framework- The current framework.
trueif the node is part of an image map and we shall paint something over the image.
public void paint(Graphics g, int x, int y, int imageWidth, int imageHeight, Rectangle originalSize, AuthorNode element, AuthorAccess authorAccess, boolean wasAnnotated)
g- The graphics.
x- The X of the area to be painted. It is the top left corner of the image.
y- The Y of the area to be painted. It is the top left corner of the image.
imageWidth- The image width.
imageHeight- The image height.
originalSize- The original size of the image.
element- The element to be painted.
authorAccess- The author access.
truethe image was annotated with previous dimensions.
AuthorImageDecorator.paint(ro.sync.exml.view.graphics.Graphics, int, int, int, int, Rectangle, AuthorNode, ro.sync.ecss.extensions.api.AuthorAccess, boolean)
© Copyright Syncro Soft SRL 2002 - 2020. All rights reserved.