public class AlignmentLabelArea extends TICComponent
AlignmentArea
.Modifier and Type | Field and Description |
---|---|
static int |
BORDER_WIDTH |
static int |
RECALCULATE_VALUE |
Constructor and Description |
---|
AlignmentLabelArea(AlignmentArea owner)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
assignSizeToAll() |
int |
getGlobalMaximumNeededWidth()
Returns the maximum needed width to label the alignment calculated over all alignments contained in the parent
MultipleAlignmentsContainer . |
int |
getLocalMaximumNeededWidth()
Calculates the needed with to label the associated alignment.
|
AlignmentArea |
getOwner()
Returns the alignment area that uses this instance.
|
Dimension |
getSize() |
protected String |
getSwingComponentClassName() |
protected String |
getSWTComponentClassName() |
ToolkitSpecificAlignmentLabelArea |
getToolkitComponent() |
void |
paint(TICPaintEvent event) |
void |
setLocalMaxWidthRecalculate()
Flags the needed width to display all labels to be recalculated the next time it is accessed.
|
void |
setLocalMaxWidthRecalculateToAll() |
addKeyListener, addMouseListener, addMouseWheelListener, assignSize, getCurrentToolkit, getKeyListenersSet, getMouseListenersSet, getMouseWheelListenersSet, hasToolkitComponent, removeKeyListener, removeMouseListener, removeWheelMouseListener, repaint, setToolkitComponent
public static final int BORDER_WIDTH
public static final int RECALCULATE_VALUE
public AlignmentLabelArea(AlignmentArea owner)
owner
- the alignment area that uses this instanceposition
- Specify here whether this area will be used to label the head, the content, or the
bottom part of the alignment area.public AlignmentArea getOwner()
public int getLocalMaximumNeededWidth()
getGlobalMaximumNeededWidth()
.public void setLocalMaxWidthRecalculate()
Note that this method only marks the needed width of this area to be recalculated.
setLocalMaxWidthRecalculateToAll()
should always be called instead, unless this method
is called manually for all areas inside an MultipleAlignmentsContainer
.
Application code will usually not have to call this method directly.
public void setLocalMaxWidthRecalculateToAll()
public int getGlobalMaximumNeededWidth()
MultipleAlignmentsContainer
. If the parent alignment area is not contained in such a container, the
return value is equal to getLocalMaximumNeededWidth()
.public Dimension getSize()
getSize
in class TICComponent
public void assignSizeToAll()
public void paint(TICPaintEvent event)
paint
in class TICComponent
protected String getSwingComponentClassName()
getSwingComponentClassName
in class TICComponent
protected String getSWTComponentClassName()
getSWTComponentClassName
in class TICComponent
public ToolkitSpecificAlignmentLabelArea getToolkitComponent()
getToolkitComponent
in class TICComponent