@API(type=EXTENDABLE, src=PUBLIC) public abstract class InplaceRendererAdapter extends java.lang.Object implements InplaceRenderer
InplaceRenderer
.
By extending this adapter you are protected if any new methods are added
inside InplaceRenderer
.Constructor and Description |
---|
InplaceRendererAdapter() |
Modifier and Type | Method and Description |
---|---|
CursorType |
getCursorType(AuthorInplaceContext context,
int x,
int y)
Get a cursor to be used when the user hovers with the mouse over this renderer.
|
CursorType |
getCursorType(int x,
int y)
Get a cursor to be used when the user hovers with the mouse over this renderer.
|
java.lang.String |
getDescription() |
java.lang.Object |
getRendererComponent(AuthorInplaceContext context)
Initialize the renderer with the given context and returns the component.
|
RendererLayoutInfo |
getRenderingInfo(AuthorInplaceContext context)
Returns the rendering layout info.
|
java.lang.String |
getTooltipText(AuthorInplaceContext context,
int x,
int y)
Gets a tooltip text to be presented when the cursor is over this renderer.
|
public java.lang.String getDescription()
getDescription
in interface Extension
Extension.getDescription()
public java.lang.Object getRendererComponent(AuthorInplaceContext context)
InplaceRenderer
getRendererComponent
in interface InplaceRenderer
context
- The editing context.InplaceRenderer.getRendererComponent(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext)
public RendererLayoutInfo getRenderingInfo(AuthorInplaceContext context)
InplaceRenderer
getRenderingInfo
in interface InplaceRenderer
context
- The editing context.InplaceRenderer.getRenderingInfo(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext)
public java.lang.String getTooltipText(AuthorInplaceContext context, int x, int y)
InplaceRenderer
getTooltipText
in interface InplaceRenderer
context
- The editing context.x
- The x coordinate relative to the renderer bounds.y
- The y coordinate relative to the renderer bounds.null
if no tooltip.InplaceRenderer.getTooltipText(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, int, int)
public CursorType getCursorType(AuthorInplaceContext context, int x, int y)
InplaceRenderer
getCursorType
in interface InplaceRenderer
context
- The editing context. Useful if the renderer is a more complex one,
like a text field with an associated button and wants to provide different
cursors when the cursor is over the textfield or over the button. In this case
the renderer will have to initialize itself with this context in order to
decide what the cursor is hovering.x
- The x coordinate relative to the renderer bounds.y
- The y coordinate relative to the renderer bounds.null
to let the viewport decide.InplaceRenderer.getCursorType(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, int, int)
public CursorType getCursorType(int x, int y)
InplaceRenderer
InplaceRenderer.getCursorType(AuthorInplaceContext, int, int)
as
you can use the provided context to get additional information.getCursorType
in interface InplaceRenderer
x
- The x coordinate relative to the renderer bounds.y
- The y coordinate relative to the renderer bounds.null
to let the viewport decide.InplaceRenderer.getCursorType(int, int)
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.