protected int scrollCol = -1;
protected int scrollRow = -1;
+ protected int alwidth;
+
+ protected int alheight;
+
public OverviewDimensions(ViewportRanges ranges,
boolean showAnnotationPanel)
{
return boxHeight;
}
- public void setWidth(int w)
- {
- width = w;
- }
-
- public void setHeight(int h)
- {
- sequencesHeight = h - graphHeight;
- }
-
public int getWidth()
{
return width;
return graphHeight;
}
+ public float getPixelsPerCol()
+ {
+ return (float) width / alwidth;
+ }
+
+ public float getPixelsPerSeq()
+ {
+ return (float) sequencesHeight / alheight;
+ }
+
+ public void setWidth(int w)
+ {
+ width = w;
+ }
+
+ public void setHeight(int h)
+ {
+ sequencesHeight = h - graphHeight;
+ }
+
public abstract void updateViewportFromMouse(int mousex, int mousey,
HiddenSequences hiddenSeqs, ColumnSelection hiddenCols,
ViewportRanges ranges);
public abstract AlignmentRowsCollectionI getRows(
ViewportRanges ranges, AlignmentI al);
-
- public abstract float getPixelsPerCol();
-
- public abstract float getPixelsPerSeq();
}
\ No newline at end of file