public abstract class CefRenderHandlerAdapter extends java.lang.Object implements CefRenderHandler
| Constructor and Description |
|---|
CefRenderHandlerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getScreenInfo(CefBrowser browser,
CefScreenInfo screenInfo)
Retrieve the screen info.
|
java.awt.Point |
getScreenPoint(CefBrowser browser,
java.awt.Point viewPoint)
Retrieve the screen point for the specified view point.
|
java.awt.Rectangle |
getViewRect(CefBrowser browser)
Retrieve the view rectangle.
|
boolean |
onCursorChange(CefBrowser browser,
int cursorType)
Handle cursor changes.
|
void |
onPaint(CefBrowser browser,
boolean popup,
java.awt.Rectangle[] dirtyRects,
java.nio.ByteBuffer buffer,
int width,
int height)
Handle painting.
|
void |
onPopupShow(CefBrowser browser,
boolean show)
Show or hide the popup window.
|
void |
onPopupSize(CefBrowser browser,
java.awt.Rectangle size)
Size the popup window.
|
boolean |
startDragging(CefBrowser browser,
CefDragData dragData,
int mask,
int x,
int y)
Called when the user starts dragging content in the web view.
|
void |
updateDragCursor(CefBrowser browser,
int operation)
Called when the web view wants to update the mouse cursor during a
drag & drop operation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddOnPaintListener, removeOnPaintListener, setOnPaintListenerpublic boolean getScreenInfo(CefBrowser browser, CefScreenInfo screenInfo)
CefRenderHandlergetScreenInfo in interface CefRenderHandlerbrowser - The browser generating the event.screenInfo - The screenInfopublic java.awt.Point getScreenPoint(CefBrowser browser, java.awt.Point viewPoint)
CefRenderHandlergetScreenPoint in interface CefRenderHandlerbrowser - The browser generating the event.viewPoint - The point in the view.public java.awt.Rectangle getViewRect(CefBrowser browser)
CefRenderHandlergetViewRect in interface CefRenderHandlerbrowser - The browser generating the event.public boolean onCursorChange(CefBrowser browser, int cursorType)
CefRenderHandleronCursorChange in interface CefRenderHandlerbrowser - The browser generating the event.cursorType - The new cursor type.public void onPaint(CefBrowser browser, boolean popup, java.awt.Rectangle[] dirtyRects, java.nio.ByteBuffer buffer, int width, int height)
CefRenderHandleronPaint in interface CefRenderHandlerbrowser - The browser generating the event.popup - True if painting a popup window.dirtyRects - Array of dirty regions.buffer - Pixel buffer for the whole window.width - Width of the buffer.height - Height of the buffer.public void onPopupShow(CefBrowser browser, boolean show)
CefRenderHandleronPopupShow in interface CefRenderHandlerbrowser - The browser generating the event.show - True if the popup window is being shown.public void onPopupSize(CefBrowser browser, java.awt.Rectangle size)
CefRenderHandleronPopupSize in interface CefRenderHandlerbrowser - The browser generating the event.size - Size of the popup window.public boolean startDragging(CefBrowser browser, CefDragData dragData, int mask, int x, int y)
CefRenderHandlerstartDragging in interface CefRenderHandlerbrowser - The browser generating the event.dragData - Contextual information about the dragged contentmask - Describes the allowed operation (none, move, copy, link).x - Coordinate within CefBrowsery - Coordinate within CefBrowserpublic void updateDragCursor(CefBrowser browser, int operation)
CefRenderHandlerupdateDragCursor in interface CefRenderHandlerbrowser - The browser generating the event.operation - Describes the allowed operation (none, move, copy, link).