MOA 12.03
Real Time Analytics for Data Streams
moa.gui.FloatOptionEditComponent Class Reference

An OptionEditComponent that lets the user edit a float option. More...

Inheritance diagram for moa.gui.FloatOptionEditComponent:
Collaboration diagram for moa.gui.FloatOptionEditComponent:

List of all members.

Public Member Functions

 FloatOptionEditComponent (FloatOption option)
void applyState ()
 This method applies the state.
Option getEditedOption ()
 Gets the option of this component.
void setEditState (String cliString)
 Sets the state of the component.

Static Public Attributes

static final int SLIDER_RESOLUTION = 100000

Protected Member Functions

int floatValueToSliderValue (double floatValue)
double sliderValueToFloatValue (int sliderValue)

Protected Attributes

FloatOption editedOption
JSpinner spinner
JSlider slider

Detailed Description

An OptionEditComponent that lets the user edit a float option.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 40 of file FloatOptionEditComponent.java.


Constructor & Destructor Documentation

moa.gui.FloatOptionEditComponent.FloatOptionEditComponent ( FloatOption  option)

Definition at line 53 of file FloatOptionEditComponent.java.

Here is the call graph for this function:


Member Function Documentation

void moa.gui.FloatOptionEditComponent.applyState ( )

This method applies the state.

Implements moa.gui.OptionEditComponent.

Definition at line 98 of file FloatOptionEditComponent.java.

Here is the call graph for this function:

int moa.gui.FloatOptionEditComponent.floatValueToSliderValue ( double  floatValue) [protected]

Definition at line 83 of file FloatOptionEditComponent.java.

Referenced by moa.gui.FloatOptionEditComponent.FloatOptionEditComponent().

Here is the call graph for this function:

Here is the caller graph for this function:

Option moa.gui.FloatOptionEditComponent.getEditedOption ( )

Gets the option of this component.

Returns:
the option of this component

Implements moa.gui.OptionEditComponent.

Definition at line 104 of file FloatOptionEditComponent.java.

void moa.gui.FloatOptionEditComponent.setEditState ( String  cliString)

Sets the state of the component.

Parameters:
cliStringthe state of the component

Implements moa.gui.OptionEditComponent.

Definition at line 109 of file FloatOptionEditComponent.java.

Here is the call graph for this function:

double moa.gui.FloatOptionEditComponent.sliderValueToFloatValue ( int  sliderValue) [protected]

Definition at line 90 of file FloatOptionEditComponent.java.

Referenced by moa.gui.FloatOptionEditComponent.FloatOptionEditComponent().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations