public abstract class CefRenderHandlerAdapter extends java.lang.Object implements CefRenderHandler
构造器和说明 |
---|
CefRenderHandlerAdapter() |
限定符和类型 | 方法和说明 |
---|---|
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.
检索视图矩形。 |
void |
onCursorChange(CefBrowser browser, int cursorIdentifer)
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.
当用户开始在Web视图中拖动内容时调用。 |
void |
updateDragCursor(CefBrowser browser, int operation)
Called when the web view wants to update the mouse cursor during a drag & drop operation.
在Web视图要在拖放操作期间更新鼠标光标时调用。 |
public java.awt.Point getScreenPoint(CefBrowser browser, java.awt.Point viewPoint)
CefRenderHandler
getScreenPoint
在接口中
CefRenderHandler
browser
- The browser generating the event.
- 生成事件的浏览器。
viewPoint
- The point in the view.
- 视图中的要点。
public java.awt.Rectangle getViewRect(CefBrowser browser)
CefRenderHandler
getViewRect
在接口中
CefRenderHandler
browser
- The browser generating the event.
- 生成事件的浏览器。
public void onCursorChange(CefBrowser browser, int cursorIdentifer)
CefRenderHandler
onCursorChange
在接口中
CefRenderHandler
browser
- The browser generating the event.
- 生成事件的浏览器。
cursorIdentifer
- The new cursor.
- 新光标。
public void onPaint(CefBrowser browser, boolean popup, java.awt.Rectangle[] dirtyRects, java.nio.ByteBuffer buffer, int width, int height)
CefRenderHandler
onPaint
在接口中
CefRenderHandler
browser
- The browser generating the event.
- 生成事件的浏览器。
popup
- True if painting a popup window.
- 如果绘制弹出窗口,则为True。
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)
CefRenderHandler
onPopupShow
在接口中
CefRenderHandler
browser
- The browser generating the event.
- 生成事件的浏览器。
show
- True if the popup window is being shown.
- 如果正在显示弹出窗口,则为True。
public void onPopupSize(CefBrowser browser, java.awt.Rectangle size)
CefRenderHandler
onPopupSize
在接口中
CefRenderHandler
browser
- The browser generating the event.
- 生成事件的浏览器。
size
- Size of the popup window.
- 弹出窗口的大小。
public boolean startDragging(CefBrowser browser, CefDragData dragData, int mask, int x, int y)
CefRenderHandler
startDragging
在接口中
CefRenderHandler
browser
- The browser generating the event.
- 生成事件的浏览器。
dragData
- Contextual information about the dragged content
- 有关拖动内容的上下文信息
mask
- Describes the allowed operation (none, move, copy, link).
- 描述允许的操作(无,移动,复制,链接)。
x
- Coordinate within CefBrowser
- 在CefBrowser内协调
y
- Coordinate within CefBrowser
- 在CefBrowser内协调
public void updateDragCursor(CefBrowser browser, int operation)
CefRenderHandler
updateDragCursor
在接口中
CefRenderHandler
browser
- The browser generating the event.
- 生成事件的浏览器。
operation
- Describes the allowed operation (none, move, copy, link).
- 描述允许的操作(无,移动,复制,链接)。