public abstract class AbstractPlaceholderTool extends Tool
Tool.ActivationRequest
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
AbstractPlaceholderTool() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doRenderPlaceholder(Page page) |
BufferedImage |
getPlaceholderImage() |
protected double |
getPlaceholderImageScaleFactor(BufferedImage indicator,
Dimension renderedPageSize) |
protected void |
render(RenderParameters parameters,
boolean isActive)
Renders the Tool's UI onto the given
Graphics2D context using the given
RenderControls . |
void |
setPlaceholderImage(BufferedImage placeholder) |
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getDispatchPriority, getManager, getRenderPriority, handleEditEvent, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, propagatePropertyChange, setActive, setCursor, setEnabled, setManager, setStatusFeedback
public void setPlaceholderImage(BufferedImage placeholder)
public BufferedImage getPlaceholderImage()
protected double getPlaceholderImageScaleFactor(BufferedImage indicator, Dimension renderedPageSize)
protected boolean doRenderPlaceholder(Page page)
protected void render(RenderParameters parameters, boolean isActive)
Tool
Graphics2D
context using the given
RenderControls
.
This render method is called within the context and during the rendering of a single page. The page being rendered is passed to implementors of this method in order to be able to control and influence the page rendering.
Copyright © 2024 levigo holding gmbh. All rights reserved.