public interface Drawable

| Modifier and Type | Method and Description |
|---|---|
void |
addRefreshListener(RefreshListener listener)
Adds a refresh listener that is called whenever this
Drawable needs to be
redrawn by the GUI. |
void |
paintOn(GraphicContext gc,
PaintInstructions instructions)
Paints the current content onto the graphic context.
|
void |
removeRefreshListener(RefreshListener listener)
Removes a refresh listener that was called whenever this
Drawable needed to
be redrawn by the GUI. |
void paintOn(GraphicContext gc, PaintInstructions instructions)
gc - graphic context; coordinates are relative to the Chartinstructions - additional instructions like the area to paint onvoid addRefreshListener(RefreshListener listener)
Drawable needs to be
redrawn by the GUI.listener - a listenervoid removeRefreshListener(RefreshListener listener)
Drawable needed to
be redrawn by the GUI. Does nothing if the listener was never added.listener - a listenerCopyright © 2020. All rights reserved.