public class RotationalComp extends DataModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEAM_DILUTION_EVENT |
static java.lang.String |
BEAM_DILUTION_POSSIBLE_EVENT |
static java.lang.String |
DATA_TYPE_EVENT |
static java.lang.String |
ENABLED_EVENT |
static java.lang.String |
SOURCE_SIZE_EVENT |
| Constructor and Description |
|---|
RotationalComp(int number)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RotationalSelectionData |
getDataSelected()
Return the
RotationalSelectionData selected. |
java.util.List<RotationalSelectionData> |
getListDataAllowed()
Return the list of
RotationalSelectionData allowed. |
int |
getNumber()
Return the number of the component.
|
double |
getSourceSize()
Return the source size.
|
boolean |
isBeamDilution()
Return if the beam dilution is enabled.
|
boolean |
isBeamDilutionPossible()
Return if the beam dilution is possible.
|
boolean |
isEnabled()
Return if the component is enabled.
|
void |
loadConfig(java.util.Properties prop) |
void |
saveConfig(BufferedWriterProperty out) |
void |
setBeamDilution(boolean beamDilution)
Change the state of the beam dilution.
|
void |
setBeamDilutionPossible(boolean beamDilutionPossible)
Change the possibility the beam dilution.
|
void |
setDataSelected(RotationalSelectionData dataSelected)
Change the
RotationalSelectionData selected. |
void |
setEnabled(boolean enabled)
Change the enabled state of the component.
|
void |
setListDataAllowed(java.util.List<RotationalSelectionData> listDataAllowed)
Set the new list of
RotationalSelectionData allowed. |
void |
setSavePrefix(java.lang.String savePrefix)
Change the prefix needed for load/save.
|
void |
setSourceSize(double sourceSize)
Change the source size value.
|
addModelListener, fireDataChanged, removeAllListener, removeModelListenerpublic static final java.lang.String BEAM_DILUTION_EVENT
public static final java.lang.String BEAM_DILUTION_POSSIBLE_EVENT
public static final java.lang.String SOURCE_SIZE_EVENT
public static final java.lang.String ENABLED_EVENT
public static final java.lang.String DATA_TYPE_EVENT
public RotationalComp(int number)
number - The number of the component.public int getNumber()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - The new enabled state of the component.public RotationalSelectionData getDataSelected()
RotationalSelectionData selected.RotationalSelectionData selected.public void setDataSelected(RotationalSelectionData dataSelected)
RotationalSelectionData selected.dataSelected - The new RotationalSelectionData selected.public java.util.List<RotationalSelectionData> getListDataAllowed()
RotationalSelectionData allowed.RotationalSelectionData allowed.public void setListDataAllowed(java.util.List<RotationalSelectionData> listDataAllowed)
RotationalSelectionData allowed.listDataAllowed - the list of RotationalSelectionData allowed.public void setSavePrefix(java.lang.String savePrefix)
savePrefix - The prefix to set.public void saveConfig(BufferedWriterProperty out) throws java.io.IOException
saveConfig in class DataModeljava.io.IOExceptionpublic void loadConfig(java.util.Properties prop)
throws java.io.IOException
loadConfig in class DataModeljava.io.IOExceptionpublic boolean isBeamDilution()
public void setBeamDilution(boolean beamDilution)
beamDilution - The new state of the beam dilution.public boolean isBeamDilutionPossible()
public void setBeamDilutionPossible(boolean beamDilutionPossible)
beamDilutionPossible - The new possibility of the beam dilution.public double getSourceSize()
public void setSourceSize(double sourceSize)
sourceSize - The new source size value.