public AlignFrame(AlignmentI al)\r
{\r
super();\r
- viewport = new AlignViewport(al,true,true,true,false);\r
+ viewport = new AlignViewport(al,true,true,false);\r
\r
String fontName = jalview.bin.Cache.getProperty("FONT_NAME");\r
String fontStyle= jalview.bin.Cache.getProperty("FONT_STYLE");\r
Desktop.addInternalFrame(frame, "Change Font", 480,100);\r
}\r
\r
+ protected void fullSeqId_actionPerformed(ActionEvent e)\r
+ {\r
+ viewport.setShowFullId( fullSeqId.isSelected() );\r
+\r
+ alignPanel.idPanel.idCanvas.setPreferredSize( alignPanel.calculateIdWidth() );\r
+ alignPanel.RefreshPanels();\r
+ }\r
+\r
protected void colourTextMenuItem_actionPerformed(ActionEvent e)\r
{\r
viewport.setColourText( colourTextMenuItem.isSelected() );\r
int startSeq;\r
int endSeq;\r
\r
- boolean showScores=false;\r
+ boolean showFullId = false;\r
boolean showText=true;\r
boolean showColourText=false;\r
boolean showBoxes=true;\r
\r
\r
public AlignViewport(AlignmentI da,\r
- boolean showScores,\r
boolean showText,\r
boolean showBoxes,\r
boolean wrapAlignment) {\r
- this(0,da.getWidth()-1,0,da.getHeight()-1,showScores,\r
+ this(0,da.getWidth()-1,0,da.getHeight()-1,\r
showText,\r
showBoxes,\r
wrapAlignment);\r
\r
public AlignViewport(int startRes, int endRes,\r
int startSeq, int endSeq,\r
- boolean showScores,\r
boolean showText,\r
boolean showBoxes,\r
boolean wrapAlignment) {\r
this.endRes = endRes;\r
this.startSeq = startSeq;\r
this.endSeq = endSeq;\r
-\r
- this.showScores = showScores;\r
this.showText = showText;\r
this.showBoxes = showBoxes;\r
this.wrapAlignment = wrapAlignment;\r
\r
- // og = new AlignmentOutputGenerator(this);\r
-\r
setFont( font );\r
}\r
\r
public void setAlignment(AlignmentI align) {\r
this.alignment = align;\r
}\r
- public void setShowScores(boolean state) {\r
- showScores = state;\r
- }\r
+\r
public void setWrapAlignment(boolean state) {\r
wrapAlignment = state;\r
}\r
public void setShowBoxes(boolean state) {\r
showBoxes = state;\r
}\r
- public boolean getShowScores() {\r
- return showScores;\r
- }\r
+\r
public boolean getWrapAlignment() {\r
return wrapAlignment;\r
}\r
public boolean getColourAppliesToAllGroups()\r
{return colourAppliesToAllGroups; }\r
\r
+ public boolean getShowFullId()\r
+ {\r
+ return showFullId;\r
+ }\r
\r
+ public void setShowFullId(boolean b)\r
+ {\r
+ showFullId = b;\r
+ }\r
}\r