}
}
+ public static void setAppletDefaults()
+ {
+
+ // http://www.jalview.org/old/v2_8/examples/appletParameters.html
+
+ // showConservation true or false Default is true.
+ // showQuality true or false Default is true.
+ // showConsensus true or false Default is true.
+ // showFeatureSettings true or false Shows the feature settings window when
+ // startin
+ // showTreeBootstraps true or false (default is true) show or hide branch
+ // bootstraps
+ // showTreeDistances true or false (default is true) show or hide branch
+ // lengths
+ // showUnlinkedTreeNodes true or false (default is false) indicate if
+ // unassociated nodes should be highlighted in the tree view
+ // showUnconserved true of false (default is false) When true, only gaps and
+ // symbols different to the consensus sequence ions of the alignment
+ // showGroupConsensus true of false (default is false) When true, shows
+ // consensus annotation row for any groups on the alignment. (since 2.7)
+ // showGroupConservation true of false (default is false) When true, shows
+ // amino-acid property conservation annotation row for any groups on the
+ // showConsensusHistogram true of false (default is true) When true, shows
+ // the percentage occurence of the consensus symbol for each column as a
+ // showSequenceLogo true of false (default is false) When true, shows a
+ // sequence logo above the consensus sequence (overlaid above the Consensus
+
+ Cache.setPropertyNoSave("SHOW_CONSERVATION", "true");
+ Cache.setPropertyNoSave("SHOW_QUALITY", "false");
+ Cache.setPropertyNoSave("SHOW_CONCENSUS", "true");
+ Cache.setPropertyNoSave("SHOW_UNCONSERVED", "false");
+ Cache.setPropertyNoSave("SHOW_GROUP_CONSERVATION", "false");
+ Cache.setPropertyNoSave("SHOW_GROUP_CONCENSUS", "false");
+
+ // TODO -- just a start here
+ }
+
/**
* Do any necessary validation before saving settings. Return focus to the
* first tab which fails validation.
* referenced in input data has already been associated with jalview objects.
*
* @param tp
- * @param alignFrame
+ * @param loaderFrame
* @return Object[] { AlignmentView, AlignmentI - reference alignment for
* input }
*/
import jalview.analysis.GeneticCodes;
import jalview.api.SplitContainerI;
import jalview.bin.Cache;
+import jalview.bin.Jalview;
import jalview.gui.JvSwingUtils;
import jalview.gui.Preferences;
import jalview.io.FileFormats;
{
// for Web-page embedding using id=align-frame-div
- setName("jalview-alignment");
+ setName(Jalview.getAppID("alignment"));
jbInit();
setJMenuBar(alignFrameMenuBar);
package jalview.jbgui;
import jalview.api.AlignmentViewPanel;
+import jalview.bin.Jalview;
import jalview.io.FileFormatException;
import jalview.util.MessageManager;
import jalview.util.Platform;
*/
private void jbInit() throws Exception
{
- setName("jalview-desktop");
+ setName(Jalview.getAppID("desktop"));
FileMenu.setText(MessageManager.getString("action.file"));
HelpMenu.setText(MessageManager.getString("action.help"));
VamsasMenu.setText("Vamsas");
*/
package jalview.jbgui;
+import jalview.bin.Jalview;
import jalview.util.ImageMaker.TYPE;
import jalview.util.MessageManager;
private void jbInit() throws Exception
{
- setName("jalview-pca");
- this.getContentPane().setLayout(new BorderLayout());
+ setName(Jalview.getAppID("pca"));
+ getContentPane().setLayout(new BorderLayout());
JPanel jPanel2 = new JPanel();
jPanel2.setLayout(new FlowLayout());
JLabel jLabel1 = new JLabel();
*/
package jalview.jbgui;
+import jalview.bin.Jalview;
+
import javax.swing.JInternalFrame;
@SuppressWarnings("serial")
private void jbInit() throws Exception
{
-
- setName("jalview-rnastructureviewer");
-
+ setName(Jalview.getAppID("rnastructureviewer"));
}
}
*/
package jalview.jbgui;
+import jalview.bin.Jalview;
import jalview.util.Platform;
import java.awt.Component;
*/
public GSplitFrame(GAlignFrame top, GAlignFrame bottom)
{
- setName("jalview-splitframe");
+ setName(Jalview.getAppID("splitframe"));
this.topFrame = top;
this.bottomFrame = bottom;
package jalview.jbgui;
import jalview.api.structures.JalviewStructureDisplayI;
+import jalview.bin.Jalview;
import jalview.gui.ColourMenuHelper.ColourChangeListener;
import jalview.util.ImageMaker.TYPE;
import jalview.util.MessageManager;
private void jbInit() throws Exception
{
- setName("jalview-structureviewer");
+ setName(Jalview.getAppID("structureviewer"));
JMenuBar menuBar = new JMenuBar();
this.setJMenuBar(menuBar);
*/
package jalview.jbgui;
+import jalview.bin.Jalview;
import jalview.util.ImageMaker.TYPE;
import jalview.util.MessageManager;
private void jbInit() throws Exception
{
- setName("jalview-tree");
+ setName(Jalview.getAppID("tree"));
this.getContentPane().setLayout(borderLayout1);
this.setBackground(Color.white);
this.setFont(new java.awt.Font("Verdana", 0, 12));
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
+import java.net.MalformedURLException;
import java.net.URL;
import java.util.Properties;
System.out.println(
"Platform id=" + id + " reading Info." + key + " = " + value);
- p.put(id + "_" + key, value);
+ p.put(key, value);
/**
* @j2sNative
}
+ public static URL getDocumentBase()
+ {
+ try
+ {
+ return (isJS() ? new URL(/**
+ * @j2sNative J2S.thisApplet._applet.appletViewer.appletDocumentBase
+ * ||
+ */
+ "") : null);
+ } catch (MalformedURLException e)
+ {
+ return null;
+ }
+ }
+
+ public static URL getCodeBase()
+ {
+ try
+ {
+ return (isJS() ? new URL(/**
+ * @j2sNative J2S.thisApplet._applet.appletViewer.appletCodeBase
+ * ||
+ */
+ "") : null);
+ } catch (MalformedURLException e)
+ {
+ return null;
+ }
+ }
+
}