Class SimpleMenuOverlay
- java.lang.Object
-
- elki.visualization.parallel3d.util.AbstractSimpleOverlay
-
- elki.visualization.parallel3d.util.SimpleMenuOverlay
-
- All Implemented Interfaces:
java.awt.event.MouseListener
,java.util.EventListener
public abstract class SimpleMenuOverlay extends AbstractSimpleOverlay implements java.awt.event.MouseListener
Simple menu overlay. TODO: Hover effects?- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field 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-
Fields inherited from class elki.visualization.parallel3d.util.AbstractSimpleOverlay
height, width
-
-
Constructor Summary
Constructors Constructor Description SimpleMenuOverlay()
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class elki.visualization.parallel3d.util.AbstractSimpleOverlay
render, setSize
-
-
-
-
Method Detail
-
renderContents
void renderContents(javax.media.opengl.GL2 gl)
Description copied from class:AbstractSimpleOverlay
Render the actual overlay contents.- Specified by:
renderContents
in classAbstractSimpleOverlay
- Parameters:
gl
- GL context
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
-
menuItemClicked
public abstract void menuItemClicked(int item)
Callback when a menu item was clicked.- Parameters:
item
- Item number that was clicked.
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
-
getOptions
public java.util.ArrayList<java.lang.String> getOptions()
- Returns:
- the options
-
setOptions
public void setOptions(java.util.ArrayList<java.lang.String> options)
- Parameters:
options
- the options to set
-
-