bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void drop(DropTargetDropEvent dtde) { PlayPen pp = tp.getPlayPen(); Point loc = pp.unzoomPoint(new Point(dtde.getLocation())); loc.x -= tp.getX(); loc.y -= tp.getY(); logger.debug("Drop target drop event on "+tp.getName()+": "+dtde); Transferable t = dtde.getTransferable(); DataFlavor importFlavo...
public void drop(DropTargetDropEvent dtde) { PlayPen pp = tp.getPlayPen(); Point loc = pp.unzoomPoint(new Point(dtde.getLocation())); loc.x -= tp.getX(); loc.y -= tp.getY(); logger.debug("Drop target drop event on "+tp.getName()+": "+dtde); Transferable t = dtde.getTransferable(); DataFlavor importFlavo...
1,110,557
public void drop(DropTargetDropEvent dtde) { PlayPen pp = tp.getPlayPen(); Point loc = pp.unzoomPoint(new Point(dtde.getLocation())); loc.x -= tp.getX(); loc.y -= tp.getY(); logger.debug("Drop target drop event on "+tp.getName()+": "+dtde); Transferable t = dtde.getTransferable(); DataFlavor importFlavo...
public void drop(DropTargetDropEvent dtde) { PlayPen pp = tp.getPlayPen(); Point loc = pp.unzoomPoint(new Point(dtde.getLocation())); loc.x -= tp.getX(); loc.y -= tp.getY(); logger.debug("Drop target drop event on "+tp.getName()+": "+dtde); Transferable t = dtde.getTransferable(); DataFlavor importFlavo...
1,110,558
public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { TablePane tp = (TablePane) evt.getSource(); if (tp.isSelected()) { ArchitectFrame af = ArchitectFrame.getMainInstance(); int selectedColIndex = tp.getSelectedColumnIndex(); if (selectedColIndex == COLUMN_INDEX_NONE) { af.editT...
public void mouseClicked(MouseEvent evt) { if ((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0 && evt.getClickCount() == 2) { TablePane tp = (TablePane) evt.getSource(); if (tp.isSelected()) { ArchitectFrame af = ArchitectFrame.getMainInstance(); int selectedColIndex = tp.getSelectedColumnIndex(); if...
1,110,559
void browse(int browseType){ String name; String markerInfoName = ""; HaploView h = (HaploView) this.getParent(); h.fc.setSelectedFile(new File("")); int returned = h.fc.showOpenDialog(this); if (returned != JFileChooser.APPROVE_OPTION) return; File file = h.fc.getSe...
void browse(int browseType){ String name; String markerInfoName = ""; HaploView h = (HaploView) this.getParent(); h.fc.setSelectedFile(new File("")); int returned = h.fc.showOpenDialog(this); if (returned != JFileChooser.APPROVE_OPTION) return; File file = h.fc.getSe...
1,110,560
public static String appendURLParam(String url, String param, String value){ StringBuffer urlString = new StringBuffer(url); if (url.indexOf("?") == -1) { urlString.append("?"); }else if(url.endsWith("&") == false) { urlString.append("&"); } urlString.append(...
public static String appendURLParam(String url, String param, String value){ StringBuffer urlString = new StringBuffer(url); if (url.indexOf("?") == -1) { urlString.append("?"); }else if(url.endsWith("&") == false) { urlString.append("&"); } urlString.append(...
1,110,563
public void doTag(XMLOutput output) throws Exception { invokeBody(output); if (name == null) { throw new MissingAttributeException("name"); } if (dynaClass == null) { throw new MissingAttributeException("dynaClass"); } final DynaClass theDynaClass = dynaClass; final Map ...
public void doTag(XMLOutput output) throws Exception { invokeBody(output); if (name == null) { throw new MissingAttributeException("name"); } if (dynaClass == null) { throw new MissingAttributeException("dynaClass"); } final DynaClass theDynaClass = dynaClass; final Map ...
1,110,564
public Tag createTag() { return new DynamicDynaBeanTag(theDynaClass, beanAttributes, varAttribute); }
public Tag createTag(String name, Attributes attributes) { return new DynamicDynaBeanTag(theDynaClass, beanAttributes, varAttribute); }
1,110,565
public String computeDPrime(int a, int b, int c, int d, int e, double f){ int i,j,k,count,itmp; int low_i = 0; int high_i = 0; double[] nAA = new double[1]; double[] nBB = new double[1]; double[] nAB = new double[1]; double[] nBA = new double[1]; double[] pAA = new double[1]; double[] pBB = new double[1]; double[...
public String computeDPrime(int a, int b, int c, int d, int e, double f){ int i,j,k,count,itmp; int low_i = 0; int high_i = 0; double[] nAA = new double[1]; double[] nBB = new double[1]; double[] nAB = new double[1]; double[] nBA = new double[1]; double[] pAA = new double[1]; double[] pBB = new double[1]; double[...
1,110,566
public String computeDPrime(int a, int b, int c, int d, int e, double f){ int i,j,k,count,itmp; int low_i = 0; int high_i = 0; double[] nAA = new double[1]; double[] nBB = new double[1]; double[] nAB = new double[1]; double[] nBA = new double[1]; double[] pAA = new double[1]; double[] pBB = new double[1]; double[...
public String computeDPrime(int a, int b, int c, int d, int e, double f){ int i,j,k,count,itmp; int low_i = 0; int high_i = 0; double[] nAA = new double[1]; double[] nBB = new double[1]; double[] nAB = new double[1]; double[] nBA = new double[1]; double[] pAA = new double[1]; double[] pBB = new double[1]; double[...
1,110,567
public String computeDPrime(int a, int b, int c, int d, int e, double f){ int i,j,k,count,itmp; int low_i = 0; int high_i = 0; double[] nAA = new double[1]; double[] nBB = new double[1]; double[] nAB = new double[1]; double[] nBA = new double[1]; double[] pAA = new double[1]; double[] pBB = new double[1]; double[...
public String computeDPrime(int a, int b, int c, int d, int e, double f){ int i,j,k,count,itmp; int low_i = 0; int high_i = 0; double[] nAA = new double[1]; double[] nBB = new double[1]; double[] nAB = new double[1]; double[] nBA = new double[1]; double[] pAA = new double[1]; double[] pBB = new double[1]; double[...
1,110,568
private File getNewFname( java.util.Date date, String strExtension ) { System.err.println( "getNewFname " + date + " " + strExtension ); SimpleDateFormat fmt = new SimpleDateFormat( "yyyy" ); String strYear = fmt.format( date ); fmt.applyPattern( "yyyyMM" ); String strMonth = fmt.format( date ); fmt.applyPat...
private File getNewFname( java.util.Date date, String strExtension ) { log.debug( "getNewFname " + date + " " + strExtension ); SimpleDateFormat fmt = new SimpleDateFormat( "yyyy" ); String strYear = fmt.format( date ); fmt.applyPattern( "yyyyMM" ); String strMonth = fmt.format( date ); fmt.applyPattern( "yy...
1,110,569
private File getNewFname( java.util.Date date, String strExtension ) { System.err.println( "getNewFname " + date + " " + strExtension ); SimpleDateFormat fmt = new SimpleDateFormat( "yyyy" ); String strYear = fmt.format( date ); fmt.applyPattern( "yyyyMM" ); String strMonth = fmt.format( date ); fmt.applyPat...
private File getNewFname( java.util.Date date, String strExtension ) { System.err.println( "getNewFname " + date + " " + strExtension ); SimpleDateFormat fmt = new SimpleDateFormat( "yyyy" ); String strYear = fmt.format( date ); fmt.applyPattern( "yyyyMM" ); String strMonth = fmt.format( date ); fmt.applyPat...
1,110,570
private File getNewFname( java.util.Date date, String strExtension ) { System.err.println( "getNewFname " + date + " " + strExtension ); SimpleDateFormat fmt = new SimpleDateFormat( "yyyy" ); String strYear = fmt.format( date ); fmt.applyPattern( "yyyyMM" ); String strMonth = fmt.format( date ); fmt.applyPat...
private File getNewFname( java.util.Date date, String strExtension ) { System.err.println( "getNewFname " + date + " " + strExtension ); SimpleDateFormat fmt = new SimpleDateFormat( "yyyy" ); String strYear = fmt.format( date ); fmt.applyPattern( "yyyyMM" ); String strMonth = fmt.format( date ); fmt.applyPat...
1,110,571
private File getNewFname( java.util.Date date, String strExtension ) { System.err.println( "getNewFname " + date + " " + strExtension ); SimpleDateFormat fmt = new SimpleDateFormat( "yyyy" ); String strYear = fmt.format( date ); fmt.applyPattern( "yyyyMM" ); String strMonth = fmt.format( date ); fmt.applyPat...
private File getNewFname( java.util.Date date, String strExtension ) { System.err.println( "getNewFname " + date + " " + strExtension ); SimpleDateFormat fmt = new SimpleDateFormat( "yyyy" ); String strYear = fmt.format( date ); fmt.applyPattern( "yyyyMM" ); String strMonth = fmt.format( date ); fmt.applyPat...
1,110,572
public String getRatios() { //if the array is null this is a block-title node, not an actual hap if (counts == null){ return (""); } nf.setMinimumFractionDigits(1); nf.setMaximumFractionDigits(1); for(int i= 0;i<counts.length;i++) { for(int j= 0;j<coun...
public String getRatios() { //if the array is null this is a block-title node, not an actual hap if (counts == null){ return (""); } nf.setMinimumFractionDigits(1); nf.setMaximumFractionDigits(1); for(int i= 0;i<counts.length;i++) { for(int j= 0;j<coun...
1,110,573
public String getRatios() { //if the array is null this is a block-title node, not an actual hap if (counts == null){ return (""); } nf.setMinimumFractionDigits(1); nf.setMaximumFractionDigits(1); for(int i= 0;i<counts.length;i++) { for(int j= 0;j<coun...
public String getRatios() { //if the array is null this is a block-title node, not an actual hap if (counts == null){ return (""); } nf.setMinimumFractionDigits(1); nf.setMaximumFractionDigits(1); for(int i= 0;i<counts.length;i++) { for(int j= 0;j<coun...
1,110,574
public String getRatios() { //if the array is null this is a block-title node, not an actual hap if (counts == null){ return (""); } nf.setMinimumFractionDigits(1); nf.setMaximumFractionDigits(1); for(int i= 0;i<counts.length;i++) { for(int j= 0;j<coun...
public String getRatios() { //if the array is null this is a block-title node, not an actual hap if (counts == null){ return (""); } nf.setMinimumFractionDigits(1); nf.setMaximumFractionDigits(1); for(int i= 0;i<counts.length;i++) { for(int j= 0;j<coun...
1,110,575
public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { ArchitectFrame.getMainInstance().editRelationshipAction.actionPerformed (new ActionEvent(evt.getSource(), ActionEvent.ACTION_PERFORMED, "DoubleClick")); } }
public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { ArchitectFrame.getMainInstance().editRelationshipAction.actionPerformed (new ActionEvent(evt.getSource(), ActionEvent.ACTION_PERFORMED, ArchitectSwingConstants.ACTION_COMMAND_SRC_PLAYPEN)); } }
1,110,576
public PhotoCollection getCollection() { return photoCollection; }
public PhotoCollection getCollection() { if ( photoCollection != null ) { return photoCollection.getOrigCollection(); } return null; }
1,110,577
public Tag createTag ( ) throws Exception { return new ConstraintTag ( this ); }
public Tag createTag(String name, Attributes attributes) throws Exception { return new ConstraintTag ( this ); }
1,110,578
public Tag createTag ( ) { return new ConstraintTag ( this ); // still scratching my head about "this" usage... }
public Tag createTag(String name, Attributes attributes) { return new ConstraintTag ( this ); // still scratching my head about "this" usage... }
1,110,579
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ...
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ...
1,110,581
public String toIdentifier(String logicalName, String physicalName) { // replace spaces with underscores if (logicalName == null) return null; logger.debug("getting physical name for: " + logicalName); String ident = logicalName.replace(' ','_'); logger.debug("after replace of spaces: " + ident); // see if it's ...
private String toIdentifier(String logicalName, String physicalName) { // replace spaces with underscores if (logicalName == null) return null; logger.debug("getting physical name for: " + logicalName); String ident = logicalName.replace(' ','_'); logger.debug("after replace of spaces: " + ident); // see if it's...
1,110,582
public void doTag(XMLOutput output) throws JellyTagException { StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyTagException( "<applyTemplates> tag must be inside a <stylesheet> tag" ); } ...
public void doTag(XMLOutput output) throws JellyTagException { StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyTagException( "<applyTemplates> tag must be inside a <stylesheet> tag" ); } ...
1,110,583
public void doTag(XMLOutput output) throws JellyTagException { StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyTagException( "<applyTemplates> tag must be inside a <stylesheet> tag" ); } ...
public void doTag(XMLOutput output) throws JellyTagException { StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyTagException( "<applyTemplates> tag must be inside a <stylesheet> tag" ); } ...
1,110,584
public static void setDataChrom(String chrom) { dataChrom = chrom.toLowerCase(); }
public static void setDataChrom(String chrom) { if (chrom != null){ dataChrom = chrom.toLowerCase(); }else{ dataChrom = null; } }
1,110,585
public static Vector calcCCTDT(Vector chromosomes){ Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for (int i = 0; i < numMarkers; i++){ TDTResult thisResult = new TDTResult(Chromosome.getUnfilteredMarker(i)); for (int j = 0; j < chromosome...
public static Vector calcCCTDT(PedFile pf){ Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for (int i = 0; i < numMarkers; i++){ TDTResult thisResult = new TDTResult(Chromosome.getUnfilteredMarker(i)); for (int j = 0; j < chromosomes.size()...
1,110,586
public static Vector calcCCTDT(Vector chromosomes){ Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for (int i = 0; i < numMarkers; i++){ TDTResult thisResult = new TDTResult(Chromosome.getUnfilteredMarker(i)); for (int j = 0; j < chromosome...
public static Vector calcCCTDT(Vector chromosomes){ Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for (int i = 0; i < numMarkers; i++){ TDTResult thisResult = new TDTResult(Chromosome.getUnfilteredMarker(i)); for (int j = 0; j < chromosome...
1,110,587
public static Vector calcTrioTDT(Vector chromosomes) { Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for(int k=0;k<numMarkers;k++){ results.add(new TDTResult(Chromosome.getUnfilteredMarker(k))); } for(int i=0;i<chromosomes.size()-3;i++)...
public static Vector calcTrioTDT(PedFile pf) throws PedFileException{ Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for(int k=0;k<numMarkers;k++){ results.add(new TDTResult(Chromosome.getUnfilteredMarker(k))); } for(int i=0;i<chromosome...
1,110,588
public static Vector calcTrioTDT(Vector chromosomes) { Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for(int k=0;k<numMarkers;k++){ results.add(new TDTResult(Chromosome.getUnfilteredMarker(k))); } for(int i=0;i<chromosomes.size()-3;i++)...
public static Vector calcTrioTDT(Vector chromosomes) { Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for(int k=0;k<numMarkers;k++){ results.add(new TDTResult(Chromosome.getUnfilteredMarker(k))); } for(int i=0;i<chromosomes.size()-3;i++)...
1,110,589
public static Vector calcTrioTDT(Vector chromosomes) { Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for(int k=0;k<numMarkers;k++){ results.add(new TDTResult(Chromosome.getUnfilteredMarker(k))); } for(int i=0;i<chromosomes.size()-3;i++)...
public static Vector calcTrioTDT(Vector chromosomes) { Vector results = new Vector(); int numMarkers = Chromosome.getUnfilteredSize(); for(int k=0;k<numMarkers;k++){ results.add(new TDTResult(Chromosome.getUnfilteredMarker(k))); results.add(thisResult); } for(int i=0;i<...
1,110,590
public Statement createStatement() throws SQLException { return connection.createStatement(); }
public Statement createStatement() throws SQLException { return connection.createStatement(); }
1,110,591
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; long poss_full;//, best, h1, h2; int num_indivs=0...
1,110,592
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
1,110,593
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
1,110,594
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
1,110,595
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int num_indivs=0;...
1,110,596
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if ( cmd == PHOTO_PROPS_CMD ) { showSelectionPropsDialog(); } else if ( cmd == PHOTO_SHOW_CMD ) { showSelectedPhoto(); } else if ( cmd == PHOTO_ROTATE_CW_CMD ) { rotateSelecte...
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if ( cmd == PHOTO_PROPS_CMD ) { showSelectionPropsDialog(); } else if ( cmd == PHOTO_SHOW_CMD ) { showSelectedPhoto(); } else if ( cmd == PHOTO_ROTATE_CW_CMD ) { rotateSelecte...
1,110,598
void createUI() { photoTransferHandler = new PhotoCollectionTransferHandler( this ); setTransferHandler( photoTransferHandler ); addMouseListener( this ); addMouseMotionListener( this ); // Create the popup menu popup = new JPopupMenu(); JMenuItem props...
void createUI() { photoTransferHandler = new PhotoCollectionTransferHandler( this ); setTransferHandler( photoTransferHandler ); addMouseListener( this ); addMouseMotionListener( this ); // Create the popup menu popup = new JPopupMenu(); JMenuItem props...
1,110,600
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { // Current position in which attributes can be drawn int ypos = starty + rowHeight/2; if ( photo != null ) { Thumbnail thumbnail = photo.getThumbnail(); if (...
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { // Current position in which attributes can be drawn int ypos = starty + rowHeight/2; if ( photo != null ) { Thumbnail thumbnail = photo.getThumbnail(); if (...
1,110,602
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { // Current position in which attributes can be drawn int ypos = starty + rowHeight/2; if ( photo != null ) { Thumbnail thumbnail = photo.getThumbnail(); if (...
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { // Current position in which attributes can be drawn int ypos = starty + rowHeight/2; if ( photo != null ) { Thumbnail thumbnail = photo.getThumbnail(); if (...
1,110,603
public void postReport() { logger.debug(toString()); if (numReportsThisRun++ > MAX_REPORT_TRIES) { logger.info( String.format( "Not logging this error, threshold of %d exceeded", MAX_REPORT_TRIES)); return; } exception.printStackTra...
public void postReport() { logger.debug("posting report: "+toString()); if (numReportsThisRun++ > MAX_REPORT_TRIES) { logger.info( String.format( "Not logging this error, threshold of %d exceeded", MAX_REPORT_TRIES)); return; } exce...
1,110,604
public void postReport() { logger.debug(toString()); if (numReportsThisRun++ > MAX_REPORT_TRIES) { logger.info( String.format( "Not logging this error, threshold of %d exceeded", MAX_REPORT_TRIES)); return; } exception.printStackTra...
public void postReport() { logger.debug(toString()); if (numReportsThisRun++ > MAX_REPORT_TRIES) { logger.info( String.format( "Not logging this error, threshold of %d exceeded", MAX_REPORT_TRIES)); return; } exception.printStackTra...
1,110,605
public PresentationObject getTopicsOverView(IWContext iwc){ Table T = new Table(); int row = 1; T.add(getTopicLink(-1,iwrb.getLocalizedString("new_topic","New topic")),1,row); row++; T.add(tf.format(iwrb.getLocalizedString("name","Name"),tf.HEADER),1,row); T.add(tf.format(iwrb.getLocalizedString("category",...
public PresentationObject getTopicsOverView(IWContext iwc){ Table T = new Table(); int row = 1; T.add(getTopicLink(-1,iwrb.getLocalizedString("new_topic","New topic")),1,row); row++; T.add(tf.format(iwrb.getLocalizedString("name","Name"),tf.HEADER),1,row); T.add(tf.format(iwrb.getLocalizedString("category",...
1,110,607
public void refreshTable(){ this.removeAll(); snpsByName = new Hashtable(); this.setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); Vector columnNames = new Vector(); Vector tableData = new Vector(); columnNames.add("#"); columnNames.add("Name"); columnNames.add...
public void refreshTable(){ this.removeAll(); snpsByName = new Hashtable(); this.setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); Vector columnNames = new Vector(); Vector tableData = new Vector(); columnNames.add("#"); columnNames.add("Name"); columnNames.add...
1,110,608
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
1,110,609
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
1,110,610
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
1,110,611
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
1,110,612
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
1,110,613
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist ...
1,110,614
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception{ ...
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception{ ...
1,110,615
public UserList(int count, String namePrefix, String domain, String password) { this(count, namePrefix, domain); m_password = password; }
public UserList(int count, String namePrefix, String domain, String password) { this(count, namePrefix, domain); m_password = password; }
1,110,616
protected void setup() { GenericDDLGenerator ddlg = project.getDDLGenerator(); setLayout(new FormLayout()); add(new JLabel("Allow Connection?")); add(allowConnection = new JCheckBox()); allowConnection.setSelected(ddlg.getAllowConnection()); add(new JLabel("Output File")); JPanel p = new JPanel(new FlowLayout()...
protected void setup() { GenericDDLGenerator ddlg = project.getDDLGenerator(); setLayout(new FormLayout()); add(new JLabel("Allow Connection?")); add(allowConnection = new JCheckBox()); allowConnection.setSelected(ddlg.getAllowConnection()); add(new JLabel("Output File")); JPanel p = new JPanel(new FlowLayout()...
1,110,617
protected void fireDbChildrenInserted(int[] newIndices, List newChildren) { System.out.println("SQLObject: firing dbChildrenInserted event"); SQLObjectEvent e = new SQLObjectEvent (this, newIndices, (SQLObject[]) newChildren.toArray(new SQLObject[newChildren.size()])); Iterator it = getSqlObjectListeners()....
protected void fireDbChildrenInserted(int[] newIndices, List newChildren) { System.out.println(getClass().getName()+": firing dbChildrenInserted event"); SQLObjectEvent e = new SQLObjectEvent (this, newIndices, (SQLObject[]) newChildren.toArray(new SQLObject[newChildren.size()])); Iterator it = getSqlObject...
1,110,619
protected void fireDbChildrenInserted(int[] newIndices, List newChildren) { System.out.println("SQLObject: firing dbChildrenInserted event"); SQLObjectEvent e = new SQLObjectEvent (this, newIndices, (SQLObject[]) newChildren.toArray(new SQLObject[newChildren.size()])); Iterator it = getSqlObjectListeners()....
protected void fireDbChildrenInserted(int[] newIndices, List newChildren) { System.out.println("SQLObject: firing dbChildrenInserted event"); SQLObjectEvent e = new SQLObjectEvent (this, newIndices, (SQLObject[]) newChildren.toArray(new SQLObject[newChildren.size()])); Iterator it = getSqlObjectListeners()....
1,110,620
protected TagScript createStaticTag( String namespaceURI, String localName, Attributes list ) throws SAXException { try { Tag tag = new StaticTag( namespaceURI, localName ); TagScript script = new TagScript( tag ); // now iterate through through th...
protected TagScript createStaticTag( String namespaceURI, String localName, Attributes list ) throws SAXException { try { Tag tag = new StaticTag( namespaceURI, localName ); TagScript script = new TagScript( tag ); // now iterate through through th...
1,110,621
protected TagScript createTag( String namespaceURI, String localName, Attributes list ) throws SAXException { try { // use the URI to load a taglib TagLibrary taglib = (TagLibrary) taglibs.get( namespaceURI ); if ( taglib == null ) { if ( namespaceURI != null &...
protected TagScript createTag( String namespaceURI, String localName, Attributes list ) throws SAXException { try { // use the URI to load a taglib TagLibrary taglib = (TagLibrary) taglibs.get( namespaceURI ); if ( taglib == null ) { if ( namespaceURI != null &...
1,110,622
public Script compileScript() throws Exception { XMLParser parser = new XMLParser(); parser.setContext( getContext() ); Script script = parser.parse( getUrl().openStream() ); script = script.compile(); if ( log.isDebugEnabled() ) { log.debug( "Compiled script: "...
public Script compileScript() throws Exception { XMLParser parser = new XMLParser(); parser.setContext( getContext() ); Script script = parser.parse( getUrl().openStream() ); script = script.compile(); if ( log.isDebugEnabled() ) { log.debug( "Compiled script: "...
1,110,623
public static void main(String[] args) throws Exception { if ( args.length <= 0 ) { System.out.println( "Usage: Jelly scriptFile [outputFile]" ); return; } Jelly jelly = new Jelly(); jelly.setScript( args[0] ); /* // later we might wann...
public static void main(String[] args) throws Exception { if ( args.length <= 0 ) { System.out.println( "Usage: Jelly scriptFile [outputFile]" ); return; } Jelly jelly = new Jelly(); jelly.setScript( args[0] ); /* // later we might wann...
1,110,624
public void setCropBounds( Rectangle2D cropBounds ) { ODMGXAWrapper txw = new ODMGXAWrapper(); txw.lock( this, Transaction.WRITE ); if ( !cropBounds.equals( getCropBounds() ) ) { // Rotation changes, invalidate the thumbnail thumbnail = null; } cropMinX = cro...
public void setCropBounds( Rectangle2D cropBounds ) { ODMGXAWrapper txw = new ODMGXAWrapper(); txw.lock( this, Transaction.WRITE ); if ( !cropBounds.equals( getCropBounds() ) ) { // Rotation changes, invalidate the thumbnail invalidateThumbnail(); } cropMinX ...
1,110,628
public void setPrefRotation(double v) { ODMGXAWrapper txw = new ODMGXAWrapper(); txw.lock( this, Transaction.WRITE ); if ( v != prefRotation ) { // Rotation changes, invalidate the thumbnail thumbnail = null; } this.prefRotation = v; modified(); ...
public void setPrefRotation(double v) { ODMGXAWrapper txw = new ODMGXAWrapper(); txw.lock( this, Transaction.WRITE ); if ( v != prefRotation ) { // Rotation changes, invalidate the thumbnail invalidateThumbnail(); } this.prefRotation = v; modified(); ...
1,110,629
public void run(JellyContext context, XMLOutput output) throws JellyTagException { try { startNamespacePrefixes(output); } catch (SAXException e) { throw new JellyTagException("could not start namespace prefixes",e); } Tag tag = null; try { tag = g...
public void run(JellyContext context, XMLOutput output) throws JellyTagException { try { startNamespacePrefixes(output); } catch (SAXException e) { throw new JellyTagException("could not start namespace prefixes",e); } Tag tag = null; try { tag = g...
1,110,631
public void run(JellyContext context, XMLOutput output) throws JellyTagException { try { startNamespacePrefixes(output); } catch (SAXException e) { throw new JellyTagException("could not start namespace prefixes",e); } Tag tag = null; try { tag = g...
public void run(JellyContext context, XMLOutput output) throws JellyTagException { try { startNamespacePrefixes(output); } catch (SAXException e) { throw new JellyTagException("could not start namespace prefixes",e); } Tag tag = null; try { tag = g...
1,110,632
public void actionPerformed(ActionEvent e) { logger.debug("DBCS Action invoked"); ArchitectDataSource newDS = dbcsPanel.getDbcs(); String curName = null; for (Component c : ((TextPanel)dbcsPanel.getComponents()[0]).getComponents()) { if ("dbNameField".equals(c.getName())){ curName = ((JTextField) c).getText(...
public void actionPerformed(ActionEvent e) { logger.debug("DBCS Action invoked"); ArchitectDataSource newDS = dbcsPanel.getDbcs(); String curName = null; for (Component c : ((TextPanel)dbcsPanel.getComponents()[0]).getComponents()) { if ("dbNameField".equals(c.getName())){ curName = ((JTextField) c).getText(...
1,110,633
public void characters(char ch[], int start, int length) throws SAXException { contentHandler.characters(ch, start, length); }
public void characters(char[] ch, int start, int length) throws SAXException { contentHandler.characters(ch, start, length); }
1,110,636
public static XMLOutput createXMLOutput(XMLReader xmlReader) { XMLOutput output = new XMLOutput(xmlReader.getContentHandler()); // isn't it lovely what we've got to do to find the LexicalHandler... ;-) for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) { try { Obje...
public static XMLOutput createXMLOutput(XMLReader xmlReader) { XMLOutput output = new XMLOutput(xmlReader.getContentHandler()); // isn't it lovely what we've got to do to find the LexicalHandler... ;-) for (int i = 0; i < LEXICAL_HANDLER_NAMES.length; i++) { try { Obje...
1,110,637
public void endPrefixMapping(String prefix) throws SAXException { contentHandler.endPrefixMapping(prefix); }
public void endPrefixMapping(String prefix) throws SAXException { namespaceStack.popNamespace(prefix); }
1,110,638
public void ignorableWhitespace(char ch[], int start, int length) throws SAXException { contentHandler.ignorableWhitespace(ch, start, length); }
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { contentHandler.ignorableWhitespace(ch, start, length); }
1,110,640
public void startPrefixMapping(String prefix, String uri) throws SAXException { contentHandler.startPrefixMapping(prefix, uri); }
public void startPrefixMapping(String prefix, String uri) throws SAXException { namespaceStack.pushNamespace(prefix, uri); }
1,110,641
private void full_em_breakup( byte[][] input_haplos, int[] block_size, int numTrios, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, int numTrios, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int...
1,110,642
private void full_em_breakup( byte[][] input_haplos, int[] block_size, int numTrios, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, int numTrios, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int...
1,110,643
private void full_em_breakup( byte[][] input_haplos, int[] block_size, int numTrios, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, int numTrios, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int...
1,110,644
private void full_em_breakup( byte[][] input_haplos, int[] block_size, int numTrios, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int...
private void full_em_breakup( byte[][] input_haplos, int[] block_size, int numTrios, Vector affStatus) throws HaploViewException{ int num_poss, iter;//, maxk, numk; double total;//, maxprob; int block, start_locus, end_locus, biggest_block_size; int poss_full;//, best, h1, h2; int...
1,110,645
public void run(Context context, XMLOutput output) throws Exception { getBody().run( context, output ); }
public void run(JellyContext context, XMLOutput output) throws Exception { getBody().run( context, output ); }
1,110,647
private double getGenoPercent(int het, int hom, int missing){ double genoPct = 100.0*(het+hom)/(het+hom+missing); return genoPct; }
private double getGenoPercent(int het, int hom, int missing){ double genoPct = 100.0*(het+hom)/(het+hom+missing); return genoPct; }
1,110,648
public void mousePressed (MouseEvent e) { Rectangle blockselector = new Rectangle(clickXShift-boxRadius,clickYShift - boxRadius, (Chromosome.getFilteredSize()*boxSize), boxSize); //if users right clicks & holds, pop up the info if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == ...
public void mousePressed (MouseEvent e) { Rectangle blockselector = new Rectangle(clickXShift-boxRadius,clickYShift - boxRadius, (Chromosome.getFilteredSize()*boxSize), boxSize); //if users right clicks & holds, pop up the info if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == ...
1,110,649
public void run(Context context, XMLOutput output) throws Exception { DynaTag dynaTag = (DynaTag) tag; // ### probably compiling this to 2 arrays might be quicker and smaller for ( Iterator iter = attributes.entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry =...
public void run(JellyContext context, XMLOutput output) throws Exception { DynaTag dynaTag = (DynaTag) tag; // ### probably compiling this to 2 arrays might be quicker and smaller for ( Iterator iter = attributes.entrySet().iterator(); iter.hasNext(); ) { Map.Entry en...
1,110,650
protected void cleanup() { if(addToPP) { pp.unzoomPoint(p); logger.debug("Placing table at: "+p); pp.addImpl(tp,p,pp.getPPComponentCount()); try { pp.db.addChild(tp.getModel()); pp.selectNone(); tp.setSelected(true); mouseMode = mouseModeType.SELECT_TABLE; } catch (ArchitectExceptio...
protected void cleanup() { if(addToPP) { pp.unzoomPoint(p); logger.debug("Placing table at: "+p); pp.addImpl(tp,p,pp.getPPComponentCount()); try { pp.db.addChild(tp.getModel()); pp.selectNone(); tp.setSelected(true); mouseMode = MouseModeType.SELECT_TABLE; } catch (ArchitectExceptio...
1,110,651
public void mouseMoved(MouseEvent evt) { if (rubberBand != null) { // repaint old region in case of shrinkage Rectangle dirtyRegion = zoomRect(new Rectangle(rubberBand)); Point p = unzoomPoint(evt.getPoint()); rubberBand.setBounds(rubberBandOrigin.x, rubberBandOrigin.y, 0, 0); rubberBand.add(p); ...
public void mouseMoved(MouseEvent evt) { if (rubberBand != null) { // repaint old region in case of shrinkage Rectangle dirtyRegion = zoomRect(new Rectangle(rubberBand)); Point p = unzoomPoint(evt.getPoint()); rubberBand.setBounds(rubberBandOrigin.x, rubberBandOrigin.y, 0, 0); rubberBand.add(p); ...
1,110,652
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
1,110,653
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
1,110,654
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
1,110,655
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
1,110,656
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
1,110,657
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
1,110,658
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
public void mousePressed(MouseEvent evt) { requestFocus(); maybeShowPopup(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) { Relationship r = (Relationship) c; ...
1,110,659
public void mouseReleased(MouseEvent evt) { draggingTablePanes = false; if (rubberBand != null) { if (evt.getButton() == MouseEvent.BUTTON1) { Rectangle dirtyRegion = rubberBand; rubberBandOrigin = null; rubberBand = null; zoomRect(dirtyRegion); repaintRubberBandRegion(dirtyRegion...
public void mouseReleased(MouseEvent evt) { draggingTablePanes = false; if (rubberBand != null) { if (evt.getButton() == MouseEvent.BUTTON1) { Rectangle dirtyRegion = rubberBand; rubberBandOrigin = null; rubberBand = null; zoomRect(dirtyRegion); repaintRubberBandRegion(dirtyRegion...
1,110,660
public void mouseReleased(MouseEvent evt) { draggingTablePanes = false; if (rubberBand != null) { if (evt.getButton() == MouseEvent.BUTTON1) { Rectangle dirtyRegion = rubberBand; rubberBandOrigin = null; rubberBand = null; zoomRect(dirtyRegion); repaintRubberBandRegion(dirtyRegion...
public void mouseReleased(MouseEvent evt) { draggingTablePanes = false; if (rubberBand != null) { if (evt.getButton() == MouseEvent.BUTTON1) { Rectangle dirtyRegion = rubberBand; rubberBandOrigin = null; rubberBand = null; zoomRect(dirtyRegion); repaintRubberBandRegion(dirtyRegion...
1,110,661
public static void setMouseMode(mouseModeType mouseMode) { PlayPen.mouseMode = mouseMode; }
public static void setMouseMode(MouseModeType mouseMode) { PlayPen.mouseMode = mouseMode; }
1,110,663
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize...
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize...
1,110,665
private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ...
private void processFile(String fileName,int fileType,String infoFileName){ try { int outputType; long maxDistance; long negMaxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ...
1,110,666
public void login(ServiceContext context, String username, String password) throws ServiceException{ LoginCallbackHandler callbackHandler = new LoginCallbackHandler(username, password); User user = null; UserManager userManager = UserMana...
public void login(ServiceContext context, String username, String password) throws ServiceException{ LoginCallbackHandler callbackHandler = new LoginCallbackHandler(username, password); User user = null; UserManager userManager = UserMana...
1,110,667
public void logout(ServiceContext context, User user)throws ServiceException{ try{ loginContext.logout(); UserActivityLogger.getInstance().logActivity(user.getName(), "logged out successfully"); }catch(LoginException lex){ throw new ServiceException(...
public void logout(ServiceContext context, User user)throws ServiceException{ try{ loginContext.logout(); UserActivityLogger.getInstance().logActivity(user.getName(), "logged out successfully"); }catch(LoginException lex){ throw new ServiceException(...
1,110,668
public Point closestEdgePoint(TablePane tp, Point p) { Dimension tpsize = tp.getSize(); // clip point p to inside of tp Point bcp = new Point(Math.max(0, Math.min(tpsize.width, p.x)), Math.max(0, Math.min(tpsize.height, p.y))); boolean adjustX = bcp.y != 0 && bcp.y != tpsize.height; boolean adjustY = bc...
public Point closestEdgePoint(TablePane tp, Point p) { Dimension tpsize = tp.getSize(); // clip point p to inside of tp Point bcp = new Point(Math.max(0, Math.min(tpsize.width, p.x)), Math.max(0, Math.min(tpsize.height, p.y))); boolean adjustX = bcp.y != 0 && bcp.y != tpsize.height; boolean adjustY = bc...
1,110,669
public Point closestEdgePoint(TablePane tp, Point p) { Dimension tpsize = tp.getSize(); // clip point p to inside of tp Point bcp = new Point(Math.max(0, Math.min(tpsize.width, p.x)), Math.max(0, Math.min(tpsize.height, p.y))); boolean adjustX = bcp.y != 0 && bcp.y != tpsize.height; boolean adjustY = bc...
public Point closestEdgePoint(TablePane tp, Point p) { Dimension tpsize = tp.getSize(); // clip point p to inside of tp Point bcp = new Point(Math.max(0, Math.min(tpsize.width, p.x)), Math.max(0, Math.min(tpsize.height, p.y))); boolean adjustX = bcp.y != 0 && bcp.y != tpsize.height; boolean adjustY = bc...
1,110,670
public Point closestEdgePoint(TablePane tp, Point p) { Dimension tpsize = tp.getSize(); // clip point p to inside of tp Point bcp = new Point(Math.max(0, Math.min(tpsize.width, p.x)), Math.max(0, Math.min(tpsize.height, p.y))); boolean adjustX = bcp.y != 0 && bcp.y != tpsize.height; boolean adjustY = bc...
public Point closestEdgePoint(TablePane tp, Point p) { Dimension tpsize = tp.getSize(); // clip point p to inside of tp Point bcp = new Point(Math.max(0, Math.min(tpsize.width, p.x)), Math.max(0, Math.min(tpsize.height, p.y))); boolean adjustX = bcp.y != 0 && bcp.y != tpsize.height; boolean adjustY = bc...
1,110,671
public Point closestEdgePoint(TablePane tp, Point p) { Dimension tpsize = tp.getSize(); // clip point p to inside of tp Point bcp = new Point(Math.max(0, Math.min(tpsize.width, p.x)), Math.max(0, Math.min(tpsize.height, p.y))); boolean adjustX = bcp.y != 0 && bcp.y != tpsize.height; boolean adjustY = bc...
public Point closestEdgePoint(TablePane tp, Point p) { Dimension tpsize = tp.getSize(); // clip point p to inside of tp Point bcp = new Point(Math.max(0, Math.min(tpsize.width, p.x)), Math.max(0, Math.min(tpsize.height, p.y))); boolean adjustX = bcp.y != 0 && bcp.y != tpsize.height; boolean adjustY = bc...
1,110,672
void createNewFolder() { if ( selected != null ) { String newName = (String) JOptionPane.showInputDialog( this, "Enter name for new folder", "New folder", JOptionPane.PLAIN_MESSAGE, null, null, "New folder" ); if ( newName != null ) { PhotoFolder newFolder = PhotoFolder.create( new...
void createNewFolder() { if ( selected != null ) { String newName = (String) JOptionPane.showInputDialog( this, "Enter name for new folder", "New folder", JOptionPane.PLAIN_MESSAGE, null, null, "New folder" ); if ( newName != null ) { PhotoFolder newFolder = PhotoFolder.create( new...
1,110,674
void renameSelectedFolder() { if ( selected != null ) { String origName = selected.getName(); String newName = (String) JOptionPane.showInputDialog( this, "Enter new name", "Rename folder", JOptionPane.PLAIN_MESSAGE, null, null, origName ); if ( newName != null ) { PhotoFolder f = s...
void renameSelectedFolder() { if ( selected != null ) { String origName = selected.getName(); String newName = (String) JOptionPane.showInputDialog( this, "Enter new name", "Rename folder", JOptionPane.PLAIN_MESSAGE, null, null, origName ); if ( newName != null ) { PhotoFolder f = s...
1,110,675