rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
star.closePath(); g2.fill(star); cornerx = (float)alignedPositions[i] + left - 12; cornery = top + TICK_BOTTOM - 5; float xpoints1[] = {cornerx,cornerx+24.0f,cornerx+4.6f,cornerx+12.0f,cornerx+19.4f}; float ypoints1[] = {cornery,cornery,cornery+14.1f,cornery-8.7f,cornery+14.1f}; star.moveTo(xpoints1[0],ypoints1[0]); f...
triangle.closePath(); g2.fill(triangle);
public void paintComponent(Graphics g){ DPrimeTable dPrimeTable = theData.dpTable; if (Chromosome.getSize() < 2){ //if there zero or only one valid marker return; } Vector blocks = theData.blocks; Rectangle visRect = getVisibleRect(); //deal with zoomi...
putValue(ACTION_COMMAND_KEY, ArchitectSwingConstants.ACTION_COMMAND_SRC_PLAYPEN);
public DeleteSelectedAction() { super("Delete Selected", ASUtils.createJLFIcon("general/Delete", "Delete Selected", ArchitectFrame.getMainInstance().sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); putValue(SHORT_DESCRIPTION, "Delete Selected"); putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(...
int colidx; if ( (colidx = tp.getSelectedColumnIndex()) >= 0) {
if (tp.getSelectedColumnIndex() >= 0) { /* OLD CODE: only deleted one column at a time...
public void actionPerformed(ActionEvent evt) { if (evt.getActionCommand().equals(ArchitectSwingConstants.ACTION_COMMAND_SRC_PLAYPEN)) { List items = pp.getSelectedItems(); if (items.size() > 1) { int decision = JOptionPane.showConfirmDialog(pp, "Are you sure you want to delete the " ...
tp.getModel().removeColumn(colidx);
tp.getModel().removeColumn(tp.getSelectedColumnIndex());
public void actionPerformed(ActionEvent evt) { if (evt.getActionCommand().equals(ArchitectSwingConstants.ACTION_COMMAND_SRC_PLAYPEN)) { List items = pp.getSelectedItems(); if (items.size() > 1) { int decision = JOptionPane.showConfirmDialog(pp, "Are you sure you want to delete the " ...
SQLColumn sc = (SQLColumn)so; SQLTable st = sc.getParentTable();
public void actionPerformed(ActionEvent evt) { if (evt.getActionCommand().equals(ArchitectSwingConstants.ACTION_COMMAND_SRC_PLAYPEN)) { List items = pp.getSelectedItems(); if (items.size() > 1) { int decision = JOptionPane.showConfirmDialog(pp, "Are you sure you want to delete the " ...
JOptionPane.showMessageDialog(dbt, ex.getMessage());
int decision = JOptionPane.showConfirmDialog(dbt, "Could not delete the column " + sc.getName() + " because it is part of a relationship key. Continue" + " deleting of other selected items?", "Column is Locked", JOptionPane.YES_NO_OPTION); if (decision == JOptionPane.NO_OPTION) { return; }
public void actionPerformed(ActionEvent evt) { if (evt.getActionCommand().equals(ArchitectSwingConstants.ACTION_COMMAND_SRC_PLAYPEN)) { List items = pp.getSelectedItems(); if (items.size() > 1) { int decision = JOptionPane.showConfirmDialog(pp, "Are you sure you want to delete the " ...
logger.debug("delete action came from unknown source, so we do nothing.");
public void actionPerformed(ActionEvent evt) { if (evt.getActionCommand().equals(ArchitectSwingConstants.ACTION_COMMAND_SRC_PLAYPEN)) { List items = pp.getSelectedItems(); if (items.size() > 1) { int decision = JOptionPane.showConfirmDialog(pp, "Are you sure you want to delete the " ...
public double chsoneCalculate(double[] bins, double[] ebins, int nbins, int knstrn) throws CheckDataException{
public double chsoneCalculate(double[] bins, double[] ebins, int nbins, int knstrn){
public double chsoneCalculate(double[] bins, double[] ebins, int nbins, int knstrn) throws CheckDataException{ double prob, df, chsq, temp; df = nbins - knstrn ; chsq = 0.0 ; for (int j = 1 ; j <= nbins ; j ++ ) { if (ebins [j ]<= 0.0 ) throw new CheckDataException("Bad expected number in chsone" ); temp = ...
if (ebins [j ]<= 0.0 ) throw new CheckDataException("Bad expected number in chsone" ); temp = bins[j]- ebins[j]; chsq += temp * temp / ebins [j];
if (ebins [j ]<= 0.0 ){ chsq=0; }else{ temp = bins[j]- ebins[j]; chsq += temp * temp / ebins [j]; }
public double chsoneCalculate(double[] bins, double[] ebins, int nbins, int knstrn) throws CheckDataException{ double prob, df, chsq, temp; df = nbins - knstrn ; chsq = 0.0 ; for (int j = 1 ; j <= nbins ; j ++ ) { if (ebins [j ]<= 0.0 ) throw new CheckDataException("Bad expected number in chsone" ); temp = ...
double obsHET = het/(het+hom+0.0);
double obsHET; if (het+hom == 0){ obsHET = 0; }else{ obsHET = het/(het+hom+0.0); }
private double getObsHET(int het, int hom){ double obsHET = het/(het+hom+0.0); return obsHET; }
try{
private double getPValue(Hashtable parentHom, int parentHet){ //ie: 11 13 31 33 -> homA =1 homB = 1 parentHet=2 int homA=0, homB=0, num; double pvalue=0; Enumeration enu = parentHom.elements(); while(enu.hasMoreElements()){ num = Integer.parseInt((String)enu.nextElement()); if(homA>0) homB = num; else homA ...
} catch(CheckDataException e){ System.out.println("input data error in caculating p value"); System.out.println(e.getMessage()); }
private double getPValue(Hashtable parentHom, int parentHet){ //ie: 11 13 31 33 -> homA =1 homB = 1 parentHet=2 int homA=0, homB=0, num; double pvalue=0; Enumeration enu = parentHom.elements(); while(enu.hasMoreElements()){ num = Integer.parseInt((String)enu.nextElement()); if(homA>0) homB = num; else homA ...
double preHet = 1.0 - (sumsq/((sum*sum)+0.0));
double preHet; if (sum == 0){ preHet = 0; }else{ preHet = 1.0 - (sumsq/((sum*sum)+0.0)); }
private double getPreHET(Hashtable count){ int sumsq=0, sum=0, num=0; Enumeration enu = count.elements(); while(enu.hasMoreElements()){ num = Integer.parseInt((String)enu.nextElement()); sumsq += num*num; sum += num; } double preHet = 1.0 - (sumsq/((sum*sum)+0.0)); return preHet; }
private double hwCalculate(double obsAA, double obsAB, double obsBB) throws CheckDataException{
private double hwCalculate(double obsAA, double obsAB, double obsBB){
private double hwCalculate(double obsAA, double obsAB, double obsBB) throws CheckDataException{ double obs[]={0.0, obsAA, obsAB, obsBB}; double expect[]={0.0, 0.0, 0.0, 0.0}; double sum_obs; //double csq, df, sum_expect; double prob, p, start, end; double best_prob =-1.0; double best_p=0; sum_obs = obs [...
InputStream in = new FileInputStream(name); XMLParser parser = new XMLParser(); Script script = parser.parse(in); script = script.compile(); assertTrue("Parsed a Script", script instanceof Script); StringWriter buffer = new StringWriter(); script.run(parser.getContext(), XMLOutput.createXMLOutput(buffer)); String text...
Document document = parseUnitTest(name);
public void runUnitTest(String name) throws Exception { // parse script InputStream in = new FileInputStream(name); XMLParser parser = new XMLParser(); Script script = parser.parse(in); script = script.compile(); assertTrue("Parsed a Script", script instanceof Script); ...
Document document = DocumentHelper.parseText( text );
public void runUnitTest(String name) throws Exception { // parse script InputStream in = new FileInputStream(name); XMLParser parser = new XMLParser(); Script script = parser.parse(in); script = script.compile(); assertTrue("Parsed a Script", script instanceof Script); ...
TableSorter sorter = new TableSorter(new BasicTableModel(colNames, data));
tableModel = new BasicTableModel(colNames,data); TableSorter sorter = new TableSorter(tableModel);
public IndividualDialog (HaploView h, String title) { super(h,title); JPanel contents = new JPanel(); JTable table; contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector people = h.theData.getPedFile().getAllIndividuals(); Vector excludedPeople = h.theData.ge...
System.out.println("Ignoring SQLException. Assuming it means the table we tried to drop didn't exist.");
System.out.println("Ignoring SQLException. Assume "+tableName+" didn't exist.");
private static void dropTableNoFail(Connection con, String tableName) throws SQLException { Statement stmt = null; try { stmt = con.createStatement(); stmt.executeUpdate("DROP TABLE "+tableName); } catch (SQLException e) { System.out.println("Ignoring SQLException. Assuming it means the table we tried to dro...
Connection con = mydb.getConnection(); Statement stmt = con.createStatement();
Connection con = null; Statement stmt = null;
public static void oneTimeSetUp() throws Exception { System.out.println("TestSQLColumn.oneTimeSetUp()"); SQLDatabase mydb = new SQLDatabase(getDataSource()); Connection con = mydb.getConnection(); Statement stmt = con.createStatement(); dropTableNoFail(con, "SQL_COLUMN_TEST_1PK"); dropTableNoFail(con, "SQL_C...
dropTableNoFail(con, "SQL_COLUMN_TEST_1PK"); dropTableNoFail(con, "SQL_COLUMN_TEST_3PK"); dropTableNoFail(con, "SQL_COLUMN_TEST_0PK"); stmt.executeUpdate("CREATE TABLE SQL_COLUMN_TEST_1PK (\n" + " cow numeric(11) CONSTRAINT test1pk PRIMARY KEY,\n" + " moo varchar(10),\n" + " foo char(10))"); stmt.executeUpdate("CREAT...
try { con = mydb.getConnection(); stmt = con.createStatement(); dropTableNoFail(con, "SQL_COLUMN_TEST_1PK"); dropTableNoFail(con, "SQL_COLUMN_TEST_3PK"); dropTableNoFail(con, "SQL_COLUMN_TEST_0PK"); stmt.executeUpdate("CREATE TABLE SQL_COLUMN_TEST_1PK (\n" + " cow numeric(11) CONSTRAINT test1pk PRIMARY KEY,\n" + " mo...
public static void oneTimeSetUp() throws Exception { System.out.println("TestSQLColumn.oneTimeSetUp()"); SQLDatabase mydb = new SQLDatabase(getDataSource()); Connection con = mydb.getConnection(); Statement stmt = con.createStatement(); dropTableNoFail(con, "SQL_COLUMN_TEST_1PK"); dropTableNoFail(con, "SQL_C...
if (!SwingUtilities.isEventDispatchThread()) return;
public void dbChildrenInserted(SQLObjectEvent e) { if (logger.isDebugEnabled()) { if (e.getSQLSource() instanceof SQLRelationship) { SQLRelationship r = (SQLRelationship) e.getSQLSource(); logger.debug("dbChildrenInserted SQLObjectEvent: "+e +"; pk path="+Arrays.asList(getPkPathToRelationship(r)) ...
if (!SwingUtilities.isEventDispatchThread()) return;
public void dbChildrenRemoved(SQLObjectEvent e) { if (logger.isDebugEnabled()) logger.debug("dbChildrenRemoved SQLObjectEvent: "+e); try { SQLObject[] oldEventSources = e.getChildren(); for (int i = 0; i < oldEventSources.length; i++) { ArchitectUtils.unlistenToHierarchy(this, oldEventSources[i]); } } catc...
if (!SwingUtilities.isEventDispatchThread()) return;
public void dbObjectChanged(SQLObjectEvent e) { if (logger.isDebugEnabled()) logger.debug("dbObjectChanged SQLObjectEvent: "+e); SQLObject source = e.getSQLSource(); if (source instanceof SQLRelationship) { SQLRelationship r = (SQLRelationship) source; fireTreeNodesChanged(new TreeModelEvent(this, getPkPathToRe...
throw new UnsupportedOperationException("not yet");
if (!SwingUtilities.isEventDispatchThread()) return; try { ArchitectUtils.listenToHierarchy(this, e.getSQLSource()); TreeModelEvent tme = new TreeModelEvent(this, getPathToNode(e.getSQLSource())); fireTreeStructureChanged(tme); } catch (ArchitectException ex) { logger.error("Couldn't listen to hierarchy rooted at "+e.g...
public void dbStructureChanged(SQLObjectEvent e) { throw new UnsupportedOperationException("not yet"); }
setSelectionPath(p);
if (!isTargetDatabaseChild(p)) { setSelectionPath(p); }
private void maybeShowPopup(MouseEvent e) { if (e.isPopupTrigger()) { TreePath p = getPathForLocation(e.getX(), e.getY()); popup = refreshMenu(p); setSelectionPath(p); popup.show(e.getComponent(), e.getX(), e.getY()); } }
newMenu.add(popupProperties);
newMenu.add(popupProperties); } else if (isTargetDatabaseChild(p)) { ArchitectFrame af = ArchitectFrame.getMainInstance(); JMenuItem mi; mi = new JMenuItem(); mi.setAction(af.editColumnAction); mi.setActionCommand(ArchitectSwingConstants.ACTION_COMMAND_SRC_DBTREE); newMenu.add(mi); if(p.getLastPathComponent().getClass...
protected JPopupMenu refreshMenu(TreePath p) { logger.debug("refreshMenu is being called."); JPopupMenu newMenu = new JPopupMenu(); if (isTargetDatabaseNode(p)) { // two menu items: "Set Target Database" and "Connection Properties newMenu.add(popupDBCSMenu = new JMenu("Set Target Database")); if (Architec...
registerTag("param", ParamTag.class);
public XMLTagLibrary() { registerTag("out", ExprTag.class); registerTag("if", IfTag.class); registerTag("forEach", ForEachTag.class); registerTag("parse", ParseTag.class); registerTag("set", SetTag.class); registerTag("transform", TransformTag.class); // exte...
fc.setSelctedFile(null);
fc.setSelectedFile(null);
void saveHapsToText(){ fc.setSelctedFile(null); try{ fc.setSelectedFile(null); int returnVal = fc.showSaveDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { new TextMethods().saveHapsToText(finishedHaplos, fc.getSelectedFile()); } }catch (IOException ioexec){ JOptionPane.showMessageD...
"New Connection", ArchitectPanelBuilder.OK_BUTTON_LABEL,
"Connection Properties", ArchitectPanelBuilder.OK_BUTTON_LABEL,
public void actionPerformed(ActionEvent e) { TreePath p = getSelectionPath(); if (p == null) { return; } Object [] pathArray = p.getPath(); int ii = 0; SQLDatabase sd = null; while (ii < pathArray.length && sd == null) { if (pathArray[ii] instanceof SQLDatabase) { sd = (SQLDatabase) pathArr...
analysisPositions = new Vector(); analysisValues = new Vector();
public void readAnalysisTrack(File inFile) throws HaploViewException, IOException{ if (!inFile.exists()){ throw new HaploViewException("File " + inFile.getName() + " doesn't exist!"); } BufferedReader in = new BufferedReader(new FileReader(inFile)); String currentLine; ...
dbType.setSelectedIndex(3);
dbType.setSelectedIndex(4);
protected void setup() { GenericDDLGenerator ddlg = project.getDDLGenerator(); setLayout(new FormLayout()); Vector dbTypeList = new Vector(); dbTypeList.add(ASUtils.lvb("Generic JDBC", GenericDDLGenerator.class)); dbTypeList.add(ASUtils.lvb("DB2", DB2DDLGenerator.class)); dbTypeList.add(ASUtils.lvb("Oracle 8i/9i...
dbType.addItem(ASUtils.lvb("Unknwon Generator", ddlg.getClass()));
dbType.addItem(ASUtils.lvb("Unknown Generator", ddlg.getClass()));
protected void setup() { GenericDDLGenerator ddlg = project.getDDLGenerator(); setLayout(new FormLayout()); Vector dbTypeList = new Vector(); dbTypeList.add(ASUtils.lvb("Generic JDBC", GenericDDLGenerator.class)); dbTypeList.add(ASUtils.lvb("DB2", DB2DDLGenerator.class)); dbTypeList.add(ASUtils.lvb("Oracle 8i/9i...
if (dataType != null) {
if (dataType != null && dataType instanceof DataType) {
public Object createDataType(String name) { Object dataType = null; Class type = (Class) getAntProject().getDataTypeDefinitions().get(name); if ( type != null ) { Constructor ctor = null; boolean noArg = false; // DataType can have a "no arg" constructor or take...
if ( ih != null ) {
if ( ih != null && ! (object instanceof AntTag)) {
public Object createNestedObject(Object object, String name) { Object dataType = null; if ( object != null ) { IntrospectionHelper ih = IntrospectionHelper.getHelper( object.getClass() ); if ( ih != null ) { try { dataType = ih.createElement( get...
+ " property on: " + parentObject + " to value: "
+ " property on: " + safeToString(parentObject) + " to value: "
public void doTag(XMLOutput output) throws JellyTagException { Project project = getAntProject(); String tagName = getTagName(); Object parentObject = findBeanAncestor(); Object parentTask = findParentTaskObject(); // lets assume that Task instances are not nested inside other Tas...
log.debug("Caught exception trying to set property: " + tagName + " on: " + parentObject);
log.debug("Caught exception trying to set property: " + tagName + " on: " + safeToString(parentObject));
public void doTag(XMLOutput output) throws JellyTagException { Project project = getAntProject(); String tagName = getTagName(); Object parentObject = findBeanAncestor(); Object parentTask = findParentTaskObject(); // lets assume that Task instances are not nested inside other Tas...
log.debug( "Setting bean property on: "+ object + " name: " + name + " value: " + value );
log.debug( "Setting bean property on: "+ safeToString(object )+ " name: " + name + " value: " + safeToString(value));
public void setBeanProperty(Object object, String name, Object value) throws JellyTagException { if ( log.isDebugEnabled() ) { log.debug( "Setting bean property on: "+ object + " name: " + name + " value: " + value ); } IntrospectionHelper ih = IntrospectionHelper.getHelper( object....
processFile(name,HMP_FILE,"");
processFile(name,HMP_FILE,null);
private void doBatch() { Vector files; File batchFile; File dataFile; String line; StringTokenizer tok; String infoMaybe =null; files = new Vector(); if(batchFileName == null) { return; } batchFile = new File(this.batchFileName); ...
col.setPrimaryKeySeq(colInPK.isSelected() ? new Integer(model.getPkSize()) : null);
if (col.getPrimaryKeySeq() == null) { col.setPrimaryKeySeq(colInPK.isSelected() ? new Integer(model.getPkSize()) : null); } else { col.setPrimaryKeySeq(colInPK.isSelected() ? new Integer(col.getPrimaryKeySeq()) : null); }
protected void updateModel() { logger.debug("Updating model"); try { SQLColumn col = model.getColumn(index); col.setName(colName.getText()); col.setType(((SQLType) colType.getSelectedItem()).type); col.setScale(((Integer) colScale.getValue()).intValue()); col.setPrecision(((Integer) colPrec.getValue()).int...
public void adjustDisplay(int dt){
public void adjustDisplay(){
public void adjustDisplay(int dt){ //this is called when the controller wants to change the haps //displayed, instead of directly repainting so that none of this math //is done when the screen repaints for other reasons (resizing, focus change, etc) //first filter haps on displaythresh ...
if (orderedHaplos[i][j].getPercentage()*100 > dt){
if (orderedHaplos[i][j].getPercentage()*100 > Options.getHaplotypeDisplayThreshold()){
public void adjustDisplay(int dt){ //this is called when the controller wants to change the haps //displayed, instead of directly repainting so that none of this math //is done when the screen repaints for other reasons (resizing, focus change, etc) //first filter haps on displaythresh ...
"Error: At least one block has too few haplotypes of frequency > " + dt,
"Error: At least one block has too few haplotypes of frequency > " + Options.getHaplotypeDisplayThreshold(),
public void adjustDisplay(int dt){ //this is called when the controller wants to change the haps //displayed, instead of directly repainting so that none of this math //is done when the screen repaints for other reasons (resizing, focus change, etc) //first filter haps on displaythresh ...
displayThresh = dt;
public void adjustDisplay(int dt){ //this is called when the controller wants to change the haps //displayed, instead of directly repainting so that none of this math //is done when the screen repaints for other reasons (resizing, focus change, etc) //first filter haps on displaythresh ...
Haplotype[][] haplos = theData.generateHaplotypes(theData.blocks, 0);
Haplotype[][] haplos = theData.generateHaplotypes(theData.blocks, 0,false);
public void getHaps() throws HaploViewException{ if (theData.blocks == null) {return;} Haplotype[][] haplos = theData.generateHaplotypes(theData.blocks, 0); orderedHaplos = new Haplotype[haplos.length][]; for (int i = 0; i < haplos.length; i++) { Vector orderedHaps = new Vecto...
adjustDisplay(displayThresh);
adjustDisplay();
public void getHaps() throws HaploViewException{ if (theData.blocks == null) {return;} Haplotype[][] haplos = theData.generateHaplotypes(theData.blocks, 0); orderedHaplos = new Haplotype[haplos.length][]; for (int i = 0; i < haplos.length; i++) { Vector orderedHaps = new Vecto...
int where = fileSections.indexOf(dbcs); if (where < 0) throw new IllegalArgumentException("dbcs not in list"); fileSections.remove(dbcs); fireRemoveEvent(where, dbcs);
for ( int where=0; where<fileSections.size(); where++ ) { Object o = fileSections.get(where); if (o instanceof ArchitectDataSource) { if ( o.equals(dbcs) ) { fileSections.remove(where); fireRemoveEvent(where, dbcs); return; } } } throw new IllegalArgumentException("dbcs not in list");
public void removeDataSource(ArchitectDataSource dbcs) { int where = fileSections.indexOf(dbcs); if (where < 0) throw new IllegalArgumentException("dbcs not in list"); fileSections.remove(dbcs); fireRemoveEvent(where, dbcs); }
Relationship r = new Relationship(playPen, rel);
r = new Relationship(playPen, rel);
public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create r...
return r;
int pkx = Integer.parseInt(attributes.getValue("pk-x")); int pky = Integer.parseInt(attributes.getValue("pk-y")); int fkx = Integer.parseInt(attributes.getValue("fk-x")); int fky = Integer.parseInt(attributes.getValue("fk-y")); r.setPkConnectionPoint(new Point(pkx, pky)); r.setFkConnectionPoint(new Point(fkx, fky));
public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create r...
return null;
} catch (NumberFormatException e) { logger.warn("Didn't set connection points because of integer parse error"); } catch (NullPointerException e) { logger.debug("No pk/fk connection points specified in save file;" +" not setting custom connection points");
public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create r...
return r;
public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create r...
+ playPen.getComponentCount() * 2;
+ playPen.getPPComponentCount() * 2;
public void save(ProgressMonitor pm) throws IOException, ArchitectException { out = new PrintWriter(new BufferedWriter(new FileWriter(file))); objectIdMap = new HashMap(); dbcsIdMap = new HashMap(); indent = 0; this.pm = pm; pm.setMinimum(0); int pmMax = countSourceTables((SQLObject) sourceDatabases.getModel()....
int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); println("<table-pane table-ref=\""+objectIdMap.get(tp.getModel())+"\"" +" x=\""+p.x+"\" y=\""+p.y+"\" />"); pm.setProgres...
Iterator it = playPen.getTablePanes().iterator(); while (it.hasNext()) { TablePane tp = (TablePane) it.next(); Point p = tp.getLocation(); println("<table-pane table-ref=\""+objectIdMap.get(tp.getModel())+"\"" +" x=\""+p.x+"\" y=\""+p.y+"\" />"); pm.setProgress(++progress); pm.setNote(tp.getModel().getShortDisplayName(...
protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr...
Iterator it = playPen.getRelationships().iterator();
it = playPen.getRelationships().iterator();
protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr...
println("<table-link relationship-ref=\""+objectIdMap.get(r.getModel())+"\" />");
println("<table-link relationship-ref=\""+objectIdMap.get(r.getModel())+"\"" +" pk-x=\""+r.getPkConnectionPoint().x+"\"" +" pk-y=\""+r.getPkConnectionPoint().y+"\"" +" fk-x=\""+r.getFkConnectionPoint().x+"\"" +" fk-y=\""+r.getFkConnectionPoint().y+"\" />");
protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr...
propNames.put("pkCardinality", new Integer(((SQLRelationship) o).getPkCardinality())); propNames.put("fkCardinality", new Integer(((SQLRelationship) o).getFkCardinality())); propNames.put("identifying", new Boolean(((SQLRelationship) o).isIdentifying()));
protected void saveSQLObject(SQLObject o) throws IOException, ArchitectException { String id = (String) objectIdMap.get(o); if (id != null) { println("<reference ref-id=\""+id+"\" />"); return; } String type; Map propNames = new TreeMap(); if (o instanceof SQLDatabase) { id = "DB"+objectIdMap.size(); ...
new org.dom4j.io.XMLWriter(new java.io.FileOutputStream("file.xml")).write(document);
public void testExample1() throws Exception { Document document = runScript( "src/test/org/apache/commons/jelly/jsl/example.jelly" ); Element small = (Element) document.selectSingleNode("/html/body/small"); new org.dom4j.io.XMLWriter(new java.io.FileOutputStream("file.xml")).write(document); ...
StringTokenizer toks = new StringTokenizer(arg, "="); if (toks.countTokens() == 2) { sysProps.setProperty(toks.nextToken(), toks.nextToken()); } else { System.err.println("Invalid system property: " + arg); }
int ePos = arg.indexOf("="); if(ePos==-1 || ePos==0 || ePos==arg.length()-1) System.err.println("Invalid system property: \"" + arg + "\"."); sysProps.setProperty(arg.substring(0,ePos), arg.substring(ePos+1));
public CommandLine parseCommandLineOptions(String[] args) throws ParseException { // create the expected options Options cmdLineOptions = new Options(); cmdLineOptions.addOption("o", true, "Output file"); cmdLineOptions.addOption("script", true, "Jelly script to run"); // -D optio...
JTable table = checkPanel.getTable(); FileWriter checkWriter = new FileWriter(outfile); int numCols = table.getColumnCount(); StringBuffer header = new StringBuffer(); for (int i = 0; i < numCols; i++){ header.append(table.getColumnName(i)).append("\t"); } header.append("\n"); checkWriter.write(header.toString()); for...
checkPanel.printTable(outfile);
void export(int tabNum, int format, int start, int stop){ fc.setSelectedFile(new File("")); if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){ File outfile = fc.getSelectedFile(); if (format == PNG_MODE){ BufferedImage image; if (tabNum == ...
try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" );
if ( event.getPriority() > Project.MSG_INFO && ! isDebug() ) { return; } try { if ( ! this.taskStack.isEmpty() ) { out.write( " [" + this.taskStack.peek() + "] " );
public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ...
else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" );
switch ( event.getPriority() ) { case ( Project.MSG_ERR ): { out.write( "[ERROR] "); break; } case ( Project.MSG_WARN ): { break; } case ( Project.MSG_INFO ): { break; } case ( Project.MSG_VERBOSE ): { out.write( "[VERBOSE] "); break; } case ( Project.MSG_DEBUG ): { out.write( "[DEBUG] "); break; }
public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ...
} catch (SAXException e) {
out.write( event.getMessage() + "\n" ); out.flush(); } catch (SAXException e) { System.err.println( event.getMessage() ); System.err.flush(); } catch (IOException e) {
public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ...
SwingUtilities.paintComponent(g2, pp, new Container(), 0, 0, scaledWidth, scaledHeight); ArchitectFrame.getMainInstance().splitPane.setRightComponent(pp);
for (int i = 0; i < pp.getPlayPenContentPane().getComponentCount(); i++) { PlayPenComponent ppc = pp.getPlayPenContentPane().getComponent(i); g2.translate(ppc.getX(), ppc.getY()); ppc.paint(g2); g2.translate(-ppc.getX(), -ppc.getY()); }
public void paintComponent(Graphics g) { validateLayout(); Graphics2D g2 = (Graphics2D) g; g2.setColor(pp.getBackground()); g2.fill(new Rectangle(0, 0, getWidth(), getHeight())); double zoom = calculateZoom(); int scaledWidth = (int) (getWidth()/zoom); int scaledHeight = (int) (getHeight()/zoom); i...
pageFormat = pf; if (pf != oldPF) { validateLayout(); pageFormatLabel.setText(paperToPrintable(pageFormat)); firePropertyChange("pageFormat", oldPF, pageFormat);
if ( pf != null ) { pageFormat = pf; if (pf != oldPF) { validateLayout(); pageFormatLabel.setText(paperToPrintable(pageFormat)); firePropertyChange("pageFormat", oldPF, pageFormat); }
public void setPageFormat(PageFormat pf) { PageFormat oldPF = pageFormat; pageFormat = pf; if (pf != oldPF) { validateLayout(); pageFormatLabel.setText(paperToPrintable(pageFormat)); firePropertyChange("pageFormat", oldPF, pageFormat); } }
public void run() { logger.debug("current motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); System.setProperty("awt.dnd.drag.threshold","50"); logger.debug("new motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); getMainInstance().macOSXRegistration(); getMainInstance().set...
public void run() { Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler()); logger.debug("current motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); System.setProperty("awt.dnd.drag.threshold","10"); logger.debug("new motion threshold is: " + System.getProperty("awt.dnd.drag.threshold"...
public static void main(String args[]) throws ArchitectException { ArchitectUtils.startup(); System.setProperty("apple.laf.useScreenMenuBar", "true"); ArchitectUtils.configureLog4j(); getMainInstance(); SwingUtilities.invokeLater(new Runnable() { public void run() { //...
logger.debug("current motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); System.setProperty("awt.dnd.drag.threshold","50"); logger.debug("new motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); getMainInstance().macOSXRegistration(); getMainInstance().setVisible(true); }
Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler()); logger.debug("current motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); System.setProperty("awt.dnd.drag.threshold","10"); logger.debug("new motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); getMainInstance...
public void run() { // this doesn't appear to have any effect on the motion threshold // in the Playpen, but it does seem to work on the DBTree... logger.debug("current motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); System.setProperty("awt.dnd.drag.threshold","50"); ...
StringTokenizer enum = new StringTokenizer( text, "," );
StringTokenizer items = new StringTokenizer( text, "," );
public Point parse(String text) { StringTokenizer enum = new StringTokenizer( text, "," ); int x = 0; int y = 0; if ( enum.hasMoreTokens() ) { x = parseNumber( enum.nextToken() ); }
x = parseNumber( enum.nextToken() );
y = parseNumber( items.nextToken() );
public Point parse(String text) { StringTokenizer enum = new StringTokenizer( text, "," ); int x = 0; int y = 0; if ( enum.hasMoreTokens() ) { x = parseNumber( enum.nextToken() ); }
r.showPopup(r.popup, evt.getPoint());
r.showPopup(r.popup, p);
public boolean maybeShowPopup(MouseEvent evt) { Point p = evt.getPoint(); unzoomPoint(p); PlayPenComponent c = contentPane.getComponentAt(p); if (c != null) p.translate(-c.getX(), -c.getY()); if ( c instanceof Relationship) { if (evt.isPopupTrigger() && !evt.isConsumed()) { Relationship r = (Relat...
Method invokeMethod = getInvokeMethod( theClass );
public void doTag(XMLOutput output) throws Exception { invokeBody(output); if (name == null) { throw new MissingAttributeException("name"); } if (className == null) { throw new MissingAttributeException("className"); } Class theClass = null; try { ClassLoader classLoader = getClas...
BeanTag tag = new BeanTag(theClass, attributes, varAttribute, invokeMethod); getTagLibrary().registerBeanTag(name, tag);
final Class beanClass = theClass; final Method invokeMethod = getInvokeMethod( theClass ); final Map beanAttributes = attributes; TagFactory factory = new TagFactory() { public Tag createTag() { return new BeanTag(beanClass, beanAttributes, varAttribute, invokeMethod); } }; getTagLibrary().registerBeanTag(name, facto...
public void doTag(XMLOutput output) throws Exception { invokeBody(output); if (name == null) { throw new MissingAttributeException("name"); } if (className == null) { throw new MissingAttributeException("className"); } Class theClass = null; try { ClassLoader classLoader = getClas...
Vector result = null;
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i...
result = textData.linkageToChrom(inputFile, PED);
textData.linkageToChrom(inputFile, PED);
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i...
result = textData.linkageToChrom(inputFile,HMP);
textData.linkageToChrom(inputFile,HMP);
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i...
if (result != null){
if (fileType != HAPS){
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i...
if (result != null){
Vector result = null; if (fileType != HAPS){ result = textData.getPedFile().getResults();
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i...
public TDTPanel(PedFile pf, int t){
public TDTPanel(PedFile pf, int t) throws PedFileException{
public TDTPanel(PedFile pf, int t){ type = t; if (type == 1){ result = TDT.calcTrioTDT(pf); }else{ result = TDT.calcCCTDT(pf); } tableColumnNames.add("#"); tableColumnNames.add("Name"); if (type == 1){ tableColumnNames.add("Overtransm...
private OpenProjectAction() {
private OpenProjectAction(RecentMenu recent) {
private OpenProjectAction() { super("Open Project...", ASUtils.createJLFIcon("general/Open", "Open Project", sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); putValue(AbstractAction.SHORT_DESCRIPTION, "Open"); putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O, ...
this.recent = recent;
private OpenProjectAction() { super("Open Project...", ASUtils.createJLFIcon("general/Open", "Open Project", sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); putValue(AbstractAction.SHORT_DESCRIPTION, "Open"); putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O, ...
recent.putRecentFileName(f.getAbsolutePath());
public void actionPerformed(ActionEvent e) { if (promptForUnsavedModifications()) { JFileChooser chooser = new JFileChooser(); chooser.addChoosableFileFilter(ASUtils.ARCHITECT_FILE_FILTER); int returnVal = chooser.showOpenDialog(ArchitectFrame.this); if (returnVal == JFileChoo...
Iterator it = project.getSourceDatabases().getDatabaseList().iterator();;
Iterator it = project.getSourceDatabases().getDatabaseList().iterator();
protected void closeProject(SwingUIProject project) { // close connections Iterator it = project.getSourceDatabases().getDatabaseList().iterator();; while (it.hasNext()) { SQLDatabase db = (SQLDatabase) it.next(); logger.debug ("closing connection: " + db.getName()); db.disconnect(); } }
openProjectAction = new OpenProjectAction();
final RecentMenu recent = new RecentMenu(this) { @Override public void loadFile(String fileName) throws IOException { openFile(fileName); } }; openProjectAction = new OpenProjectAction(recent); JMenuItem clearItem = new JMenuItem("Clear Recent Files"); clearItem.addActionListener(new ActionListener() { public void act...
protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty...
bounds.x = sprefs.getInt(SwingUserSettings.MAIN_FRAME_X, 40); bounds.y = sprefs.getInt(SwingUserSettings.MAIN_FRAME_Y, 40); bounds.width = sprefs.getInt(SwingUserSettings.MAIN_FRAME_WIDTH, 600); bounds.height = sprefs.getInt(SwingUserSettings.MAIN_FRAME_HEIGHT, 440);
bounds.x = prefs.getInt(SwingUserSettings.MAIN_FRAME_X, 40); bounds.y = prefs.getInt(SwingUserSettings.MAIN_FRAME_Y, 40); bounds.width = prefs.getInt(SwingUserSettings.MAIN_FRAME_WIDTH, 600); bounds.height = prefs.getInt(SwingUserSettings.MAIN_FRAME_HEIGHT, 440);
protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty...
saveOrSaveAs(true, true); }
recent.clear(); }
public void actionPerformed(ActionEvent e) { saveOrSaveAs(true, true); }
playpen.setZoom(1.0);
saveOrSaveAs(false, true);
public void actionPerformed(ActionEvent e) { playpen.setZoom(1.0); }
sprefs.setInt(SwingUserSettings.DIVIDER_LOCATION, splitPane.getDividerLocation()); sprefs.setInt(SwingUserSettings.MAIN_FRAME_X, getLocation().x); sprefs.setInt(SwingUserSettings.MAIN_FRAME_Y, getLocation().y); sprefs.setInt(SwingUserSettings.MAIN_FRAME_WIDTH, getWidth()); sprefs.setInt(SwingUserSettings.MAIN_FRAME_HEI...
prefs.putInt(SwingUserSettings.DIVIDER_LOCATION, splitPane.getDividerLocation()); prefs.putInt(SwingUserSettings.MAIN_FRAME_X, getLocation().x); prefs.putInt(SwingUserSettings.MAIN_FRAME_Y, getLocation().y); prefs.putInt(SwingUserSettings.MAIN_FRAME_WIDTH, getWidth()); prefs.putInt(SwingUserSettings.MAIN_FRAME_HEIGHT, ...
public void saveSettings() throws ArchitectException { if (configFile == null) configFile = ConfigFile.getDefaultInstance(); sprefs.setInt(SwingUserSettings.DIVIDER_LOCATION, splitPane.getDividerLocation()); sprefs.setInt(SwingUserSettings.MAIN_FRAME_X, getLocation().x); sprefs.setInt(SwingUserSettings.MAIN_FRAME_...
System.out.println("Data check results:\n" + "Name\tObsHET\tPredHET\tHWpval\t%Geno\tFamTrio\tMendErr"); for(int i=0;i<result.size();i++){ MarkerResult currentResult = (MarkerResult)result.get(i); System.out.println( Chromosome.getMarker(i).getName() +"\t"+ currentResult.getObsHet() +"\t"+ currentResult.getP...
CheckDataPanel cp = new CheckDataPanel(textData); cp.printTable(null);
private void processFile(String fileName,int fileType,String infoFileName){ System.out.println(TITLE_STRING); try { int outputType; long maxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ...
OutputFile = new File (fileName + ".CHECK"); FileWriter saveCheckWriter = new FileWriter(OutputFile); saveCheckWriter.write("Name\tObsHET\tPredHET\tHWpval\t%Geno\tFamTrio\tMendErr\n"); for(int i=0;i<result.size();i++){ MarkerResult currentResult = (MarkerResult)result.get(i); saveCheckWriter.write( Chromosome.getMarker...
CheckDataPanel cp = new CheckDataPanel(textData); cp.printTable(new File (fileName + ".CHECK"));
private void processFile(String fileName,int fileType,String infoFileName){ System.out.println(TITLE_STRING); try { int outputType; long maxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ...
db.open( "repository.xml", Database.OPEN_READ_WRITE );
db.open( "pv_test#" + user + "#" + passwd, Database.OPEN_READ_WRITE );
public static Database getODMGDatabase() { if ( db == null ) { db = odmg.newDatabase(); try { db.open( "repository.xml", Database.OPEN_READ_WRITE ); } catch ( ODMGException e ) {// log.warn( "Could not open database: " + e.getMessage() ); db = null; } } return db; }
log.error( "Could not open database: " + e.getMessage() );
public static Database getODMGDatabase() { if ( db == null ) { db = odmg.newDatabase(); try { db.open( "repository.xml", Database.OPEN_READ_WRITE ); } catch ( ODMGException e ) {// log.warn( "Could not open database: " + e.getMessage() ); db = null; } } return db; }
String volumeRoot = "c:\\temp\\photoVaultImageInstanceTest";
public void setUp() { try { photo = PhotoInfo.retrievePhotoInfo( 1 ); } catch ( Exception e ) { fail( "Unable to retrieve PhotoInfo object" ); } String volumeRoot = "c:\\temp\\photoVaultImageInstanceTest"; volume = new Volume( "imageInstanceTest", volumeRoot ); }
File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" );
File testFile = new File( testImgDir, "test1.jpg" );
public void testImageInstanceCreate() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance....
File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" );
File testFile = new File( testImgDir, "test1.jpg" );
public void testImageInstanceDelete() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.c...
ResultSet rs = stmt.executeQuery( "SELECT * FROM image_files WHERE dirname = \"c:\\java\\photovault\\testfiles\" AND fname = \"test1.jpg\"" );
ResultSet rs = stmt.executeQuery( "SELECT * FROM image_instances WHERE dirname = \"" + testImgDir + "\" AND fname = \"test1.jpg\"" );
public void testImageInstanceDelete() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.c...
File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" );
File testFile = new File( testImgDir, "test1.jpg" );
public void testImageInstanceUpdate() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance....
logger.debug("Glass pane is "+getGlassPane()); getGlassPane().setVisible(true);
logger.debug("Glass pane is "+getGlassPane());
protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty...
logger.debug("Glass pane is "+getGlassPane()); getGlassPane().setVisible(true);
logger.debug("Glass pane is "+getGlassPane());
public void actionPerformed(ActionEvent e) { if (promptForUnsavedModifications()) { try { closeProject(getProject()); setProject(new SwingUIProject("New Project")); logger.debug("Glass pane is "+getGlassPane()); getGlassPane().setVisible(true); ...
PhotoCollectionChangeEvent e = new PhotoCollectionChangeEvent( f ); treeModel.photoCollectionChanged( e );
public void addAllToFolder( PhotoFolder f ) { addedToFolders.add( f ); removedFromFolders.remove( f ); FolderNode fn = (FolderNode)nodeMapper.mapFolderToNode( f ); fn.addAllPhotos(); // Notify the tree model that representation of this node may // be changed // treeModel.nodeChanged( fn ); }
PhotoCollectionChangeEvent e = new PhotoCollectionChangeEvent( f ); treeModel.photoCollectionChanged( e );
public void removeAllFromFolder( PhotoFolder f ) { addedToFolders.remove( f ); removedFromFolders.add( f ); FolderNode fn = (FolderNode) nodeMapper.mapFolderToNode( f ); fn.removeAllPhotos(); // treeModel.nodeChanged(treeNode); }
if (caller.dPrimeDisplay != null){ caller.dPrimeDisplay.setVisible(false); caller.dPrimeDisplay = null; } if (caller.hapDisplay != null){ caller.hapDisplay.setVisible(false); caller.hapDisplay = null; }
caller.clearDisplays();
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e...
setPkConnectionPoint(ui.closestEdgePoint(true, getPkConnectionPoint()));
setPkConnectionPoint(((RelationshipUI) getUI()).closestEdgePoint(true, getPkConnectionPoint()));
public void componentResized(PlayPenComponentEvent e) { logger.debug("Component "+e.getPPComponent().getName()+" changed size"); if (e.getPPComponent() == pkTable) { setPkConnectionPoint(ui.closestEdgePoint(true, getPkConnectionPoint())); // true == PK } if (e.getPPComponent() == fkTable) { setFkConnect...