+ /**
+ * Computes and answers the width and height of the alignment in pixels,
+ * including
+ * <ul>
+ * <li>sequence ids</li>
+ * <li>scale above, left or right if shown</li>
+ * <li>sequences</li>
+ * <li>annotations, if shown</li> The alignment may be in wrapped or unwrapped
+ * mode.
+ * <ul>
+ *
+ * @param splitFrame
+ * if true, the combined dimensions of a split frame view
+ * are computed: the sum of the two alignments' heights, and
+ * the larger of their widths. Any additional height (e.g.
+ * for frame titles) should be added separately.
+ * @return
+ */
+ public AlignmentDimension getAlignmentDimension(boolean splitFrame)
+ {
+ AlignmentDimension d1 = getAlignmentDimension();
+ if (!splitFrame)
+ {
+ return d1;
+ }
+ AlignmentPanel comp = ((AlignViewport) av.getCodingComplement())
+ .getAlignPanel();
+ AlignmentDimension d2 = comp.getAlignmentDimension();
+
+ int h = d1.height + d2.height;
+ int w = Math.max(d1.width, d2.width);
+
+ return new AlignmentDimension(w, h);
+ }
+
+ /**
+ * Computes and answers the width and height of the alignment in pixels,
+ * including
+ * <ul>
+ * <li>sequence ids</li>
+ * <li>scale above, left or right if shown</li>
+ * <li>sequences</li>
+ * <li>annotations, if shown</li> The alignment may be in wrapped or unwrapped
+ * mode.
+ * <ul>
+ *
+ * @return
+ */
+ AlignmentDimension getAlignmentDimension()