public abstract class SimpleMenuOverlay extends AbstractSimpleOverlay implements java.awt.event.MouseListener
Modifier and Type | Field and Description |
---|---|
(package private) int |
fontsize
Font size.
|
private java.util.ArrayList<java.lang.String> |
options
Options to display.
|
(package private) com.jogamp.opengl.util.awt.TextRenderer |
renderer
Text renderer
|
height, width
Constructor and Description |
---|
SimpleMenuOverlay()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
getOptions() |
abstract void |
menuItemClicked(int item)
Callback when a menu item was clicked.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
(package private) void |
renderContents(javax.media.opengl.GL2 gl)
Render the actual overlay contents.
|
void |
setOptions(java.util.ArrayList<java.lang.String> options) |
render, setSize
com.jogamp.opengl.util.awt.TextRenderer renderer
private java.util.ArrayList<java.lang.String> options
int fontsize
void renderContents(javax.media.opengl.GL2 gl)
AbstractSimpleOverlay
renderContents
in class AbstractSimpleOverlay
gl
- GL contextpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public abstract void menuItemClicked(int item)
item
- Item number that was clicked.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public java.util.ArrayList<java.lang.String> getOptions()
public void setOptions(java.util.ArrayList<java.lang.String> options)
options
- the options to setCopyright © 2019 ELKI Development Team. License information.