public class SequenceArea extends AlignmentSubArea
AlignmentArea
that displays one sequence of the alignment.Constructor and Description |
---|
SequenceArea(AlignmentContentArea owner,
String sequenceID)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected AlignmentLabelSubArea |
createLabelSubArea(AlignmentLabelArea owner)
This method can be overwritten to provide a specific implementation for labeling the implementing data area.
|
String |
getSequenceID()
Returns the unique identifier of the the sequence displayed by this area.
|
Dimension |
getSize() |
void |
paint(TICPaintEvent event) |
getLabelSubArea, getOwner
addKeyListener, addMouseListener, addMouseWheelListener, assignSize, getCurrentToolkit, getKeyListenersSet, getMouseListenersSet, getMouseWheelListenersSet, getSwingComponentClassName, getSWTComponentClassName, getToolkitComponent, hasToolkitComponent, removeKeyListener, removeMouseListener, removeWheelMouseListener, repaint, setToolkitComponent
public SequenceArea(AlignmentContentArea owner, String sequenceID)
owner
- the alignment area that will contain this instancesequenceID
- the unique identifier of the sequence that will be displayed in this areapublic String getSequenceID()
AlignmentModel
public void paint(TICPaintEvent event)
paint
in class TICComponent
public Dimension getSize()
getSize
in class TICComponent
protected AlignmentLabelSubArea createLabelSubArea(AlignmentLabelArea owner)
AlignmentSubArea
This default implementation always returns an instance of DefaultLabelSubArea
.
createLabelSubArea
in class AlignmentSubArea
owner
- the alignment label area that can be set as the owner of the returned component.DefaultLabelSubArea
linked to this instance