public class SVGCheckbox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
checked
Status flag
|
protected java.lang.String |
label
Checkbox label
|
protected javax.swing.event.EventListenerList |
listenerList
Event listeners
|
Constructor and Description |
---|
SVGCheckbox(boolean checked)
Constructor, without label
|
SVGCheckbox(boolean checked,
java.lang.String label)
Constructor, with label
|
Modifier and Type | Method and Description |
---|---|
void |
addCheckBoxListener(javax.swing.event.ChangeListener listener)
Register a listener for this checkbox.
|
protected void |
fireSwitchEvent(javax.swing.event.ChangeEvent evt)
Fire the event to listeners
|
boolean |
isChecked()
Return the checkmark status.
|
void |
removeCheckBoxListener(javax.swing.event.ChangeListener listener)
Remove a listener for this checkbox.
|
org.w3c.dom.Element |
renderCheckBox(SVGPlot svgp,
double x,
double y,
double size)
Render the SVG checkbox to a plot
|
protected boolean checked
protected javax.swing.event.EventListenerList listenerList
protected java.lang.String label
public SVGCheckbox(boolean checked)
checked
- Checked statuspublic SVGCheckbox(boolean checked, java.lang.String label)
checked
- Checked statuslabel
- Labelpublic org.w3c.dom.Element renderCheckBox(SVGPlot svgp, double x, double y, double size)
svgp
- Plot to draw tox
- X offsety
- Y offsetsize
- Size factorpublic void addCheckBoxListener(javax.swing.event.ChangeListener listener)
listener
- Listener to addpublic void removeCheckBoxListener(javax.swing.event.ChangeListener listener)
listener
- Listener to removepublic boolean isChecked()
protected void fireSwitchEvent(javax.swing.event.ChangeEvent evt)
evt
- Event to fireCopyright © 2019 ELKI Development Team. License information.