@OpenApi
public interface DiagramSurface
Modifier and Type | Method and Description |
---|---|
void |
addPainter(DiagramSurfacePainter painter)
Registers given painter.
|
java.awt.Cursor |
getCursor()
Returns diagram cursor.
|
java.util.List |
getPainters()
Returns all registered painters.
|
void |
removePainter(DiagramSurfacePainter painter)
Unregisters given painter.
|
void |
repaint()
Repaints the diagram surface.
|
void |
repaint(java.awt.Rectangle rect)
Repaints the given rectangle of the diagram surface.
|
void |
scrollRectToVisible(java.awt.Rectangle r)
Scrolls diagram surface in order to make given part of diagram visible.
|
void |
scrollToVisible(int x,
int y)
Scrolls diagram surface in order to make given point of diagram visible.
|
void |
setCursor(java.awt.Cursor cursor)
Sets diagram cursor.
|
@OpenApi void repaint()
@OpenApi void repaint(java.awt.Rectangle rect)
rect
- the rectangle to repaint.@OpenApi void scrollRectToVisible(java.awt.Rectangle r)
r
- make this part of diagram visible.@OpenApi void scrollToVisible(int x, int y)
x
- the x coordinate of the visible point.y
- the y coordinate of the visible point.@OpenApi void setCursor(@CheckForNull java.awt.Cursor cursor)
cursor
- a new cursor for diagram.Component.setCursor(java.awt.Cursor)
@OpenApi java.awt.Cursor getCursor()
Component.getCursor()
@OpenApi void addPainter(DiagramSurfacePainter painter)
painter
- the given painter@OpenApi void removePainter(DiagramSurfacePainter painter)
painter
- the given painter@OpenApi java.util.List getPainters()