public class SVGCheckbox extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
checked
Status flag
|
protected String |
label
Checkbox label
|
protected EventListenerList |
listenerList
Event listeners
|
Constructor and Description |
---|
SVGCheckbox(boolean checked)
Constructor, without label
|
SVGCheckbox(boolean checked,
String label)
Constructor, with label
|
Modifier and Type | Method and Description |
---|---|
void |
addCheckBoxListener(ChangeListener listener)
Register a listener for this checkbox.
|
protected void |
fireSwitchEvent(ChangeEvent evt)
Fire the event to listeners
|
boolean |
isChecked()
Return the checkmark status.
|
void |
removeCheckBoxListener(ChangeListener listener)
Remove a listener for this checkbox.
|
Element |
renderCheckBox(SVGPlot svgp,
double x,
double y,
double size)
Render the SVG checkbox to a plot
|
protected boolean checked
protected EventListenerList listenerList
protected String label
public SVGCheckbox(boolean checked)
checked
- Checked statuspublic SVGCheckbox(boolean checked, String label)
checked
- Checked statuslabel
- Labelpublic Element renderCheckBox(SVGPlot svgp, double x, double y, double size)
svgp
- Plot to draw tox
- X offsety
- Y offsetsize
- Size factorpublic void addCheckBoxListener(ChangeListener listener)
listener
- Listener to addpublic void removeCheckBoxListener(ChangeListener listener)
listener
- Listener to removepublic boolean isChecked()
protected void fireSwitchEvent(ChangeEvent evt)
evt
- Event to fireCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.