bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
public void saveDisplayOptions() { abstraction.saveDisplayOptions(); }
|
public void saveDisplayOptions() { abstraction.saveDisplayOptions(); }
| 3,235,714
|
public void setMappingPane() { presentation.setMappingPane(); }
|
public void setMappingPane() { presentation.setMappingPane(); }
| 3,235,715
|
VALUE ID2SYM(ID id) { return RubySymbol.m_newSymbol(ruby, (RubyId)id); }
|
RubyObject ID2SYM(ID id) { return RubySymbol.m_newSymbol(ruby, (RubyId)id); }
| 3,235,716
|
VALUE INT2FIX(int i) { return new RubyFixnum(ruby, i); }
|
VALUE INT2FIX(int i) { return new RubyFixnum(ruby, i); }
| 3,235,717
|
ID SYM2ID(VALUE symbol) { return ((RubySymbol)symbol).getId(); }
|
RubyId SYM2ID(VALUE symbol) { return ((RubySymbol)symbol).getId(); }
| 3,235,718
|
private void dyna_pop(RubyVarmap vars) { lvtbl.dlev--; ruby.getInterpreter().setDynamicVars(vars); }
|
private void dyna_pop(RubyVarmap vars) { lvtbl.dlev--; ruby.setDynamicVars(vars); }
| 3,235,719
|
private RubyVarmap dyna_push() { RubyVarmap vars = ruby.getInterpreter().getDynamicVars(); rb_dvar_push(null, null); lvtbl.dlev++; return vars; }
|
private RubyVarmap dyna_push() { RubyVarmap vars = ruby.getInterpreter().getDynamicVars(); rb_dvar_push(null, null); lvtbl.dlev++; return vars; }
| 3,235,720
|
VALUE rb_ary_new() { return rb_ary_new2(16); }
|
RubyObject rb_ary_new() { return rb_ary_new2(16); }
| 3,235,721
|
VALUE rb_ary_new2(int size) { return rom.rb_ary_new2(size); }
|
VALUE rb_ary_new2(int size) { return rom.rb_ary_new2(size); }
| 3,235,722
|
VALUE rb_const_get(VALUE clazz, ID name) { return rom.rb_const_get(clazz, name); }
|
VALUE rb_const_get(VALUE clazz, ID name) { return rom.rb_const_get(clazz, name); }
| 3,235,723
|
VALUE rb_cstr2inum(String s, int radix) { //XXX no support for _ or leading and trailing spaces return new RubyFixnum(ruby, Integer.parseInt(s, radix)); }
|
RubyObject rb_cstr2inum(String s, int radix) { //XXX no support for _ or leading and trailing spaces return new RubyFixnum(ruby, Integer.parseInt(s, radix)); }
| 3,235,724
|
boolean rb_dvar_curr(ID id) { if (ruby.getInterpreter().getDynamicVars() == null) { return false; } return ruby.getInterpreter().getDynamicVars().isCurrent((RubyId)id); }
|
boolean rb_dvar_curr(ID id) { if (ruby.getInterpreter().getDynamicVars() == null) { return false; } return ruby.getInterpreter().getDynamicVars().isCurrent((RubyId)id); }
| 3,235,725
|
boolean rb_dvar_defined(ID id) { if (ruby.getInterpreter().getDynamicVars() == null) { return false; } return ruby.getInterpreter().getDynamicVars().isDefined((RubyId)id); }
|
boolean rb_dvar_defined(ID id) { if (ruby.getInterpreter().getDynamicVars() == null) { return false; } return ruby.getInterpreter().getDynamicVars().isDefined((RubyId)id); }
| 3,235,726
|
void rb_dvar_push(ID id, VALUE value) { if (ruby.getInterpreter().getDynamicVars() == null) { ruby.getInterpreter().setDynamicVars(new_dvar(id, value, null)); } else { ruby.getInterpreter().getDynamicVars().push((RubyId)id, (RubyObject)value); } }
|
void rb_dvar_push(ID id, VALUE value) { if (ruby.getInterpreter().getDynamicVars() == null) { ruby.getInterpreter().setDynamicVars(new_dvar(id, value, null)); } else { ruby.getInterpreter().getDynamicVars().push((RubyId)id, (RubyObject)value); } }
| 3,235,727
|
VALUE rb_float_new(double d) { return RubyFloat.m_newFloat(ruby, d); }
|
VALUE rb_float_new(double d) { return RubyFloat.m_newFloat(ruby, d); }
| 3,235,728
|
VALUE rb_funcall(VALUE v1, char c, int j, VALUE v) { return rb_funcall(v1, ruby.intern(String.valueOf(c)), j, v); }
|
RubyObject rb_funcall(VALUE v1, char c, int j, VALUE v) { return rb_funcall(v1, ruby.intern(String.valueOf(c)), j, v); }
| 3,235,729
|
VALUE rb_hash_aref(VALUE hash, VALUE key) {throw missing();}
|
VALUE rb_hash_aref(VALUE hash, VALUE key) {throw missing();}
| 3,235,730
|
VALUE rb_reg_new(String s, int len, int options) { //XXX well... return new RubyRegexp(ruby, (RubyString)rb_str_new(s, len), options); }
|
RubyObject rb_reg_new(String s, int len, int options) { //XXX well... return new RubyRegexp(ruby, (RubyString)rb_str_new(s, len), options); }
| 3,235,731
|
VALUE rb_str_concat(VALUE v, VALUE w) { //XXX need to keep identity and tainting RubyString vs = (RubyString)v; if (FIXNUM_P(w)) vs.setString(vs.getString() + (char)FIX2INT(w)); else vs.setString(vs.getString() + ((RubyString)w).getString()); return vs; }
|
RubyObject rb_str_concat(VALUE v, VALUE w) { //XXX need to keep identity and tainting RubyString vs = (RubyString)v; if (FIXNUM_P(w)) vs.setString(vs.getString() + (char)FIX2INT(w)); else vs.setString(vs.getString() + ((RubyString)w).getString()); return vs; }
| 3,235,732
|
VALUE rb_str_new(String s, int len) { return new RubyString(ruby, s.substring(0, len)); }
|
RubyObject rb_str_new(String s, int len) { return new RubyString(ruby, s.substring(0, len)); }
| 3,235,733
|
VALUE rb_str_new2(String s) { return rb_str_new(s, s.length()); }
|
RubyObject rb_str_new2(String s) { return rb_str_new(s, s.length()); }
| 3,235,734
|
top_local_init() { local_push(); lvtbl.cnt = ruby.getRubyScope().getLocalTbl() != null ? ruby.getRubyScope().getLocalTbl(0).intValue() : 0; if (lvtbl.cnt > 0) { lvtbl.tbl = new ID[lvtbl.cnt+3]; System.arraycopy(lvtbl.tbl, 0, ruby.getRubyScope().getLocalTbl(), 0, lvtbl.cnt+1); } else { lvtbl.tbl = null; } if (ruby.getInterpreter().getDynamicVars() != null) lvtbl.dlev = 1; else lvtbl.dlev = 0; }
|
top_local_init() { local_push(); lvtbl.cnt = ruby.getRubyScope().getLocalTbl() != null ? ruby.getRubyScope().getLocalTbl(0).intValue() : 0; if (lvtbl.cnt > 0) { lvtbl.tbl = new ID[lvtbl.cnt+3]; System.arraycopy(lvtbl.tbl, 0, ruby.getRubyScope().getLocalTbl(), 0, lvtbl.cnt+1); } else { lvtbl.tbl = null; } if (ruby.getDynamicVars() != null) lvtbl.dlev = 1; else lvtbl.dlev = 0; }
| 3,235,735
|
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass.isPrimitive()) { String cName = javaClass.getName(); if (cName == "boolean") { return RubyBoolean.m_newBoolean(ruby, ((Boolean)object).booleanValue()); } if (cName == "float" || cName == "double") { return RubyFloat.m_newFloat(ruby, ((Number)object).doubleValue()); } // else it's one of the integral types return RubyFixnum.m_newFixnum(ruby, ((Number)object).longValue()); } if (javaClass == String.class) { return RubyString.m_newString(ruby, object.toString()); } if (javaClass.isArray()) { Class arrayClass = javaClass.getComponentType(); int len = Array.getLength(object); RubyObject[] items = new RubyObject[len]; for (int i = 0; i < len; i++) { items[i] = convertJavaToRuby(ruby, Array.get(object, i), arrayClass); } return RubyArray.m_create(ruby, items); } return new RubyJavaObject(ruby, RubyJavaObject.loadClass(ruby, javaClass, null), object); }
|
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass.isPrimitive()) { String cName = javaClass.getName(); if (cName == "boolean") { return RubyBoolean.m_newBoolean(ruby, ((Boolean)object).booleanValue()); } if (cName == "float" || cName == "double") { return RubyFloat.m_newFloat(ruby, ((Number)object).doubleValue()); } // else it's one of the integral types return RubyFixnum.m_newFixnum(ruby, ((Number)object).longValue()); } if (javaClass == String.class) { return RubyString.m_newString(ruby, object.toString()); } if (javaClass.isArray()) { Class arrayClass = javaClass.getComponentType(); int len = Array.getLength(object); RubyObject[] items = new RubyObject[len]; for (int i = 0; i < len; i++) { items[i] = convertJavaToRuby(ruby, Array.get(object, i), arrayClass); } return RubyArray.m_create(ruby, items); } return new RubyJavaObject(ruby, RubyJavaObject.loadClass(ruby, javaClass, null), object); }
| 3,235,736
|
public TransportRegistrationDialog(String serviceName) { setLayout(new GridBagLayout()); this.serviceName = serviceName; ResourceUtils.resButton(registerButton, Res.getString("button.register")); ResourceUtils.resButton(cancelButton, Res.getString("button.cancel")); final JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); buttonPanel.add(registerButton); registerButton.requestFocus(); buttonPanel.add(cancelButton); transport = TransportManager.getTransport(serviceName); final TitlePanel titlePanel = new TitlePanel(transport.getTitle(), transport.getInstructions(), transport.getIcon(), true); add(titlePanel, new GridBagConstraints(0, 0, 2, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); final JLabel usernameLabel = new JLabel(); usernameLabel.setFont(new Font("Dialog", Font.BOLD, 11)); ResourceUtils.resLabel(usernameLabel, usernameField, Res.getString("label.username") + ":"); add(usernameLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(usernameField, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); final JLabel passwordLabel = new JLabel(); passwordLabel.setFont(new Font("Dialog", Font.BOLD, 11)); ResourceUtils.resLabel(passwordLabel, passwordField, Res.getString("label.password") + ":"); add(passwordLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(passwordField, new GridBagConstraints(1, 2, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); add(buttonPanel, new GridBagConstraints(0, 3, 2, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); }
|
public TransportRegistrationDialog(String serviceName) { setLayout(new GridBagLayout()); this.serviceName = serviceName; ResourceUtils.resButton(registerButton, Res.getString("button.register")); ResourceUtils.resButton(cancelButton, Res.getString("button.cancel")); final JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); buttonPanel.add(registerButton); registerButton.requestFocus(); buttonPanel.add(cancelButton); transport = TransportUtils.getTransport(serviceName); final TitlePanel titlePanel = new TitlePanel(transport.getTitle(), transport.getInstructions(), transport.getIcon(), true); add(titlePanel, new GridBagConstraints(0, 0, 2, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); final JLabel usernameLabel = new JLabel(); usernameLabel.setFont(new Font("Dialog", Font.BOLD, 11)); ResourceUtils.resLabel(usernameLabel, usernameField, Res.getString("label.username") + ":"); add(usernameLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(usernameField, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); final JLabel passwordLabel = new JLabel(); passwordLabel.setFont(new Font("Dialog", Font.BOLD, 11)); ResourceUtils.resLabel(passwordLabel, passwordField, Res.getString("label.password") + ":"); add(passwordLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(passwordField, new GridBagConstraints(1, 2, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); add(buttonPanel, new GridBagConstraints(0, 3, 2, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); }
| 3,235,737
|
public void addCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().add(mapCtx.copy()); } rwl.writeLock().unlock(); }
|
public void addCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().add(mapCtx.copy()); } rwl.writeLock().unlock(); }
| 3,235,738
|
public void addCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().add(mapCtx.copy()); } rwl.writeLock().unlock(); }
|
public void addCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().add(mapCtx.copy()); } }
| 3,235,739
|
public void destroy() { rwl.writeLock().lock(); { renderer = null; } rwl.writeLock().unlock(); }
|
public void destroy() try { pixelsObj = null; rendDefObj = null; rwl.writeLock().lock(); try { pixelsObj = null; rendDefObj = null; renderer = null; } rwl.writeLock().unlock(); }
| 3,235,740
|
public void destroy() { rwl.writeLock().lock(); { renderer = null; } rwl.writeLock().unlock(); }
|
public void destroy() { rwl.writeLock().lock(); { renderer = null; } }
| 3,235,741
|
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelCurveCoefficient(int w) { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
| 3,235,742
|
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
| 3,235,743
|
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); return cb[w].getCoefficient().doubleValue(); } finally { rwl.readLock().unlock(); } rwl.readLock().unlock(); return result; }
| 3,235,744
|
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
| 3,235,745
|
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
|
public int getChannelFamily(int w) { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
| 3,235,746
|
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
|
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
| 3,235,747
|
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
|
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); return QuantumFactory.convertFamilyType(cb[w].getFamily()); } finally { rwl.readLock().unlock(); } rwl.readLock().unlock(); return result; }
| 3,235,748
|
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
|
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
| 3,235,749
|
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
|
public boolean getChannelNoiseReduction(int w) { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
| 3,235,750
|
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
|
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
| 3,235,751
|
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
|
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); return cb[w].getNoiseReduction().booleanValue(); } finally { rwl.readLock().unlock(); } rwl.readLock().unlock(); return result; }
| 3,235,752
|
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
|
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
| 3,235,753
|
public double[] getChannelStats(int w) { double[] result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
|
public double[] getChannelStats(int w) { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
| 3,235,754
|
public double[] getChannelStats(int w) { double[] result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
|
public double[] getChannelStats(int w) { double[] result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
| 3,235,755
|
public double[] getChannelStats(int w) { double[] result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
|
public double[] getChannelStats(int w) { double[] result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
| 3,235,756
|
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelWindowEnd(int w) { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,757
|
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,758
|
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); return cb[w].getInputEnd().intValue(); } finally { rwl.readLock().unlock(); } rwl.readLock().unlock(); return result; }
| 3,235,759
|
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,760
|
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputStart().intValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputStart().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,761
|
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputStart().intValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); return cb[w].getInputStart().intValue(); } finally { rwl.readLock().unlock(); } rwl.readLock().unlock(); return result; }
| 3,235,762
|
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputStart().intValue(); } rwl.readLock().unlock(); return result; }
|
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputStart().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,763
|
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
|
public int getDefaultT() { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,764
|
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
|
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,765
|
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
|
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,766
|
public int getDefaultZ() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
|
public int getDefaultZ() { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,767
|
public int getDefaultZ() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
|
public int getDefaultZ() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,768
|
public int getDefaultZ() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
|
public int getDefaultZ() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
| 3,235,769
|
public int getModel() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
|
public int getModel() { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
| 3,235,770
|
public int getModel() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
|
public int getModel() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
| 3,235,771
|
public int getModel() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
|
public int getModel() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
| 3,235,772
|
public QuantumDef getQuantumDef() { QuantumDef result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
|
public QuantumDef getQuantumDef() { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
| 3,235,773
|
public QuantumDef getQuantumDef() { QuantumDef result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
|
public QuantumDef getQuantumDef() { QuantumDef result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
| 3,235,774
|
public QuantumDef getQuantumDef() { QuantumDef result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
|
public QuantumDef getQuantumDef() { QuantumDef result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
| 3,235,775
|
public int[] getRGBA(int w) { int[] rgba = new int[4]; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
|
public int[] getRGBA(int w) { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
| 3,235,776
|
public int[] getRGBA(int w) { int[] rgba = new int[4]; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
|
public int[] getRGBA(int w) { int[] rgba = new int[4]; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
| 3,235,777
|
public int[] getRGBA(int w) { int[] rgba = new int[4]; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
|
public int[] getRGBA(int w) { int[] rgba = new int[4]; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
| 3,235,778
|
public int getSizeX() { return pixelsObj.getSizeX().intValue(); }
|
public int getSizeX() { rwl.readLock().lock(); try { errorIfNullPixels(); return pixelsObj.getSizeX().intValue(); } finally { rwl.readLock().unlock(); } }
| 3,235,779
|
public int getSizeY() { return pixelsObj.getSizeY().intValue(); }
|
public int getSizeY() { rwl.readLock().lock(); try { errorIfNullPixels(); return pixelsObj.getSizeY().intValue(); } finally { rwl.readLock().unlock(); } }
| 3,235,780
|
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
|
public boolean isActive(int w) { rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
| 3,235,781
|
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
|
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
| 3,235,782
|
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
|
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); return cb[w].getActive().booleanValue(); } finally { rwl.readLock().unlock(); } rwl.readLock().unlock(); return result; }
| 3,235,783
|
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
|
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
| 3,235,784
|
public void load() { rwl.writeLock().lock(); { /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) { this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } rwl.writeLock().unlock(); }
|
public void load() try { errorIfNullPixels(); rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) try { errorIfNullPixels(); throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) try { errorIfNullPixels(); this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } rwl.writeLock().unlock(); }
| 3,235,785
|
public void load() { rwl.writeLock().lock(); { /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) { this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } rwl.writeLock().unlock(); }
|
public void load() { rwl.writeLock().lock(); { /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) { this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } rwl.writeLock().unlock(); }
| 3,235,786
|
public void load() { rwl.writeLock().lock(); { /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) { this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } rwl.writeLock().unlock(); }
|
public void load() { rwl.writeLock().lock(); { /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) { this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } }
| 3,235,787
|
public void lookupPixels(long pixelsId) { rwl.writeLock().lock(); { this.pixelsObj = pixMetaSrv.retrievePixDescription(pixelsId); this.renderer = null; } rwl.writeLock().unlock(); }
|
public void lookupPixels(long pixelsId) { rwl.writeLock().lock(); { this.pixelsObj = pixMetaSrv.retrievePixDescription(pixelsId); this.renderer = null; } rwl.writeLock().unlock(); }
| 3,235,788
|
public void lookupPixels(long pixelsId) { rwl.writeLock().lock(); { this.pixelsObj = pixMetaSrv.retrievePixDescription(pixelsId); this.renderer = null; } rwl.writeLock().unlock(); }
|
public void lookupPixels(long pixelsId) { rwl.writeLock().lock(); { this.pixelsObj = pixMetaSrv.retrievePixDescription(pixelsId); this.renderer = null; } if (log.isDebugEnabled()) log.debug("lookupPixels for id "+pixelsId+" succeeded: "+this.pixelsObj); }
| 3,235,789
|
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); System.err.println(rendDefObj.toString()); this.renderer = null; } rwl.writeLock().unlock(); }
|
public void lookupRenderingDef(long pixelsId) try { rwl.writeLock().lock(); try { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); System.err.println(rendDefObj.toString()); this.renderer = null; } rwl.writeLock().unlock(); }
| 3,235,790
|
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); System.err.println(rendDefObj.toString()); this.renderer = null; } rwl.writeLock().unlock(); }
|
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); this.renderer = null; } rwl.writeLock().unlock(); }
| 3,235,791
|
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); System.err.println(rendDefObj.toString()); this.renderer = null; } rwl.writeLock().unlock(); }
|
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); System.err.println(rendDefObj.toString()); this.renderer = null; } if (log.isDebugEnabled()) log.debug("lookupRenderingDef for id "+pixelsId+" succeeded: "+this.rendDefObj); }
| 3,235,792
|
public void removeCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().remove(mapCtx.copy()); } rwl.writeLock().unlock(); }
|
public void removeCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().remove(mapCtx.copy()); } rwl.writeLock().unlock(); }
| 3,235,793
|
public void removeCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().remove(mapCtx.copy()); } rwl.writeLock().unlock(); }
|
public void removeCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().remove(mapCtx.copy()); } }
| 3,235,794
|
public RGBBuffer render(PlaneDef pd) throws IOException, QuantizationException { RGBBuffer result = null; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.render(pd); } rwl.readLock().unlock(); return result; }
|
public RGBBuffer render(PlaneDef pd) throws IOException, QuantizationException { RGBBuffer result = null; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.render(pd); } rwl.readLock().unlock(); return result; }
| 3,235,795
|
public RGBBuffer render(PlaneDef pd) throws IOException, QuantizationException { RGBBuffer result = null; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.render(pd); } rwl.readLock().unlock(); return result; }
|
public RGBBuffer render(PlaneDef pd) throws IOException, QuantizationException { RGBBuffer result = null; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.render(pd); } rwl.readLock().unlock(); return result; }
| 3,235,796
|
public void resetDefaults() { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.resetDefaults(); } rwl.writeLock().unlock(); }
|
public void resetDefaults() { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.resetDefaults(); } rwl.writeLock().unlock(); }
| 3,235,797
|
public void resetDefaults() { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.resetDefaults(); } rwl.writeLock().unlock(); }
|
} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); public} finally { rwl.writeLock().unlock(); void} finally { rwl.writeLock().unlock(); resetDefaults()} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); {} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); rwl.writeLock().lock();} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); {} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); if} finally { rwl.writeLock().unlock(); (renderer} finally { rwl.writeLock().unlock(); ==} finally { rwl.writeLock().unlock(); null)} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); throw} finally { rwl.writeLock().unlock(); new} finally { rwl.writeLock().unlock(); IllegalStateException(NULL_RENDERER);} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); renderer.resetDefaults();} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); }} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); rwl.writeLock().unlock();} finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); }
| 3,235,798
|
public void resetDefaults() { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.resetDefaults(); } rwl.writeLock().unlock(); }
|
public void resetDefaults() { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.resetDefaults(); } }
| 3,235,799
|
public void saveCurrentSettings() { rwl.writeLock().lock(); { // TODO vararg save method. pixMetaSrv.saveRndSettings(rendDefObj); } rwl.writeLock().unlock(); }
|
public void saveCurrentSettings() try { errorIfNullRenderingDef(); rwl.writeLock().lock(); try { errorIfNullRenderingDef(); // TODO vararg save method. pixMetaSrv.saveRndSettings(rendDefObj); } rwl.writeLock().unlock(); }
| 3,235,800
|
public void saveCurrentSettings() { rwl.writeLock().lock(); { // TODO vararg save method. pixMetaSrv.saveRndSettings(rendDefObj); } rwl.writeLock().unlock(); }
|
public void saveCurrentSettings() { rwl.writeLock().lock(); { // TODO vararg save method. pixMetaSrv.saveRndSettings(rendDefObj); } }
| 3,235,801
|
public void setActive(int w, boolean active) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); cb[w].setActive(Boolean.valueOf(active)); } rwl.writeLock().unlock(); }
|
public void setActive(int w, boolean active) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); cb[w].setActive(Boolean.valueOf(active)); } rwl.writeLock().unlock(); }
| 3,235,802
|
public void setActive(int w, boolean active) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); cb[w].setActive(Boolean.valueOf(active)); } rwl.writeLock().unlock(); }
|
public void setActive(int w, boolean active) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); cb[w].setActive(Boolean.valueOf(active)); } }
| 3,235,803
|
public void setChannelWindow(int w, double start, double end) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setChannelWindow(w, start, end); } rwl.writeLock().unlock(); }
|
public void setChannelWindow(int w, double start, double end) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setChannelWindow(w, start, end); } rwl.writeLock().unlock(); }
| 3,235,804
|
public void setChannelWindow(int w, double start, double end) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setChannelWindow(w, start, end); } rwl.writeLock().unlock(); }
|
public void setChannelWindow(int w, double start, double end) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setChannelWindow(w, start, end); } }
| 3,235,805
|
public void setCodomainInterval(int start, int end) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setCodomainInterval(start, end); } rwl.writeLock().unlock(); }
|
public void setCodomainInterval(int start, int end) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setCodomainInterval(start, end); } rwl.writeLock().unlock(); }
| 3,235,806
|
public void setCodomainInterval(int start, int end) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setCodomainInterval(start, end); } rwl.writeLock().unlock(); }
|
public void setCodomainInterval(int start, int end) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setCodomainInterval(start, end); } }
| 3,235,807
|
public void setDefaultT(int t) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setDefaultT(t); } rwl.writeLock().unlock(); }
|
public void setDefaultT(int t) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setDefaultT(t); } rwl.writeLock().unlock(); }
| 3,235,808
|
public void setDefaultT(int t) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setDefaultT(t); } rwl.writeLock().unlock(); }
|
public void setDefaultT(int t) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setDefaultT(t); } }
| 3,235,809
|
public void setDefaultZ(int z) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setDefaultZ(z); } rwl.writeLock().unlock(); }
|
public void setDefaultZ(int z) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setDefaultZ(z); } rwl.writeLock().unlock(); }
| 3,235,810
|
public void setDefaultZ(int z) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setDefaultZ(z); } rwl.writeLock().unlock(); }
|
public void setDefaultZ(int z) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setDefaultZ(z); } }
| 3,235,811
|
public void setModel(int model) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setModel(model); } rwl.writeLock().unlock(); }
|
public void setModel(int model) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setModel(model); } rwl.writeLock().unlock(); }
| 3,235,812
|
public void setModel(int model) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setModel(model); } rwl.writeLock().unlock(); }
|
public void setModel(int model) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setModel(model); } }
| 3,235,813
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.