public class ResolutionToggleOption extends BioOption implements ActionListener
| Constructor and Description |
|---|
ResolutionToggleOption(String text,
char mnemonic,
String tip,
boolean value,
int valueX,
int valueY)
Constructs a new option.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Handles checkbox toggles.
|
Component |
getComponent()
Gets a GUI component representing this option.
|
boolean |
getValue()
Gets whether resolution toggle is on.
|
int |
getValueX()
Gets this option's current X resolution.
|
int |
getValueY()
Gets this option's current Y resolution.
|
void |
restoreState(Element el)
Restores the current state from the given DOM element ("Options").
|
void |
saveState(Element el)
Writes the current state to the given DOM element ("Options").
|
public boolean getValue()
public int getValueX()
public int getValueY()
public Component getComponent()
getComponent in class BioOptionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void saveState(Element el) throws SaveException
saveState in interface SaveablesaveState in class BioOptionSaveExceptionpublic void restoreState(Element el) throws SaveException
restoreState in interface SaveablerestoreState in class BioOptionSaveExceptionCopyright © 2015–2022 SciJava. All rights reserved.