public class EditSettings extends java.lang.Object
AlignmentContentArea
or a MultipleAlignmentsContainer
. Additionally the insertLeftInDataArea property is stored which
defines how additional space shall be positioned in data areas, if a new token is inserted into the sequence they
are attached to.Constructor and Description |
---|
EditSettings() |
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(EditSettingsListener listener) |
protected void |
fireInsertChanged() |
protected void |
fireInsertLeftInDataAreaChanged() |
protected void |
fireWorkingModeChanged(WorkingMode previousWorkingMode) |
WorkingMode |
getWorkingMode() |
boolean |
isInsert() |
boolean |
isInsertLeftInDataArea()
Determines whether data areas displaying content that is aligned to the sequence they are attached to shall insert
additional space on the left or the right if a new token is inserted into the sequence that carries the data area.
|
boolean |
removeListener(EditSettingsListener listener) |
void |
setInsert(boolean insert) |
void |
setInsertLeftInDataArea(boolean insertLeftInDataArea) |
void |
setWorkingMode(WorkingMode workingMode) |
void |
toggleInsert() |
void |
toggleInsertLeftInDataArea() |
public EditSettings()
public boolean isInsert()
public void setInsert(boolean insert)
public void toggleInsert()
public WorkingMode getWorkingMode()
public void setWorkingMode(WorkingMode workingMode)
public boolean isInsertLeftInDataArea()
PherogramArea
would be an example for a data area using this flag. It determines if the pherogram shall be
stretched left or right of a newly inserted token which is not a gap.
true
if new space shall be inserted left of the edit and false
if new space shall be inserted
on the right.public void setInsertLeftInDataArea(boolean insertLeftInDataArea)
public void toggleInsertLeftInDataArea()
public boolean addListener(EditSettingsListener listener)
public boolean removeListener(EditSettingsListener listener)
protected void fireInsertChanged()
protected void fireWorkingModeChanged(WorkingMode previousWorkingMode)
protected void fireInsertLeftInDataAreaChanged()