bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
public boolean next() { boolean outOfDataCells = true; HasNext = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
6,936
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outOfDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
6,937
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
6,938
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
6,939
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } return !outofDataCells; }
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells = false; index++; locations.put(axis, new Integer(index)); break; //get out of the for loop } locations.put(axis, new Integer(0)); } if (outOfDataCells) HasNext = false; return !outOfDataCells; }
6,940
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, new Integer(axis.getLength()-1)); } else { locations.put(axis, new Integer(index)); outofDataCell = false; break; //get out of the for loop } } return !outofDataCell; }
public boolean prev() { boolean outOfDataCells = true; HasNext = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, new Integer(axis.getLength()-1)); } else { locations.put(axis, new Integer(index)); outofDataCell = false; break; //get out of the for loop } } return !outofDataCell; }
6,941
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, new Integer(axis.getLength()-1)); } else { locations.put(axis, new Integer(index)); outofDataCell = false; break; //get out of the for loop } } return !outofDataCell; }
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, new Integer(axis.getLength()-1)); } else { locations.put(axis, new Integer(index)); outOfDataCells = false; break; //get out of the for loop } } return !outofDataCell; }
6,942
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, new Integer(axis.getLength()-1)); } else { locations.put(axis, new Integer(index)); outofDataCell = false; break; //get out of the for loop } } return !outofDataCell; }
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, new Integer(axis.getLength()-1)); } else { locations.put(axis, new Integer(index)); outofDataCell = false; break; //get out of the for loop } } if (outOfDataCells) HasNext = false; return !outOfDataCells; }
6,943
public void setParent(View parent) { if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) getView(i).setParent(this); } this.parent = parent; }
public void setParent(View parent) { if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) getView(i).setParent(null); } this.parent = parent; }
6,944
protected void finalize() { // XXX What resources should we free? }
header = null; tagTable = null; header = null; tagTable = null; protectedheader = null; tagTable = null; voidheader = null; tagTable = null; finalize()header = null; tagTable = null; header = null; tagTable = null; {header = null; tagTable = null; header = null; tagTable = null; header = null; tagTable = null; header = null; tagTable = null; //header = null; tagTable = null; XXXheader = null; tagTable = null; Whatheader = null; tagTable = null; resourcesheader = null; tagTable = null; shouldheader = null; tagTable = null; weheader = null; tagTable = null; free?header = null; tagTable = null; header = null; tagTable = null; }
6,945
public byte[] getData() { throw new Error("not implemented"); }
public byte[] getData() { int size = getSize(); byte[] data = new byte[size]; System.arraycopy(header.getData(size), 0, data, 0, ProfileHeader.HEADERSIZE); byte[] tt = getTagTable(); System.arraycopy(tt, 0, data, ProfileHeader.HEADERSIZE, tt.length); Enumeration e = tagTable.elements(); while (e.hasMoreElements()) { TagEntry tag = (TagEntry) e.nextElement(); System.arraycopy(tag.getData(), 0, data, tag.getOffset(), tag.getSize()); } return data; }
6,946
public static ICC_Profile getInstance(byte[] data) { throw new Error("not implemented"); }
public static ICC_Profile getInstance(byte[] data) { ProfileHeader header = new ProfileHeader(data); header.verifyHeader(data.length); Hashtable tags = createTagTable(data); if (isRGBProfile(header, tags)) return new ICC_ProfileRGB(data); if (isGrayProfile(header, tags)) return new ICC_ProfileGray(data); return new ICC_Profile(header, tags); }
6,947
public int getMajorVersion() { throw new Error("not implemented"); }
public int getMajorVersion() { return header.getMajorVersion(); }
6,948
public int getMinorVersion() { throw new Error("not implemented"); }
public int getMinorVersion() { return header.getMinorVersion(); }
6,949
public int getPCSType() { throw new Error("not implemented"); }
public int getPCSType() { return header.getProfileColorSpace(); }
6,950
public int getProfileClass() { throw new Error("not implemented"); }
public int getProfileClass() { return header.getProfileClass(); }
6,951
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("not implemented"); }
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("not implemented"); }
6,952
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("not implemented"); }
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); String predef = (String) s.readObject(); byte[] data = (byte[]) s.readObject(); if (data != null) { header = new ProfileHeader(data); tagTable = createTagTable(data); profileID = -1; } if (predef != null) { predef = predef.intern(); if (predef.equals("CS_sRGB")) createProfile(ColorSpace.CS_sRGB); if (predef.equals("CS_LINEAR_RGB")) createProfile(ColorSpace.CS_LINEAR_RGB); if (predef.equals("CS_CIEXYZ")) createProfile(ColorSpace.CS_CIEXYZ); if (predef.equals("CS_GRAY")) createProfile(ColorSpace.CS_GRAY); if (predef.equals("CS_PYCC")) createProfile(ColorSpace.CS_PYCC); } }
6,953
protected Object readResolve() throws ObjectStreamException { throw new Error("not implemented"); }
protected Object readResolve() throws ObjectStreamException { if (isRGBProfile(header, tagTable)) return new ICC_ProfileRGB(getData()); if (isGrayProfile(header, tagTable)) return new ICC_ProfileGray(getData()); return this; }
6,954
public void setData(int tagSignature, byte[] data) { throw new Error("not implemented"); }
public void setData(int tagSignature, byte[] data) { profileID = -1; if (tagSignature == icSigHead) header = new ProfileHeader(data); else { TagEntry t = new TagEntry(tagSignature, data); tagTable.put(t.hashKey(), t); } }
6,955
public void write(String filename) throws IOException { write(new FileOutputStream(filename)); }
public void write(String filename) throws IOException { FileOutputStream out = new FileOutputStream(filename); write(out); out.flush(); out.close(); }
6,956
private void writeObject(ObjectOutputStream s) throws IOException { throw new Error("not implemented"); }
private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (profileID == ColorSpace.CS_sRGB) s.writeObject("CS_sRGB"); else if (profileID == ColorSpace.CS_LINEAR_RGB) s.writeObject("CS_LINEAR_RGB"); else if (profileID == ColorSpace.CS_CIEXYZ) s.writeObject("CS_CIEXYZ"); else if (profileID == ColorSpace.CS_GRAY) s.writeObject("CS_GRAY"); else if (profileID == ColorSpace.CS_PYCC) s.writeObject("CS_PYCC"); else { s.writeObject(null); s.writeObject(getData()); return; } s.writeObject(null); }
6,957
public static String unquote(String str) throws MalformedURLException { if (str == null) return null; final int MAX_BYTES_PER_UTF_8_CHAR = 3; byte[] buf = new byte[str.length()*MAX_BYTES_PER_UTF_8_CHAR]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c == '%') { if (i + 2 >= str.length()) throw new MalformedURLException(str + " : Invalid quoted character"); int hi = Character.digit(str.charAt(++i), 16); int lo = Character.digit(str.charAt(++i), 16); if (lo < 0 || hi < 0) throw new MalformedURLException(str + " : Invalid quoted character"); buf[pos++] = (byte) (hi * 16 + lo); } else if (c > 127) { try { byte [] c_as_bytes = Character.toString(c).getBytes("utf-8"); System.arraycopy(c_as_bytes, 0, buf, pos, c_as_bytes.length); } catch (java.io.UnsupportedEncodingException x2) { throw (Error) new InternalError().initCause(x2); } } else buf[pos++] = (byte) c; } try { return new String(buf, 0, pos, "utf-8"); } catch (java.io.UnsupportedEncodingException x2) { throw (Error) new InternalError().initCause(x2); } }
public static String unquote(String str) throws MalformedURLException { if (str == null) return null; final int MAX_BYTES_PER_UTF_8_CHAR = 3; byte[] buf = new byte[str.length()*MAX_BYTES_PER_UTF_8_CHAR]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c == '%') { if (i + 2 >= str.length()) throw new MalformedURLException(str + " : Invalid quoted character"); int hi = Character.digit(str.charAt(++i), 16); int lo = Character.digit(str.charAt(++i), 16); if (lo < 0 || hi < 0) throw new MalformedURLException(str + " : Invalid quoted character"); buf[pos++] = (byte) (hi * 16 + lo); } else if (c > 127) { try { byte [] c_as_bytes = Character.toString(c).getBytes("utf-8"); System.arraycopy(c_as_bytes, 0, buf, pos, c_as_bytes.length); } catch (java.io.UnsupportedEncodingException x2) { throw (Error) new InternalError().initCause(x2); } } else buf[pos++] = (byte) c; } try { return new String(buf, 0, pos, "utf-8"); } catch (java.io.UnsupportedEncodingException x2) { throw (Error) new InternalError().initCause(x2); } }
6,958
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); internalFrameVetoableChangeListener = new InternalFramePropertyChangeListener(); frame.addMouseListener(borderListener); frame.addMouseMotionListener(borderListener); frame.addInternalFrameListener(internalFrameListener); frame.addPropertyChangeListener(propertyChangeListener); frame.addVetoableChangeListener(internalFrameVetoableChangeListener); frame.getRootPane().getGlassPane().addMouseListener(glassPaneDispatcher); frame.getRootPane().getGlassPane().addMouseMotionListener(glassPaneDispatcher); }
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); frame.addMouseListener(borderListener); frame.addMouseMotionListener(borderListener); frame.addInternalFrameListener(internalFrameListener); frame.addPropertyChangeListener(propertyChangeListener); frame.addVetoableChangeListener(internalFrameVetoableChangeListener); frame.getRootPane().getGlassPane().addMouseListener(glassPaneDispatcher); frame.getRootPane().getGlassPane().addMouseMotionListener(glassPaneDispatcher); }
6,959
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); internalFrameVetoableChangeListener = new InternalFramePropertyChangeListener(); frame.addMouseListener(borderListener); frame.addMouseMotionListener(borderListener); frame.addInternalFrameListener(internalFrameListener); frame.addPropertyChangeListener(propertyChangeListener); frame.addVetoableChangeListener(internalFrameVetoableChangeListener); frame.getRootPane().getGlassPane().addMouseListener(glassPaneDispatcher); frame.getRootPane().getGlassPane().addMouseMotionListener(glassPaneDispatcher); }
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); internalFrameVetoableChangeListener = new InternalFramePropertyChangeListener(); frame.addMouseListener(borderListener); frame.addMouseMotionListener(borderListener); frame.addInternalFrameListener(internalFrameListener); frame.addPropertyChangeListener(propertyChangeListener); frame.getRootPane().getGlassPane().addMouseListener(glassPaneDispatcher); frame.getRootPane().getGlassPane().addMouseMotionListener(glassPaneDispatcher); }
6,960
public String[] getAxisTags () { // List axisList = getIOAxesOrder(); // List axisList = getParentArray().getAxes(); int size = getParentArray().getAxes().size(); String[] tags = new String[size]; // String tag; for (int i = 0; i < size; i++) { // String axisId = ((AxisInterface) axisList.get(i)).getAxisId(); // tags[i] = (String) tagHash.get(axisId); tags[i] = "d" + i; }/* String axisId; String tempTag; int counter = stop; for (int i = 0; i < stop; i++) { counter--; tag = "d" + counter; //the default tag //should it exist, we use whats in the tag hash //otherwise we go with the default above axisId = ((AxisInterface) axisList.get(i)).getAxisId(); tempTag = (String) tagHash.get(axisId); if (tempTag!=null) tag = tempTag; tags[i] = tag; }*/ return tags; }
public String[] getAxisTags () { // List axisList = getIOAxesOrder(); // List axisList = getParentArray().getAxes(); int size = getParentArray().getAxes().size(); String[] tags = new String[size]; // String tag; for (int i = 0; i < size; i++) { // String axisId = ((AxisInterface) axisList.get(i)).getAxisId(); // tags[i] = (String) tagHash.get(axisId); tags[i] = "d" + i; }/* String axisId; String tempTag; int counter = stop; for (int i = 0; i < stop; i++) { counter--; tag = "d" + counter; //the default tag //should it exist, we use whats in the tag hash //otherwise we go with the default above axisId = ((AxisInterface) axisList.get(i)).getAxisId(); tempTag = (String) tagHash.get(axisId); if (tempTag!=null) tag = tempTag; tags[i] = tag; }*/ return tags; }
6,961
public static ServiceDetail extract(Any a) { try { return ((ServiceDetailHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
public static ServiceDetail extract(Any a) { try { return ((ServiceDetailHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } }
6,963
protected ArrayList findAllChildHrefObjects () { ArrayList list = new ArrayList(); if (this instanceof Structure) { List arrayList = ((Structure) this).getArrayList(); synchronized (arrayList) { Iterator iter = arrayList.iterator(); // Must be in synchronized block while (iter.hasNext()) { Array childArray = (Array) iter.next(); Href hrefObj = childArray.getDataCube().getHref(); if (hrefObj != null) list.add(hrefObj); } } // sychronized arrayList List structList = ((Structure) this).getStructList(); synchronized (structList) { Iterator iter = structList.iterator(); // Must be in synchronized block while (iter.hasNext()) { Structure childStruct = (Structure) iter.next(); ArrayList childList = childStruct.findAllChildHrefObjects(); if (childList.size() > 0) list.add(childList); } } // sychronized structList } return list; }
protected ArrayList findAllChildHrefObjects () { ArrayList list = new ArrayList(); if (this instanceof Structure) { List arrayList = ((Structure) this).getArrayList(); synchronized (arrayList) { Iterator iter = arrayList.iterator(); // Must be in synchronized block while (iter.hasNext()) { Array childArray = (Array) iter.next(); Href hrefObj = childArray.getDataCube().getHref(); if (hrefObj != null) list.add(hrefObj); } } // sychronized arrayList List structList = ((Structure) this).getStructList(); synchronized (structList) { Iterator iter = structList.iterator(); // Must be in synchronized block while (iter.hasNext()) { Structure childStruct = (Structure) iter.next(); ArrayList childList = childStruct.findAllChildHrefObjects(); if (childList.size() > 0) list.add(childList); } } // sychronized structList } return list; }
6,964
protected ArrayList findAllChildHrefObjects () { ArrayList list = new ArrayList(); if (this instanceof Structure) { List arrayList = ((Structure) this).getArrayList(); synchronized (arrayList) { Iterator iter = arrayList.iterator(); // Must be in synchronized block while (iter.hasNext()) { Array childArray = (Array) iter.next(); Href hrefObj = childArray.getDataCube().getHref(); if (hrefObj != null) list.add(hrefObj); } } // sychronized arrayList List structList = ((Structure) this).getStructList(); synchronized (structList) { Iterator iter = structList.iterator(); // Must be in synchronized block while (iter.hasNext()) { Structure childStruct = (Structure) iter.next(); ArrayList childList = childStruct.findAllChildHrefObjects(); if (childList.size() > 0) list.add(childList); } } // sychronized structList } return list; }
protectedArrayListfindAllChildHrefObjects(){ArrayListlist=newArrayList();if(thisinstanceofStructure){ListarrayList=((Structure)this).getArrayList();synchronized(arrayList){Iteratoriter=arrayList.iterator();//Mustbeinsynchronizedblockwhile(iter.hasNext()){ArraychildArray=(Array)iter.next();HrefhrefObj=childArray.getDataCube().getHref();if(hrefObj!=null)list.add(hrefObj);}}//sychronizedarrayListListstructList=((Structure)this).getStructList();synchronized(structList){Iteratoriter=structList.iterator();//Mustbeinsynchronizedblockwhile(iter.hasNext()){StructurechildStruct=(Structure)iter.next();ArrayListchildList=childStruct.findAllChildHrefObjects();if(childList.size()>0)list.add(childList);}}//sychronizedstructList}returnlist;}
6,965
protected ArrayList findAllChildHrefObjects () { ArrayList list = new ArrayList(); if (this instanceof Structure) { List arrayList = ((Structure) this).getArrayList(); synchronized (arrayList) { Iterator iter = arrayList.iterator(); // Must be in synchronized block while (iter.hasNext()) { Array childArray = (Array) iter.next(); Href hrefObj = childArray.getDataCube().getHref(); if (hrefObj != null) list.add(hrefObj); } } // sychronized arrayList List structList = ((Structure) this).getStructList(); synchronized (structList) { Iterator iter = structList.iterator(); // Must be in synchronized block while (iter.hasNext()) { Structure childStruct = (Structure) iter.next(); ArrayList childList = childStruct.findAllChildHrefObjects(); if (childList.size() > 0) list.add(childList); } } // sychronized structList } return list; }
protectedArrayListfindAllChildHrefObjects(){ArrayListlist=newArrayList();if(thisinstanceofStructure){ListarrayList=((Structure)this).getArrayList();synchronized(arrayList){Iteratoriter=arrayList.iterator();//Mustbeinsynchronizedblockwhile(iter.hasNext()){ArraychildArray=(Array)iter.next();HrefhrefObj=childArray.getDataCube().getHref();if(hrefObj!=null)list.add(hrefObj);}}//sychronizedarrayListListstructList=((Structure)this).getStructList();synchronized(structList){Iteratoriter=structList.iterator();//Mustbeinsynchronizedblockwhile(iter.hasNext()){StructurechildStruct=(Structure)iter.next();ArrayListchildList=childStruct.findAllChildHrefObjects();if(childList.size()>0)list.add(childList);}}//sychronizedstructList}returnlist;}
6,966
public abstract void getInts(int memPtr, char[] dst, int dstOfs, int length);
public abstract void getInts(int memPtr, char[] dst, int dstOfs, int length);
6,967
public BOOTPHeader(SocketBuffer skbuf) { this.opcode = skbuf.get(0); this.hwType = skbuf.get(1); this.hopCount = skbuf.get(3); this.transactionID = skbuf.get32(4); this.secondsElapsed = skbuf.get16(8); this.flags = skbuf.get16(10); this.clientIPAddress = IPv4Address.readFrom(skbuf, 12); this.yourIPAddress = IPv4Address.readFrom(skbuf, 16); this.serverIPAddress = IPv4Address.readFrom(skbuf, 20); this.gatewayIPAddress = IPv4Address.readFrom(skbuf, 24); if (hwType == 1) { clientHwAddress = new EthernetAddress(skbuf, 28); } else { clientHwAddress = null; } byte[] tmp = new byte[128]; skbuf.get(tmp, 0, 32, 64); serverHostName = new String(tmp, "US-ASCII").trim(); skbuf.get(tmp, 0, 96, 128); bootFileName = new String(tmp, "US-ASCII").trim(); }
public BOOTPHeader(SocketBuffer skbuf) { this.opcode = skbuf.get(0); this.hwType = skbuf.get(1); this.hopCount = skbuf.get(3); this.transactionID = skbuf.get32(4); this.secondsElapsed = skbuf.get16(8); this.flags = skbuf.get16(10); this.clientIPAddress = IPv4Address.readFrom(skbuf, 12); this.yourIPAddress = IPv4Address.readFrom(skbuf, 16); this.serverIPAddress = IPv4Address.readFrom(skbuf, 20); this.gatewayIPAddress = IPv4Address.readFrom(skbuf, 24); if (hwType == 1) { clientHwAddress = new EthernetAddress(skbuf, 28); } else { clientHwAddress = null; } byte[] tmp = new byte[128]; skbuf.get(tmp, 0, 32, 64); serverHostName = new String(tmp, "US-ASCII").trim(); skbuf.get(tmp, 0, 96, 128); bootFileName = new String(tmp, "US-ASCII").trim(); }
6,968
public BOOTPHeader(SocketBuffer skbuf) { this.opcode = skbuf.get(0); this.hwType = skbuf.get(1); this.hopCount = skbuf.get(3); this.transactionID = skbuf.get32(4); this.secondsElapsed = skbuf.get16(8); this.flags = skbuf.get16(10); this.clientIPAddress = IPv4Address.readFrom(skbuf, 12); this.yourIPAddress = IPv4Address.readFrom(skbuf, 16); this.serverIPAddress = IPv4Address.readFrom(skbuf, 20); this.gatewayIPAddress = IPv4Address.readFrom(skbuf, 24); if (hwType == 1) { clientHwAddress = new EthernetAddress(skbuf, 28); } else { clientHwAddress = null; } byte[] tmp = new byte[128]; skbuf.get(tmp, 0, 32, 64); serverHostName = new String(tmp, "US-ASCII").trim(); skbuf.get(tmp, 0, 96, 128); bootFileName = new String(tmp, "US-ASCII").trim(); }
public BOOTPHeader(SocketBuffer skbuf) { this.opcode = skbuf.get(0); this.hwType = skbuf.get(1); this.hopCount = skbuf.get(3); this.transactionID = skbuf.get32(4); this.secondsElapsed = skbuf.get16(8); this.flags = skbuf.get16(10); this.clientIPAddress = IPv4Address.readFrom(skbuf, 12); this.yourIPAddress = IPv4Address.readFrom(skbuf, 16); this.serverIPAddress = IPv4Address.readFrom(skbuf, 20); this.gatewayIPAddress = IPv4Address.readFrom(skbuf, 24); if (hwType == 1) { clientHwAddress = new EthernetAddress(skbuf, 28); } else { clientHwAddress = null; } byte[] tmp = new byte[128]; skbuf.get(tmp, 0, 32, 64); serverHostName = new String(tmp, "US-ASCII").trim(); skbuf.get(tmp, 0, 96, 128); bootFileName = new String(tmp, "US-ASCII").trim(); }
6,969
public void prefixTo(SocketBuffer skbuf) { skbuf.insert(SIZE); skbuf.set(0, opcode); skbuf.set(1, hwType); skbuf.set(2, clientHwAddress.getLength()); skbuf.set(3, hopCount); skbuf.set32(4, transactionID); skbuf.set16(8, secondsElapsed); skbuf.set16(10, flags); if (clientIPAddress != null) { IPv4Address.writeTo(skbuf, 12, clientIPAddress); } if (yourIPAddress != null) { IPv4Address.writeTo(skbuf, 16, yourIPAddress); } if (serverIPAddress != null) { IPv4Address.writeTo(skbuf, 20, serverIPAddress); } if (gatewayIPAddress != null) { IPv4Address.writeTo(skbuf, 24, gatewayIPAddress); } if (clientHwAddress != null) { clientHwAddress.writeTo(skbuf, 28); } if (serverHostName != null) { skbuf.set(32, serverHostName.getBytes("US-ASCII"), 0, serverHostName.length()); } if (bootFileName != null) { skbuf.set(96, bootFileName.getBytes("US-ASCII"), 0, bootFileName.length()); } }
public void prefixTo(SocketBuffer skbuf) { skbuf.insert(SIZE); skbuf.set(0, opcode); skbuf.set(1, hwType); skbuf.set(2, clientHwAddress.getLength()); skbuf.set(3, hopCount); skbuf.set32(4, transactionID); skbuf.set16(8, secondsElapsed); skbuf.set16(10, flags); if (clientIPAddress != null) { IPv4Address.writeTo(skbuf, 12, clientIPAddress); } if (yourIPAddress != null) { IPv4Address.writeTo(skbuf, 16, yourIPAddress); } if (serverIPAddress != null) { IPv4Address.writeTo(skbuf, 20, serverIPAddress); } if (gatewayIPAddress != null) { IPv4Address.writeTo(skbuf, 24, gatewayIPAddress); } if (clientHwAddress != null) { clientHwAddress.writeTo(skbuf, 28); } if (serverHostName != null) { skbuf.set(32, serverHostName.getBytes("US-ASCII"), 0, serverHostName.length()); } if (bootFileName != null) { skbuf.set(96, bootFileName.getBytes("US-ASCII"), 0, bootFileName.length()); } }
6,970
public void prefixTo(SocketBuffer skbuf) { skbuf.insert(SIZE); skbuf.set(0, opcode); skbuf.set(1, hwType); skbuf.set(2, clientHwAddress.getLength()); skbuf.set(3, hopCount); skbuf.set32(4, transactionID); skbuf.set16(8, secondsElapsed); skbuf.set16(10, flags); if (clientIPAddress != null) { IPv4Address.writeTo(skbuf, 12, clientIPAddress); } if (yourIPAddress != null) { IPv4Address.writeTo(skbuf, 16, yourIPAddress); } if (serverIPAddress != null) { IPv4Address.writeTo(skbuf, 20, serverIPAddress); } if (gatewayIPAddress != null) { IPv4Address.writeTo(skbuf, 24, gatewayIPAddress); } if (clientHwAddress != null) { clientHwAddress.writeTo(skbuf, 28); } if (serverHostName != null) { skbuf.set(32, serverHostName.getBytes("US-ASCII"), 0, serverHostName.length()); } if (bootFileName != null) { skbuf.set(96, bootFileName.getBytes("US-ASCII"), 0, bootFileName.length()); } }
public void prefixTo(SocketBuffer skbuf) { skbuf.insert(SIZE); skbuf.set(0, opcode); skbuf.set(1, hwType); skbuf.set(2, clientHwAddress.getLength()); skbuf.set(3, hopCount); skbuf.set32(4, transactionID); skbuf.set16(8, secondsElapsed); skbuf.set16(10, flags); if (clientIPAddress != null) { IPv4Address.writeTo(skbuf, 12, clientIPAddress); } if (yourIPAddress != null) { IPv4Address.writeTo(skbuf, 16, yourIPAddress); } if (serverIPAddress != null) { IPv4Address.writeTo(skbuf, 20, serverIPAddress); } if (gatewayIPAddress != null) { IPv4Address.writeTo(skbuf, 24, gatewayIPAddress); } if (clientHwAddress != null) { clientHwAddress.writeTo(skbuf, 28); } if (serverHostName != null) { skbuf.set(32, serverHostName.getBytes("US-ASCII"), 0, serverHostName.length()); } if (bootFileName != null) { skbuf.set(96, bootFileName.getBytes("US-ASCII"), 0, bootFileName.length()); } }
6,971
public abstract XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException;
public abstract XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException;
6,973
public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError { ClassLoader loader = classLoader; if (loader == null) { loader = Thread.currentThread().getContextClassLoader(); } if (loader == null) { loader = XMLInputFactory.class.getClassLoader(); } String className = null; int count = 0; do { className = getFactoryClassName(loader, count++); if (className != null) { try { Class t = (loader != null) ? loader.loadClass(className) : Class.forName(className); return (XMLInputFactory) t.newInstance(); } catch (ClassNotFoundException e) { className = null; } catch (Exception e) { throw new FactoryConfigurationError(e, "error instantiating class " + className); } } } while (className == null && count < 3); //return new gnu.xml.stream.XMLInputFactoryImpl(); throw new FactoryConfigurationError(); }
public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError { ClassLoader loader = classLoader; if (loader == null) { loader = Thread.currentThread().getContextClassLoader(); } if (loader == null) { loader = XMLInputFactory.class.getClassLoader(); } String className = null; int count = 0; do { className = getFactoryClassName(loader, count++); if (className != null) { try { Class t = (loader != null) ? loader.loadClass(className) : Class.forName(className); return (XMLInputFactory) t.newInstance(); } catch (ClassNotFoundException e) { className = null; } catch (Exception e) { throw new FactoryConfigurationError(e, "error instantiating class " + className); } } } while (className == null && count < 3); //return new gnu.xml.stream.XMLInputFactoryImpl(); throw new FactoryConfigurationError(); }
6,974
public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError { ClassLoader loader = classLoader; if (loader == null) { loader = Thread.currentThread().getContextClassLoader(); } if (loader == null) { loader = XMLInputFactory.class.getClassLoader(); } String className = null; int count = 0; do { className = getFactoryClassName(loader, count++); if (className != null) { try { Class t = (loader != null) ? loader.loadClass(className) : Class.forName(className); return (XMLInputFactory) t.newInstance(); } catch (ClassNotFoundException e) { className = null; } catch (Exception e) { throw new FactoryConfigurationError(e, "error instantiating class " + className); } } } while (className == null && count < 3); //return new gnu.xml.stream.XMLInputFactoryImpl(); throw new FactoryConfigurationError(); }
public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError { ClassLoader loader = classLoader; if (loader == null) { loader = Thread.currentThread().getContextClassLoader(); } if (loader == null) { loader = XMLInputFactory.class.getClassLoader(); } String className = null; int count = 0; do { className = getFactoryClassName(loader, count++); if (className != null) { try { Class t = (loader != null) ? loader.loadClass(className) : Class.forName(className); return (XMLInputFactory) t.newInstance(); } catch (ClassNotFoundException e) { className = null; } catch (Exception e) { throw new FactoryConfigurationError(e, "error instantiating class " + className); } } } while (className == null && count < 3); //return new gnu.xml.stream.XMLInputFactoryImpl(); throw new FactoryConfigurationError(); }
6,975
public synchronized void addMouseMotionListener(MouseMotionListener listener) { mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, listener); if (mouseMotionListener != null) enableEvents(AWTEvent.MOUSE_EVENT_MASK); }
public synchronized void addMouseMotionListener(MouseMotionListener listener) { mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, listener); if (mouseMotionListener != null) enableEvents(AWTEvent.MOUSE_EVENT_MASK); }
6,976
void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); if (oldEvent != null) postEvent (oldEvent); if (eventTypeEnabled (e.id)) { // the trick we use to communicate between dispatch and redispatch // is to have KeyboardFocusManager.redispatch synchronize on the // object itself. we then do not redispatch to KeyboardFocusManager // if we are already holding the lock. if (! Thread.holdsLock(e)) { switch (e.id) { case WindowEvent.WINDOW_GAINED_FOCUS: case WindowEvent.WINDOW_LOST_FOCUS: case KeyEvent.KEY_PRESSED: case KeyEvent.KEY_RELEASED: case KeyEvent.KEY_TYPED: case FocusEvent.FOCUS_GAINED: case FocusEvent.FOCUS_LOST: if (KeyboardFocusManager .getCurrentKeyboardFocusManager() .dispatchEvent(e)) return; case MouseEvent.MOUSE_PRESSED: if (isLightweight()) requestFocus(); break; } } if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE) processEvent(e); } if (peer != null) peer.handleEvent(e); }
void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); if (oldEvent != null) postEvent (oldEvent); if (eventTypeEnabled (e.id)) { // the trick we use to communicate between dispatch and redispatch // is to have KeyboardFocusManager.redispatch synchronize on the // object itself. we then do not redispatch to KeyboardFocusManager // if we are already holding the lock. if (! Thread.holdsLock(e)) { switch (e.id) { case WindowEvent.WINDOW_GAINED_FOCUS: case WindowEvent.WINDOW_LOST_FOCUS: case KeyEvent.KEY_PRESSED: case KeyEvent.KEY_RELEASED: case KeyEvent.KEY_TYPED: case FocusEvent.FOCUS_GAINED: case FocusEvent.FOCUS_LOST: if (KeyboardFocusManager .getCurrentKeyboardFocusManager() .dispatchEvent(e)) return; case MouseEvent.MOUSE_PRESSED: if (isLightweight()) requestFocus(); break; } } if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE && !ignoreFocus) processEvent(e); } if (peer != null) peer.handleEvent(e); }
6,977
boolean eventTypeEnabled (int type) { if (type > AWTEvent.RESERVED_ID_MAX) return true; switch (type) { case ComponentEvent.COMPONENT_HIDDEN: case ComponentEvent.COMPONENT_MOVED: case ComponentEvent.COMPONENT_RESIZED: case ComponentEvent.COMPONENT_SHOWN: return (componentListener != null || (eventMask & AWTEvent.COMPONENT_EVENT_MASK) != 0); case KeyEvent.KEY_PRESSED: case KeyEvent.KEY_RELEASED: case KeyEvent.KEY_TYPED: return (keyListener != null || (eventMask & AWTEvent.KEY_EVENT_MASK) != 0); case MouseEvent.MOUSE_CLICKED: case MouseEvent.MOUSE_ENTERED: case MouseEvent.MOUSE_EXITED: case MouseEvent.MOUSE_PRESSED: case MouseEvent.MOUSE_RELEASED: case MouseEvent.MOUSE_MOVED: case MouseEvent.MOUSE_DRAGGED: return (mouseListener != null || mouseMotionListener != null || (eventMask & AWTEvent.MOUSE_EVENT_MASK) != 0); case FocusEvent.FOCUS_GAINED: case FocusEvent.FOCUS_LOST: return (focusListener != null || (eventMask & AWTEvent.FOCUS_EVENT_MASK) != 0); case InputMethodEvent.INPUT_METHOD_TEXT_CHANGED: case InputMethodEvent.CARET_POSITION_CHANGED: return (inputMethodListener != null || (eventMask & AWTEvent.INPUT_METHOD_EVENT_MASK) != 0); case PaintEvent.PAINT: case PaintEvent.UPDATE: return (eventMask & AWTEvent.PAINT_EVENT_MASK) != 0; default: return false; } }
boolean eventTypeEnabled (int type) { if (type > AWTEvent.RESERVED_ID_MAX) return true; switch (type) { case ComponentEvent.COMPONENT_HIDDEN: case ComponentEvent.COMPONENT_MOVED: case ComponentEvent.COMPONENT_RESIZED: case ComponentEvent.COMPONENT_SHOWN: return (componentListener != null || (eventMask & AWTEvent.COMPONENT_EVENT_MASK) != 0); case KeyEvent.KEY_PRESSED: case KeyEvent.KEY_RELEASED: case KeyEvent.KEY_TYPED: return (keyListener != null || (eventMask & AWTEvent.KEY_EVENT_MASK) != 0); case MouseEvent.MOUSE_CLICKED: case MouseEvent.MOUSE_ENTERED: case MouseEvent.MOUSE_EXITED: case MouseEvent.MOUSE_PRESSED: case MouseEvent.MOUSE_RELEASED: case MouseEvent.MOUSE_MOVED: case MouseEvent.MOUSE_DRAGGED: return (mouseListener != null || mouseMotionListener != null || (eventMask & AWTEvent.MOUSE_EVENT_MASK) != 0); case FocusEvent.FOCUS_GAINED: case FocusEvent.FOCUS_LOST: return (focusListener != null || (eventMask & AWTEvent.FOCUS_EVENT_MASK) != 0); case InputMethodEvent.INPUT_METHOD_TEXT_CHANGED: case InputMethodEvent.CARET_POSITION_CHANGED: return (inputMethodListener != null || (eventMask & AWTEvent.INPUT_METHOD_EVENT_MASK) != 0); case PaintEvent.PAINT: case PaintEvent.UPDATE: return (eventMask & AWTEvent.PAINT_EVENT_MASK) != 0; default: return false; } }
6,978
public void invalidate() { valid = false; prefSize = null; minSize = null; if (parent != null && parent.valid) parent.invalidate(); }
public void invalidate() { valid = false; prefSize = null; minSize = null; if (parent != null && parent.valid) parent.invalidate(); }
6,980
public void repaint() { if(!isShowing()) { Component p = parent; if (p != null) p.repaint(0, getX(), getY(), width, height); } else repaint(0, 0, 0, width, height); }
public void repaint() { if(!isShowing()) { Component p = parent; if (p != null) p.repaint(0, getX(), getY(), width, height); } else repaint(0, 0, 0, width, height); }
6,981
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight() && isShowing ()) { if (parent != null) { Rectangle parentBounds = parent.getBounds(); Rectangle oldBounds = new Rectangle(oldx, oldy, oldwidth, oldheight); Rectangle newBounds = new Rectangle(x, y, width, height); Rectangle destroyed = oldBounds.union(newBounds); if (!destroyed.isEmpty()) parent.repaint(0, destroyed.x, destroyed.y, destroyed.width, destroyed.height); } } // Only post event if this component is visible and has changed size. if (isShowing () && (oldx != x || oldy != y)) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (isShowing () && (oldwidth != width || oldheight != height)) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight() && isShowing()) { if (parent != null) { Rectangle parentBounds = parent.getBounds(); Rectangle oldBounds = new Rectangle(oldx, oldy, oldwidth, oldheight); Rectangle newBounds = new Rectangle(x, y, width, height); Rectangle destroyed = oldBounds.union(newBounds); if (!destroyed.isEmpty()) parent.repaint(0, destroyed.x, destroyed.y, destroyed.width, destroyed.height); } } // Only post event if this component is visible and has changed size. if (isShowing () && (oldx != x || oldy != y)) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (isShowing () && (oldwidth != width || oldheight != height)) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
6,982
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight() && isShowing ()) { if (parent != null) { Rectangle parentBounds = parent.getBounds(); Rectangle oldBounds = new Rectangle(oldx, oldy, oldwidth, oldheight); Rectangle newBounds = new Rectangle(x, y, width, height); Rectangle destroyed = oldBounds.union(newBounds); if (!destroyed.isEmpty()) parent.repaint(0, destroyed.x, destroyed.y, destroyed.width, destroyed.height); } } // Only post event if this component is visible and has changed size. if (isShowing () && (oldx != x || oldy != y)) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (isShowing () && (oldwidth != width || oldheight != height)) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight() && isShowing ()) { if (parent != null) { Rectangle oldBounds = new Rectangle(oldx, oldy, oldwidth, oldheight); Rectangle newBounds = new Rectangle(x, y, width, height); Rectangle destroyed = oldBounds.union(newBounds); if (!destroyed.isEmpty()) parent.repaint(0, destroyed.x, destroyed.y, destroyed.width, destroyed.height); } } // Only post event if this component is visible and has changed size. if (isShowing () && (oldx != x || oldy != y)) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (isShowing () && (oldwidth != width || oldheight != height)) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
6,983
public void setBackground(Color c) { // return if the background is already set to that color. if ((c != null) && c.equals(background)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); if (peer != null && c != null) peer.setBackground(c); Color previous = background; background = c; firePropertyChange("background", previous, c); }
public void setBackground(Color c) { // return if the background is already set to that color. if ((c != null) && c.equals(background)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); if (peer != null && c != null) peer.setBackground(c); Color previous = background; background = c; firePropertyChange("background", previous, c); }
6,984
protected String basicXMLWriter ( Writer outputWriter, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) throws java.io.IOException { // while writing out, attribHash should not be changed synchronized (attribHash) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 1. open this node, print its simple XML attributes if (nodeNameString != null) { if (Specification.getInstance().isPrettyXDFOutput()) outputWriter.write(indent); // indent node if desired outputWriter.write("<" + nodeNameString); // print opening statement } // gather info about Attributes in this object/node Hashtable xmlInfo = getXMLInfo(); // 2. Print out string object XML attributes EXCEPT for the one that // matches PCDATAAttribute. ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); // is synchronized here correct? synchronized(attribs) { int size = attribs.size(); for (int i = 0; i < size; i++) { Hashtable item = (Hashtable) attribs.get(i); outputWriter.write( " " + item.get("name") + "=\""); // this slows things down, should we use? writeOutAttribute(outputWriter, (String) item.get("value")); // outputWriter.write( (String) item.get("value")); outputWriter.write( "\"" ); } } // 3. Print out Node PCData or Child Nodes as specified by object ref // XML attributes. The way this stuff occurs will also affect how we // close the node. ArrayList childObjs = (ArrayList) xmlInfo.get("childObjList"); List childXMLElements = getElementNodeList(); String pcdata = (String) xmlInfo.get("PCDATA"); if ( childObjs.size() > 0 || childXMLElements.size() > 0 || pcdata != null || noChildObjectNodeName != null) { // close the opening tag if (nodeNameString != null) { outputWriter.write( ">"); if ((Specification.getInstance().isPrettyXDFOutput()) && (pcdata == null)) outputWriter.write( Constants.NEW_LINE); } // by definition these are printed first int size = childXMLElements.size(); String childindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); for (int i = 0; i < size; i++) { ((ElementNode) childXMLElements.get(i)).toXMLWriter(outputWriter, childindent); } // deal with object/list XML attributes, if any in our list size = childObjs.size(); for (int i = 0; i < size; i++) { Hashtable item = (Hashtable) childObjs.get(i); if (item.get("type") == Constants.LIST_TYPE) { if (hasValueListCompactDescription && valueListXMLItemName.equals(item.get("name"))) { Iterator iter = valueListObjects.iterator(); while(iter.hasNext()) { ValueListInterface valueListObj = (ValueListInterface) iter.next(); // first determine if groups should open or close // using the first value in the values list. List values = valueListObj.getValues(); Value valueObj = (Value) values.get(0); // *sigh* Yes, we have to check that all values belong to // the same groups, or problems will arise in the output. Do that here. boolean canUseCompactValueDescription = true; Set firstValueGroups = valueObj.openGroupNodeHash; Iterator valueIter = values.iterator(); valueIter.next(); // no need to do first group while (valueIter.hasNext()) { Value thisValue = (Value) valueIter.next(); if (thisValue != null) { Set thisValuesGroups = thisValue.openGroupNodeHash; if (!firstValueGroups.equals(thisValuesGroups)) { // Note this comparison also does size too Log.infoln("Cant use short description for values because some values have differing groups! Using long description instead."); canUseCompactValueDescription = false; break; } } } if (canUseCompactValueDescription) { // use compact description indent = dealWithClosingGroupNodes((BaseObject) valueObj, outputWriter, indent); indent = dealWithOpeningGroupNodes((BaseObject) valueObj, outputWriter, indent); String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); // now print the valuelist itself valueListObj.toXMLWriter(outputWriter, newindent); } else { // use regular (long) method List objectList = (List) item.get("value"); indent = objectListToXMLWriter(outputWriter, objectList, indent); } } } else { // use regular method List objectList = (List) item.get("value"); indent = objectListToXMLWriter(outputWriter, objectList, indent); } } else if (item.get("type") == Constants.OBJECT_TYPE) { BaseObject containedObj = (BaseObject) item.get("value"); if (containedObj != null) { // can happen from pre-allocation of axis values, etc (?) // shouldnt this be synchronized too?? synchronized(containedObj) { indent = dealWithClosingGroupNodes(containedObj, outputWriter, indent); indent = dealWithOpeningGroupNodes(containedObj, outputWriter, indent); String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); containedObj.toXMLWriter(outputWriter, newindent); } } } else { // error: weird type, actually shouldnt occur. Is this needed?? Log.errorln("Weird error: unknown XML attribute type for item:"+item); } } // print out PCDATA, if any if(pcdata != null) { outputWriter.write(entifyString(pcdata)); }; // if there are no PCDATA or child objects/nodes then // we print out noChildObjectNodeName and close the node if ( childObjs.size() == 0 && pcdata == null && noChildObjectNodeName != null) { if (Specification.getInstance().isPrettyXDFOutput()) outputWriter.write( indent + Specification.getInstance().getPrettyXDFOutputIndentation()); outputWriter.write("<" + noChildObjectNodeName + "/>"); if (Specification.getInstance().isPrettyXDFOutput()) outputWriter.write( Constants.NEW_LINE); } // ok, now deal with closing the node if (nodeNameString != null) { indent = dealWithClosingGroupNodes((BaseObject) this, outputWriter, indent); if (Specification.getInstance().isPrettyXDFOutput() && pcdata == null) outputWriter.write( indent); if (!dontCloseNode) outputWriter.write( "</"+nodeNameString+">"); } } else { if (nodeNameString != null) { if (dontCloseNode) { // it may not have sub-objects, but we dont want to close it // (happens for group objects) outputWriter.write( ">"); } else { // no sub-objects, just close this node outputWriter.write( "/>"); } } } // if (Specification.getInstance().isPrettyXDFOutput() && nodeNameString != null ) // outputWriter.write( Constants.NEW_LINE); return nodeNameString; } //end synchronize }
protected String basicXMLWriter ( Writer outputWriter, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) throws java.io.IOException { // while writing out, attribHash should not be changed synchronized (attribHash) { String nodeNameString = this.classXDFNodeName; // Setup. Sometimes the name of the node we are opening is different from // that specified in the classXDFNodeName (*sigh*) if (newNodeNameString != null) nodeNameString = newNodeNameString; // 1. open this node, print its simple XML attributes if (nodeNameString != null) { if (Specification.getInstance().isPrettyXDFOutput()) outputWriter.write(indent); // indent node if desired outputWriter.write("<" + nodeNameString); // print opening statement } // gather info about Attributes in this object/node Hashtable xmlInfo = getXMLInfo(); // 2. Print out string object XML attributes EXCEPT for the one that // matches PCDATAAttribute. ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); // is synchronized here correct? synchronized(attribs) { int size = attribs.size(); for (int i = 0; i < size; i++) { Hashtable item = (Hashtable) attribs.get(i); outputWriter.write( " " + item.get("name") + "=\""); // this slows things down, should we use? writeOutAttribute(outputWriter, (String) item.get("value")); // outputWriter.write( (String) item.get("value")); outputWriter.write( "\"" ); } } // 3. Print out Node PCData or Child Nodes as specified by object ref // XML attributes. The way this stuff occurs will also affect how we // close the node. ArrayList childObjs = (ArrayList) xmlInfo.get("childObjList"); List childXMLElements = getElementNodeList(); String pcdata = (String) xmlInfo.get("PCDATA"); if ( childObjs.size() > 0 || childXMLElements.size() > 0 || pcdata != null || noChildObjectNodeName != null) { // close the opening tag if (nodeNameString != null) { outputWriter.write( ">"); if ((Specification.getInstance().isPrettyXDFOutput()) && (pcdata == null)) outputWriter.write( Constants.NEW_LINE); } // by definition these are printed first int size = childXMLElements.size(); String childindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); for (int i = 0; i < size; i++) { ((ElementNode) childXMLElements.get(i)).toXMLWriter(outputWriter, childindent); } // deal with object/list XML attributes, if any in our list size = childObjs.size(); for (int i = 0; i < size; i++) { Hashtable item = (Hashtable) childObjs.get(i); if (item.get("type") == Constants.LIST_TYPE) { if (hasValueListCompactDescription && valueListXMLItemName.equals(item.get("name"))) { Iterator iter = valueListObjects.iterator(); while(iter.hasNext()) { ValueList valueListObj = (ValueList) iter.next(); // first determine if groups should open or close // using the first value in the values list. List values = valueListObj.getValues(); Value valueObj = (Value) values.get(0); // *sigh* Yes, we have to check that all values belong to // the same groups, or problems will arise in the output. Do that here. boolean canUseCompactValueDescription = true; Set firstValueGroups = valueObj.openGroupNodeHash; Iterator valueIter = values.iterator(); valueIter.next(); // no need to do first group while (valueIter.hasNext()) { Value thisValue = (Value) valueIter.next(); if (thisValue != null) { Set thisValuesGroups = thisValue.openGroupNodeHash; if (!firstValueGroups.equals(thisValuesGroups)) { // Note this comparison also does size too Log.infoln("Cant use short description for values because some values have differing groups! Using long description instead."); canUseCompactValueDescription = false; break; } } } if (canUseCompactValueDescription) { // use compact description indent = dealWithClosingGroupNodes((BaseObject) valueObj, outputWriter, indent); indent = dealWithOpeningGroupNodes((BaseObject) valueObj, outputWriter, indent); String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); // now print the valuelist itself valueListObj.toXMLWriter(outputWriter, newindent); } else { // use regular (long) method List objectList = (List) item.get("value"); indent = objectListToXMLWriter(outputWriter, objectList, indent); } } } else { // use regular method List objectList = (List) item.get("value"); indent = objectListToXMLWriter(outputWriter, objectList, indent); } } else if (item.get("type") == Constants.OBJECT_TYPE) { BaseObject containedObj = (BaseObject) item.get("value"); if (containedObj != null) { // can happen from pre-allocation of axis values, etc (?) // shouldnt this be synchronized too?? synchronized(containedObj) { indent = dealWithClosingGroupNodes(containedObj, outputWriter, indent); indent = dealWithOpeningGroupNodes(containedObj, outputWriter, indent); String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); containedObj.toXMLWriter(outputWriter, newindent); } } } else { // error: weird type, actually shouldnt occur. Is this needed?? Log.errorln("Weird error: unknown XML attribute type for item:"+item); } } // print out PCDATA, if any if(pcdata != null) { outputWriter.write(entifyString(pcdata)); }; // if there are no PCDATA or child objects/nodes then // we print out noChildObjectNodeName and close the node if ( childObjs.size() == 0 && pcdata == null && noChildObjectNodeName != null) { if (Specification.getInstance().isPrettyXDFOutput()) outputWriter.write( indent + Specification.getInstance().getPrettyXDFOutputIndentation()); outputWriter.write("<" + noChildObjectNodeName + "/>"); if (Specification.getInstance().isPrettyXDFOutput()) outputWriter.write( Constants.NEW_LINE); } // ok, now deal with closing the node if (nodeNameString != null) { indent = dealWithClosingGroupNodes((BaseObject) this, outputWriter, indent); if (Specification.getInstance().isPrettyXDFOutput() && pcdata == null) outputWriter.write( indent); if (!dontCloseNode) outputWriter.write( "</"+nodeNameString+">"); } } else { if (nodeNameString != null) { if (dontCloseNode) { // it may not have sub-objects, but we dont want to close it // (happens for group objects) outputWriter.write( ">"); } else { // no sub-objects, just close this node outputWriter.write( "/>"); } } } // if (Specification.getInstance().isPrettyXDFOutput() && nodeNameString != null ) // outputWriter.write( Constants.NEW_LINE); return nodeNameString; } //end synchronize }
6,986
protected void setValueListObj (ValueListInterface valueListObj) { resetValueListObjects(); addValueListObj(valueListObj); }
protected void setValueListObj (ValueList valueListObj) { resetValueListObjects(); addValueListObj(valueListObj); }
6,987
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX requestRegister(ECX); requestRegister(EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = EAX; final Register tmpr = requestRegister(JvmType.INT, false); // Resolve the class writeResolveAndLoadClassToReg(classRef, classr); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* Is objectref null? */ os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); /* Is instanceof? */ instanceOf(refr, classr, tmpr, okLabel, true); /* Not instanceof */ // Release temp registers here, so invokeJavaMethod can use it releaseRegister(ECX); releaseRegister(classr); releaseRegister(tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); }
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX requestRegister(ECX); requestRegister(EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = EAX; final Register tmpr = requestRegister(JvmType.INT, false); // Resolve the class writeResolveAndLoadClassToReg(classRef, classr); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* Is objectref null? */ os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); /* Is instanceof? */ instanceOf(refr, classr, tmpr, okLabel, true); /* Not instanceof */ // Release temp registers here, so invokeJavaMethod can use it releaseRegister(ECX); releaseRegister(classr); releaseRegister(tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); }
6,988
public void endDraggingFrame(JComponent f) {// super.endDraggingFrame(f); JInternalFrame frame = (JInternalFrame)f;// JDesktopPane desk = frame.getDesktopPane();// desk.repaint();// frame.validate();// frame.repaint(); ((Gui5250)frame.getContentPane()).getScreen().gg2d = null; }
publicvoidendDraggingFrame(JComponentf){//super.endDraggingFrame(f);JInternalFrameframe=(JInternalFrame)f;//JDesktopPanedesk=frame.getDesktopPane();//desk.repaint();//frame.validate();//frame.repaint();((Gui5250)frame.getContentPane()).getScreen().gg2d=null;}
6,989
public void endDraggingFrame(JComponent f) {// super.endDraggingFrame(f); JInternalFrame frame = (JInternalFrame)f;// JDesktopPane desk = frame.getDesktopPane();// desk.repaint();// frame.validate();// frame.repaint(); ((Gui5250)frame.getContentPane()).getScreen().gg2d = null; }
public void endDraggingFrame(JComponent f) {// super.endDraggingFrame(f); JInternalFrame frame = (JInternalFrame)f;// JDesktopPane desk = frame.getDesktopPane();// desk.repaint();// frame.validate();// frame.repaint(); ((Gui5250)frame.getContentPane()).getScreen().gg2d = null; }
6,990
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable internalId = openFrameCount; //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(600,500); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(InternalFrameEvent e) {// displayMessage("Internal frame closing", e); disconnectMe(); } public void internalFrameClosed(InternalFrameEvent e) {// displayMessage("Internal frame closed", e); disconnectMe(); } public void internalFrameOpened(InternalFrameEvent e) {// displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) {// displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) {// displayMessage("Internal frame deiconified", e); repaint(); } public void internalFrameActivated(InternalFrameEvent e) {// displayMessage("Internal frame activated", e); activated = true; repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { activated = false;// displayMessage("Internal frame deactivated", e); } }); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable internalId = openFrameCount; //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(600,500); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(InternalFrameEvent e) {// displayMessage("Internal frame closing", e); disconnectMe(); } public void internalFrameClosed(InternalFrameEvent e) {// displayMessage("Internal frame closed", e); disconnectMe(); } public void internalFrameOpened(InternalFrameEvent e) {// displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) {// displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) {// displayMessage("Internal frame deiconified", e); calculateVisibility(); } public void internalFrameActivated(InternalFrameEvent e) {// displayMessage("Internal frame activated", e); activated = true; calculateVisibility(); } public void internalFrameDeactivated(InternalFrameEvent e) { activated = false;// displayMessage("Internal frame deactivated", e); } }); }
6,993
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable internalId = openFrameCount; //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(600,500); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(InternalFrameEvent e) {// displayMessage("Internal frame closing", e); disconnectMe(); } public void internalFrameClosed(InternalFrameEvent e) {// displayMessage("Internal frame closed", e); disconnectMe(); } public void internalFrameOpened(InternalFrameEvent e) {// displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) {// displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) {// displayMessage("Internal frame deiconified", e); repaint(); } public void internalFrameActivated(InternalFrameEvent e) {// displayMessage("Internal frame activated", e); activated = true; repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { activated = false;// displayMessage("Internal frame deactivated", e); } }); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable internalId = openFrameCount; //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(600,500); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(InternalFrameEvent e) {// displayMessage("Internal frame closing", e); disconnectMe(); } public void internalFrameClosed(InternalFrameEvent e) {// displayMessage("Internal frame closed", e); disconnectMe(); } public void internalFrameOpened(InternalFrameEvent e) {// displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) {// displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) {// displayMessage("Internal frame deiconified", e); calculateVisibility(); } public void internalFrameActivated(InternalFrameEvent e) {// displayMessage("Internal frame activated", e); activated = true; calculateVisibility(); } public void internalFrameDeactivated(InternalFrameEvent e) { activated = false;// displayMessage("Internal frame deactivated", e); } }); }
6,994
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable internalId = openFrameCount; //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(600,500); //Set the window's location. setLocation(xOffset*openFrameCount, yOffset*openFrameCount); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(InternalFrameEvent e) {// displayMessage("Internal frame closing", e); disconnectMe(); } public void internalFrameClosed(InternalFrameEvent e) {// displayMessage("Internal frame closed", e); disconnectMe(); } public void internalFrameOpened(InternalFrameEvent e) {// displayMessage("Internal frame opened", e); } public void internalFrameIconified(InternalFrameEvent e) {// displayMessage("Internal frame iconified", e); } public void internalFrameDeiconified(InternalFrameEvent e) {// displayMessage("Internal frame deiconified", e); repaint(); } public void internalFrameActivated(InternalFrameEvent e) {// displayMessage("Internal frame activated", e); activated = true; repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { activated = false;// displayMessage("Internal frame deactivated", e); } }); }
calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); MyInternalFrame()calculateVisibility(); {calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); super("#"calculateVisibility(); +calculateVisibility(); (++openFrameCount),calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); true,calculateVisibility(); //resizablecalculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); true,calculateVisibility(); //closablecalculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); true,calculateVisibility(); //maximizablecalculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); true);//iconifiablecalculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); internalIdcalculateVisibility(); =calculateVisibility(); openFrameCount;calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); //...CreatecalculateVisibility(); thecalculateVisibility(); GUIcalculateVisibility(); andcalculateVisibility(); putcalculateVisibility(); itcalculateVisibility(); incalculateVisibility(); thecalculateVisibility(); window...calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); //...ThencalculateVisibility(); setcalculateVisibility(); thecalculateVisibility(); windowcalculateVisibility(); sizecalculateVisibility(); orcalculateVisibility(); callcalculateVisibility(); pack...calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); setSize(600,500);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); //SetcalculateVisibility(); thecalculateVisibility(); window'scalculateVisibility(); location.calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); setLocation(xOffset*openFrameCount,calculateVisibility(); yOffset*openFrameCount);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); addInternalFrameListener(newcalculateVisibility(); InternalFrameAdapter()calculateVisibility(); {calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); voidcalculateVisibility(); internalFrameClosing(InternalFrameEventcalculateVisibility(); e)calculateVisibility(); {//calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); displayMessage("InternalcalculateVisibility(); framecalculateVisibility(); closing",calculateVisibility(); e);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); disconnectMe();calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); voidcalculateVisibility(); internalFrameClosed(InternalFrameEventcalculateVisibility(); e)calculateVisibility(); {//calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); displayMessage("InternalcalculateVisibility(); framecalculateVisibility(); closed",calculateVisibility(); e);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); disconnectMe();calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); voidcalculateVisibility(); internalFrameOpened(InternalFrameEventcalculateVisibility(); e)calculateVisibility(); {//calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); displayMessage("InternalcalculateVisibility(); framecalculateVisibility(); opened",calculateVisibility(); e);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); voidcalculateVisibility(); internalFrameIconified(InternalFrameEventcalculateVisibility(); e)calculateVisibility(); {//calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); displayMessage("InternalcalculateVisibility(); framecalculateVisibility(); iconified",calculateVisibility(); e);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); voidcalculateVisibility(); internalFrameDeiconified(InternalFrameEventcalculateVisibility(); e)calculateVisibility(); {//calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); displayMessage("InternalcalculateVisibility(); framecalculateVisibility(); deiconified",calculateVisibility(); e);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); repaint();calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); voidcalculateVisibility(); internalFrameActivated(InternalFrameEventcalculateVisibility(); e)calculateVisibility(); {//calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); displayMessage("InternalcalculateVisibility(); framecalculateVisibility(); activated",calculateVisibility(); e);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); activatedcalculateVisibility(); =calculateVisibility(); true;calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); repaint();calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); voidcalculateVisibility(); internalFrameDeactivated(InternalFrameEventcalculateVisibility(); e)calculateVisibility(); {calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); activatedcalculateVisibility(); =calculateVisibility(); false;//calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); displayMessage("InternalcalculateVisibility(); framecalculateVisibility(); deactivated",calculateVisibility(); e);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); });calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }
6,995
public void internalFrameActivated(InternalFrameEvent e) {// displayMessage("Internal frame activated", e); activated = true; repaint(); }
public void internalFrameActivated(InternalFrameEvent e) {// displayMessage("Internal frame activated", e); activated = true; calculateVisibility(); }
6,996
public void internalFrameDeactivated(InternalFrameEvent e) { activated = false;// displayMessage("Internal frame deactivated", e); }
calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); publiccalculateVisibility(); voidcalculateVisibility(); internalFrameDeactivated(InternalFrameEventcalculateVisibility(); e)calculateVisibility(); {calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); activatedcalculateVisibility(); =calculateVisibility(); false;//calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); displayMessage("InternalcalculateVisibility(); framecalculateVisibility(); deactivated",calculateVisibility(); e);calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); calculateVisibility(); }
6,999
public void internalFrameDeiconified(InternalFrameEvent e) {// displayMessage("Internal frame deiconified", e); repaint(); }
public void internalFrameDeiconified(InternalFrameEvent e) {// displayMessage("Internal frame deiconified", e); calculateVisibility(); }
7,000
private void disconnectMe() { Session s = (Session)getContentPane(); me.closeSession(s);// this.setVisible(false);// disconnectMe(s); }
private void disconnectMe() {Session s = (Session)getContentPane();me.closeSession(s);//this.setVisible(false);//disconnectMe(s); }
7,003
private void nextSession() { MyInternalFrame mif = getNextInternalFrame(); if (mif != null) { try { mif.setSelected(true); if (mif.isIcon()) mif.setIcon(false); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } }// System.out.println(" current index " + index + " count " + desktop.getComponentCount()); }
private void nextSession() { MyInternalFrame mif = getNextInternalFrame(); if (mif != null) { try { mif.setSelected(true); if (mif.isIcon()) mif.setIcon(false); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } }// System.out.println(" current index " + index + " count " + desktop.getComponentCount()); }
7,005
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getState() + " " + d); final int index = getIndexOfSession(ses); System.out.println(" index of session " + index + " num frames " + desktop.getAllFrames().length); if (index == -1) return; Runnable tc = new Runnable () { public void run() { JInternalFrame[] frames = desktop.getAllFrames(); frames[index].setTitle(frames[index].getTitle() + " " + d); } }; SwingUtilities.invokeLater(tc); } break; } }
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getState() + " " + d); final int index = getIndexOfSession(ses); if (index == -1) return; Runnable tc = new Runnable () { public void run() { JInternalFrame[] frames = desktop.getAllFrames(); frames[index].setTitle(frames[index].getTitle() + " " + d); } }; SwingUtilities.invokeLater(tc); } break; } }
7,006
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getState() + " " + d); final int index = getIndexOfSession(ses); System.out.println(" index of session " + index + " num frames " + desktop.getAllFrames().length); if (index == -1) return; Runnable tc = new Runnable () { public void run() { JInternalFrame[] frames = desktop.getAllFrames(); frames[index].setTitle(frames[index].getTitle() + " " + d); } }; SwingUtilities.invokeLater(tc); } break; } }
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getState() + " " + d); final int index = getIndexOfSession(ses); System.out.println(" index of session " + index + " num frames " + desktop.getAllFrames().length); if (index == -1) return; Runnable tc = new Runnable () { public void run() { JInternalFrame[] frames = desktop.getAllFrames(); int id = ((MyInternalFrame)frames[index]).getInternalId(); frames[index].setTitle("#" + id + " " + d); } }; SwingUtilities.invokeLater(tc); } break; } }
7,007
public void run() { JInternalFrame[] frames = desktop.getAllFrames(); frames[index].setTitle(frames[index].getTitle() + " " + d); }
public void run() { JInternalFrame[] frames = desktop.getAllFrames(); int id = ((MyInternalFrame)frames[index]).getInternalId(); frames[index].setTitle("#" + id + " " + d); }
7,008
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); if (miv == null) return; int index = desktop.getIndexOf(miv); if (index == -1) return; MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; for (int x = 0; x < myFrameList.size(); x++) { MyInternalFrame mif = (MyInternalFrame)myFrameList.get(x);// System.out.println(" current index " + x + " count " + frames.length + " has focus " +// mif.isActive() + " title " + mif.getTitle() + " seq " + seq +// " id " + mif.getInternalId()); if (mix.equals(mif)) { index = x - 1; break; } } if (index < 0) { index = myFrameList.size() - 1; } try { ((MyInternalFrame)myFrameList.get(index)).setSelected(true); if (((MyInternalFrame)myFrameList.get(index)).isIcon()) ((MyInternalFrame)myFrameList.get(index)).setIcon(false); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); }// System.out.println(" current index " + index + " count " + desktop.getComponentCount()); }
private void prevSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); if (miv == null) return; int index = desktop.getIndexOf(miv); if (index == -1) return; MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; for (int x = 0; x < myFrameList.size(); x++) { MyInternalFrame mif = (MyInternalFrame)myFrameList.get(x);// System.out.println(" current index " + x + " count " + frames.length + " has focus " +// mif.isActive() + " title " + mif.getTitle() + " seq " + seq +// " id " + mif.getInternalId()); if (mix.equals(mif)) { index = x - 1; break; } } if (index < 0) { index = myFrameList.size() - 1; } try { ((MyInternalFrame)myFrameList.get(index)).setSelected(true); if (((MyInternalFrame)myFrameList.get(index)).isIcon()) ((MyInternalFrame)myFrameList.get(index)).setIcon(false); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); }// System.out.println(" current index " + index + " count " + desktop.getComponentCount()); }
7,009
public final static String getKeyStrokeText(KeyEvent ke) { if (!workStroke.equals(ke)) { workStroke.setAttributes(ke); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; }
public final static String getKeyStrokeText(KeyEvent ke) { if (!workStroke.equals(ke)) { workStroke.setAttributes(ke); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; }
7,010
protected RemoteServer() { super();}
protected RemoteServer() { super();}
7,011
protected RemoteServer() { super();}
protected RemoteServer() { super();}
7,012
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); }}
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); }}
7,013
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); }}
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); }}
7,014
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); }}
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); }}
7,015
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); }}
public static String getClientHost() throws ServerNotActiveException { Thread currThread = Thread.currentThread(); if (currThread instanceof RMIIncomingThread) { RMIIncomingThread incomingThread = (RMIIncomingThread) currThread; return incomingThread.getClientHost(); } else { throw new ServerNotActiveException( "Unknown client host - current thread not instance of 'RMIIncomingThread'"); }}
7,016
public static PrintStream getLog() { throw new Error("Not implemented");}
public static PrintStream getLog() { throw new Error("Not implemented");}
7,017
public static PrintStream getLog() { throw new Error("Not implemented");}
public static PrintStream getLog() { throw new Error("Not implemented");}
7,018
public static void setLog(OutputStream out) { throw new Error("Not implemented");}
public static void setLog(OutputStream out) { throw new Error("Not implemented");}
7,019
public static void setLog(OutputStream out) { throw new Error("Not implemented");}
public static void setLog(OutputStream out) { throw new Error("Not implemented");}
7,020
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory // SESSIONS is declared as a string, so we just can use the keyword here. if(ses.exists()) { int cfc; cfc = JOptionPane.showConfirmDialog(null, "Dear User,\n\n" + "Seems you are using an old version of tn5250j.\n" + "In meanwhile the application became multi-user capable,\n" + "which means ALL the config- and settings-files are\n" + "placed in your home-dir to avoid further problems in\n" + "the near future.\n\n" + "You have the choice to choose if you want the files\n" + "to be copied or not, please make your choice !\n\n" + "Shall we copy the files to the new location ?", "Old install detected", JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_OPTION); if (cfc == 0) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); // Here we do a checkdir so we know the destination-dir exists checkDirs(); copyConfigs(SESSIONS); copyConfigs(MACROS); copyConfigs(KEYMAP); } else { JOptionPane.showMessageDialog(null, "Dear User,\n\n" + "You choosed not to copy the file.\n" + "This means the program will end here.\n\n" + "To use this NON-STANDARD behaviour start tn5250j\n" + "with -Demulator.settingsDirectory=<settings-dir> \n" + "as a parameter to avoid this question all the time.", "Using NON-STANDARD behaviour", JOptionPane.WARNING_MESSAGE); System.exit(0); } } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); System.out.println("User Home = " + System.getProperty("user.home")); } }
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory // SESSIONS is declared as a string, so we just can use the keyword here. if(ses.exists()) { int cfc; cfc = JOptionPane.showConfirmDialog(null, "Dear User,\n\n" + "Seems you are using an old version of tn5250j.\n" + "In meanwhile the application became multi-user capable,\n" + "which means ALL the config- and settings-files are\n" + "placed in your home-dir to avoid further problems in\n" + "the near future.\n\n" + "You have the choice to choose if you want the files\n" + "to be copied or not, please make your choice !\n\n" + "Shall we copy the files to the new location ?", "Old install detected", JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_OPTION); if (cfc == 0) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); // Here we do a checkdir so we know the destination-dir exists checkDirs(); copyConfigs(SESSIONS); copyConfigs(MACROS); copyConfigs(KEYMAP); } else { JOptionPane.showMessageDialog(null, "Dear User,\n\n" + "You choosed not to copy the file.\n" + "This means the program will end here.\n\n" + "To use this NON-STANDARD behaviour start tn5250j\n" + "with -Demulator.settingsDirectory=<settings-dir> \n" + "as a parameter to avoid this question all the time.", "Using NON-STANDARD behaviour", JOptionPane.WARNING_MESSAGE); System.exit(0); } } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); System.out.println("User Home = " + System.getProperty("user.home")); } }
7,021
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory // SESSIONS is declared as a string, so we just can use the keyword here. if(ses.exists()) { int cfc; cfc = JOptionPane.showConfirmDialog(null, "Dear User,\n\n" + "Seems you are using an old version of tn5250j.\n" + "In meanwhile the application became multi-user capable,\n" + "which means ALL the config- and settings-files are\n" + "placed in your home-dir to avoid further problems in\n" + "the near future.\n\n" + "You have the choice to choose if you want the files\n" + "to be copied or not, please make your choice !\n\n" + "Shall we copy the files to the new location ?", "Old install detected", JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_OPTION); if (cfc == 0) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); // Here we do a checkdir so we know the destination-dir exists checkDirs(); copyConfigs(SESSIONS); copyConfigs(MACROS); copyConfigs(KEYMAP); } else { JOptionPane.showMessageDialog(null, "Dear User,\n\n" + "You choosed not to copy the file.\n" + "This means the program will end here.\n\n" + "To use this NON-STANDARD behaviour start tn5250j\n" + "with -Demulator.settingsDirectory=<settings-dir> \n" + "as a parameter to avoid this question all the time.", "Using NON-STANDARD behaviour", JOptionPane.WARNING_MESSAGE); System.exit(0); } } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); System.out.println("User Home = " + System.getProperty("user.home")); } }
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory // SESSIONS is declared as a string, so we just can use the keyword here. if(ses.exists()) { int cfc; cfc = JOptionPane.showConfirmDialog(null, "Dear User,\n\n" + "Seems you are using an old version of tn5250j.\n" + "In meanwhile the application became multi-user capable,\n" + "which means ALL the config- and settings-files are\n" + "placed in your home-dir to avoid further problems in\n" + "the near future.\n\n" + "You have the choice to choose if you want the files\n" + "to be copied or not, please make your choice !\n\n" + "Shall we copy the files to the new location ?", "Old install detected", JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_OPTION); if (cfc == 0) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); // Here we do a checkdir so we know the destination-dir exists checkDirs(); copyConfigs(SESSIONS); copyConfigs(MACROS); copyConfigs(KEYMAP); } else { JOptionPane.showMessageDialog(null, "Dear User,\n\n" + "You choosed not to copy the file.\n" + "This means the program will end here.\n\n" + "To use this NON-STANDARD behaviour start tn5250j\n" + "with -Demulator.settingsDirectory=<settings-dir> \n" + "as a parameter to avoid this question all the time.", "Using NON-STANDARD behaviour", JOptionPane.WARNING_MESSAGE); System.exit(0); } } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); System.out.println("User Home = " + System.getProperty("user.home")); } }
7,022
private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emulator.settingsDirectory", System.getProperty("emulator.settingsDirectory") + File.separator); checkDirs(); } else { try { in = new FileInputStream(settingsFile); settings.load(in); } catch (FileNotFoundException fnfe) { try { again = new FileInputStream(System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + settingsFile); settings.load(again); } catch (FileNotFoundException fnfea) { System.out.println(" Information Message: " + fnfea.getMessage() + ". The file " + settingsFile + " will be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioea) { System.out.println("IO Exception accessing File " + settingsFile + " for the following reason : " + ioea.getMessage()); } catch (SecurityException sea) { System.out.println("Security Exception for file " + settingsFile + " This file can not be " + "accessed because : " + sea.getMessage()); } } catch (IOException ioe) { System.out.println("IO Exception accessing File " + settingsFile + " for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file " + settingsFile + " This file can not be " + "accessed because : " + se.getMessage()); } } }
private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emulator.settingsDirectory", System.getProperty("emulator.settingsDirectory") + File.separator); checkDirs(); } else { try { in = new FileInputStream(settingsFile); settings.load(in); } catch (FileNotFoundException fnfe) { try { again = new FileInputStream(System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + settingsFile); settings.load(again); } catch (FileNotFoundException fnfea) { System.out.println(" Information Message: " + fnfea.getMessage() + ". The file " + settingsFile + " will be created for first time use."); checkLegacy(); saveSettings(); } catch (IOException ioea) { System.out.println("IO Exception accessing File " + settingsFile + " for the following reason : " + ioea.getMessage()); } catch (SecurityException sea) { System.out.println("Security Exception for file " + settingsFile + " This file can not be " + "accessed because : " + sea.getMessage()); } } catch (IOException ioe) { System.out.println("IO Exception accessing File " + settingsFile + " for the following reason : " + ioe.getMessage()); } catch (SecurityException se) { System.out.println("Security Exception for file " + settingsFile + " This file can not be " + "accessed because : " + se.getMessage()); } } }
7,023
public void saveSettings() { try { FileOutputStream out = new FileOutputStream(settingsFile); settings.store(out,"----------------- tn5250j Global Settings --------------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {} }
public void saveSettings() { try { FileOutputStream out = new FileOutputStream(settingsDirectory() + settingsFile); settings.store(out,"----------------- tn5250j Global Settings --------------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {} }
7,024
public ChunkedInputStream(InputStream in, Headers headers) { super(in); this.headers = headers; size = -1; count = 0; meta = true; }
public ChunkedInputStream(InputStream in, Headers headers) { this.in = in; this.headers = headers; size = -1; count = 0; meta = true; }
7,025
public void setTitleJustification(int titleJustification) { if ((titleJustification < DEFAULT_JUSTIFICATION) || (titleJustification > TRAILING)) throw new IllegalArgumentException(); // Swing borders are not JavaBeans, thus no need to fire an event. this.titleJustification = titleJustification; }
public void setTitleJustification(int titleJustification) { if ((titleJustification < DEFAULT_JUSTIFICATION) || (titleJustification > TRAILING)) throw new IllegalArgumentException(titleJustification + " is not a valid title justification."); // Swing borders are not JavaBeans, thus no need to fire an event. this.titleJustification = titleJustification; }
7,026
public void setTitlePosition(int titlePosition) { if ((titlePosition < DEFAULT_POSITION) || (titlePosition > BELOW_BOTTOM)) throw new IllegalArgumentException(); // Swing borders are not JavaBeans, thus no need to fire an event. this.titlePosition = titlePosition; }
public void setTitlePosition(int titlePosition) { if ((titlePosition < DEFAULT_POSITION) || (titlePosition > BELOW_BOTTOM)) throw new IllegalArgumentException(titlePosition + " is not a valid title position."); // Swing borders are not JavaBeans, thus no need to fire an event. this.titlePosition = titlePosition; }
7,027
public void propertyChange(PropertyChangeEvent event) { // TODO: What should be done here, if anything? }
if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } publicif ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } voidif ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } propertyChange(PropertyChangeEventif ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } event)if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } {if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } //if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } TODO:if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } Whatif ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } shouldif ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } beif ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } doneif ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } here,if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } ifif ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } anything?if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } }
7,028
Object getPreviousVisibleNode(Object node) { if (currentVisiblePath != null) { Object[] nodes = currentVisiblePath.getPath(); int i = 0; while (i < nodes.length && !node.equals(nodes[i])) i++; // return the next node if (i-1 > 0) return nodes[i-1]; } return null; }
Object getPreviousVisibleNode(Object node) { if (currentVisiblePath != null) { Object[] nodes = currentVisiblePath.getPath(); int i = 0; while (i < nodes.length && !node.equals(nodes[i])) i++; // return the next node if (i-1 >= 0) return nodes[i-1]; } return null; }
7,029
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, tree, treeModel, root); } }
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, tree, treeModel, root); } }
7,031
int paintControlIcons(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object node) { int rowHeight = getRowHeight(); TreePath path = new TreePath(getPathToRoot(node, 0)); Icon icon = getCurrentControlIcon(path); Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; if (mod.isLeaf(node)) descent += rowHeight; else { if (!node.equals(mod.getRoot()) && (tree.isRootVisible() || getLevel(node) != 1)) { int width = icon.getIconWidth(); int height = icon.getIconHeight() + 2; int posX = indentation - rightChildIndent; int posY = descent; if (width > rightChildIndent) posX -= gap; else posX += width/2; if (height < rowHeight) posY += height/2; icon.paintIcon(tree, g, posX, posY); } if (depth > 0 || tree.isRootVisible()) descent += rowHeight; if (tree.isExpanded(path)) { int max = 0; if (!mod.isLeaf(node)) max = mod.getChildCount(node); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (depth == 0 && !tree.isRootVisible()) indent = 1; descent = paintControlIcons(g, indent, descent, depth + 1, tree, mod, mod.getChild(node, i)); } } } return descent; }
if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) paintControlIcons(Graphicsif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) g,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) indentation,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descent,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) depth,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) JTreeif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) tree,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) TreeModelif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) mod,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) Objectif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) node)if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) {if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) rowHeightif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) getRowHeight();if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) TreePathif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) pathif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) newif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) TreePath(getPathToRoot(node,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 0));if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) Iconif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) iconif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) getCurrentControlIcon(path);if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) Rectangleif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) clipif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) tree.getVisibleRect();if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (indentationif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) >if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) clip.xif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) clip.widthif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) rightChildIndentif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ||if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descentif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) >if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) clip.yif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) clip.heightif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) getRowHeight())if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) returnif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descent;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (mod.isLeaf(node))if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descentif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +=if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) rowHeight;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) elseif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) {if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (!node.equals(mod.getRoot())if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) &&if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (tree.isRootVisible()if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ||if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) getLevel(node)if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) !=if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 1))if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) {if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) widthif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) icon.getIconWidth();if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) heightif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) icon.getIconHeight()if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 2;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) posXif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) indentationif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) -if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) rightChildIndent;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) posYif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descent;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (widthif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) >if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) rightChildIndent)if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) posXif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) -=if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) gap;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) elseif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) posXif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +=if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) width/2;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (heightif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) <if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) rowHeight)if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) posYif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +=if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) height/2;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) icon.paintIcon(tree,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) g,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) posX,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) posY);if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) }if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (depthif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) >if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 0if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ||if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) tree.isRootVisible())if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descentif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +=if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) rowHeight;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (tree.isExpanded(path))if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) {if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) maxif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 0;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (!mod.isLeaf(node))if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) maxif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) mod.getChildCount(node);if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) forif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) iif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 0;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) iif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) <if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) max;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) i++)if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) {if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) intif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) indentif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) indentationif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) rightChildIndent;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ifif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) (depthif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) ==if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 0if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) &&if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) !tree.isRootVisible())if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) indentif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 1;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descentif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) =if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) paintControlIcons(g,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) indent,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descent,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) depthif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) +if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) 1,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) tree,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) mod,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) mod.getChild(node,if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) i));if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) }if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) }if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) }if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) returnif (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) descent;if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) if (tree.isVisible(new TreePath(getPathToRoot(child, 0)))) }
7,032
int paintControlIcons(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object node) { int rowHeight = getRowHeight(); TreePath path = new TreePath(getPathToRoot(node, 0)); Icon icon = getCurrentControlIcon(path); Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; if (mod.isLeaf(node)) descent += rowHeight; else { if (!node.equals(mod.getRoot()) && (tree.isRootVisible() || getLevel(node) != 1)) { int width = icon.getIconWidth(); int height = icon.getIconHeight() + 2; int posX = indentation - rightChildIndent; int posY = descent; if (width > rightChildIndent) posX -= gap; else posX += width/2; if (height < rowHeight) posY += height/2; icon.paintIcon(tree, g, posX, posY); } if (depth > 0 || tree.isRootVisible()) descent += rowHeight; if (tree.isExpanded(path)) { int max = 0; if (!mod.isLeaf(node)) max = mod.getChildCount(node); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (depth == 0 && !tree.isRootVisible()) indent = 1; descent = paintControlIcons(g, indent, descent, depth + 1, tree, mod, mod.getChild(node, i)); } } } return descent; }
int paintControlIcons(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object node) { int rowHeight = getRowHeight(); TreePath path = new TreePath(getPathToRoot(node, 0)); Icon icon = getCurrentControlIcon(path); Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; if (mod.isLeaf(node)) descent += rowHeight; else { if (!node.equals(mod.getRoot()) && (tree.isRootVisible() || getLevel(node) != 1)) { int width = icon.getIconWidth(); int height = icon.getIconHeight() + 2; int posX = indentation - rightChildIndent; int posY = descent; if (width > rightChildIndent) posX -= gap; else posX += width/2; if (height < rowHeight) posY += height/2; icon.paintIcon(tree, g, posX, posY); } if (depth > 0 || tree.isRootVisible()) descent += rowHeight; if (tree.isExpanded(path)) { int max = 0; if (!mod.isLeaf(node)) max = mod.getChildCount(node); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (depth == 0 && !tree.isRootVisible()) indent = 1; descent = paintControlIcons(g, indent, descent, depth + 1, tree, mod, child); } } } return descent; }
7,033
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root))) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root)) && childVis) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
7,034
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root))) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root))) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, child); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
7,035
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root))) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root))) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
7,036
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root))) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root))) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
7,037
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; TreePath path = new TreePath(getPathToRoot(curr, 0)); int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; int row = getRowForPath(tree, path); boolean isRootVisible = tree.isRootVisible(); boolean isExpanded = tree.isExpanded(path); boolean isLeaf = mod.isLeaf(curr); Rectangle bounds = getPathBounds(tree, path); Object root = mod.getRoot(); if (isLeaf) { paintRow(g, clip, null, bounds, path, row, true, false, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintRow(g, clip, null, bounds, path, row, isExpanded, false, false); descent += getRowHeight(); y0 += halfHeight; } if (isExpanded) { int max = mod.getChildCount(curr); for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if (isRootVisible || (!isRootVisible && !curr.equals(root))) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (isExpanded) if (y0 != heightOfLine && !isLeaf && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; }
intpaintRecursive(Graphicsg,intindentation,intdescent,intdepth,JTreetree,TreeModelmod,Objectcurr){Rectangleclip=tree.getVisibleRect();if(indentation>clip.x+clip.width+rightChildIndent||descent>clip.y+clip.height+getRowHeight())returndescent;TreePathpath=newTreePath(getPathToRoot(curr,0));inthalfHeight=getRowHeight()/2;inthalfWidth=rightChildIndent/2;inty0=descent+halfHeight;intheightOfLine=descent+halfHeight;introw=getRowForPath(tree,path);booleanisRootVisible=tree.isRootVisible();booleanisExpanded=tree.isExpanded(path);booleanisLeaf=mod.isLeaf(curr);Rectanglebounds=getPathBounds(tree,path);Objectroot=mod.getRoot();if(isLeaf){paintRow(g,clip,null,bounds,path,row,true,false,true);descent+=getRowHeight();}else{if(depth>0||isRootVisible){paintRow(g,clip,null,bounds,path,row,isExpanded,false,false);descent+=getRowHeight();y0+=halfHeight;}if(isExpanded){intmax=mod.getChildCount(curr);for(inti=0;i<max;i++){intindent=indentation+rightChildIndent;if(!isRootVisible&&depth==0)indent=0;elseif(isRootVisible||(!isRootVisible&&!curr.equals(root))){g.setColor(getHashColor());heightOfLine=descent+halfHeight;paintHorizontalLine(g,(JComponent)tree,heightOfLine,indentation+halfWidth,indentation+rightChildIndent);}descent=paintRecursive(g,indent,descent,depth+1,tree,mod,mod.getChild(curr,i));}}}if(isExpanded)if(y0!=heightOfLine&&!isLeaf&&mod.getChildCount(curr)>0){g.setColor(getHashColor());paintVerticalLine(g,(JComponent)tree,indentation+halfWidth,y0,heightOfLine);}returndescent;}
7,038
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasIcons = false; Object node = path.getLastPathComponent(); if (tree.isVisible(path)) { if (!validCachedPreferredSize) updateCachedPreferredSize(); bounds.x += gap; bounds.width = preferredSize.width + bounds.x; if (editingComponent != null && editingPath != null && isEditing(tree) && node.equals(editingPath.getLastPathComponent())) { rendererPane.paintComponent(g, editingComponent.getParent(), null, bounds); } else { TreeCellRenderer dtcr = tree.getCellRenderer(); if (dtcr == null) dtcr = createDefaultCellRenderer(); Component c = dtcr.getTreeCellRendererComponent(tree, node, selected, isExpanded, isLeaf, row, false); rendererPane.paintComponent(g, c, c.getParent(), bounds); } } }
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasIcons = false; Object node = path.getLastPathComponent(); if (tree.isVisible(path)) { if (!validCachedPreferredSize) updateCachedPreferredSize(); bounds.x += gap; bounds.width = preferredSize.width + bounds.x; if (editingComponent != null && editingPath != null && isEditing(tree) && node.equals(editingPath.getLastPathComponent())) { rendererPane.paintComponent(g, editingComponent.getParent(), null, bounds); } else { TreeCellRenderer dtcr = tree.getCellRenderer(); if (dtcr == null) dtcr = createDefaultCellRenderer(); Component c = dtcr.getTreeCellRendererComponent(tree, node, selected, isExpanded, isLeaf, row, true); rendererPane.paintComponent(g, c, c.getParent(), bounds); } } }
7,039
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!rootVisible && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
7,040
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if ((tree.isVisible(path) && tree.isExpanded(path)) || treeModel.isLeaf(next)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
7,041
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
7,042
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; if (currentVisiblePath != null) tree.setVisibleRowCount(currentVisiblePath.getPathCount()); else tree.setVisibleRowCount(0); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
7,043
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) tree.addSelectionRow(0); }
void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!isRootVisible() && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if (tree.isVisible(path) && tree.isExpanded(path)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; tree.setVisibleRowCount(getRowCount(tree)); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) selectPath(tree, new TreePath(currentVisiblePath.getPathComponent(0))); }
7,044
public DefaultEditor(JSpinner spinner) { super(); setLayout(this); this.spinner = spinner; ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); ftf.addPropertyChangeListener(this); if(getComponentOrientation().isLeftToRight()) ftf.setHorizontalAlignment(JTextField.RIGHT); else ftf.setHorizontalAlignment(JTextField.LEFT); spinner.addChangeListener(this); }
public DefaultEditor(JSpinner spinner) { super(); setLayout(this); this.spinner = spinner; ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); ftf.addPropertyChangeListener(this); if(getComponentOrientation().isLeftToRight()) ftf.setHorizontalAlignment(JTextField.RIGHT); else ftf.setHorizontalAlignment(JTextField.LEFT); spinner.addChangeListener(this); }
7,045
public void setHorizontalAlignment(int newAlign) { if (align == newAlign) return; int oldAlign = align; align = newAlign; firePropertyChange("horizontalAlignment", oldAlign, newAlign); invalidate(); repaint(); }
public void setHorizontalAlignment(int newAlign) { if (align == newAlign) return; int oldAlign = align; align = newAlign; firePropertyChange("horizontalAlignment", oldAlign, newAlign); invalidate(); repaint(); }
7,046
OutputStream super_invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) _NamingContextImplBase.methods.get(method); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { case 0: // bind { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object an_object = ObjectHelper.read(in); bind(a_name, an_object); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } break; } case 1: // rebind { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object an_object = ObjectHelper.read(in); rebind(a_name, an_object); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 2: // bind_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext a_context = NamingContextHelper.read(in); bind_context(a_name, a_context); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } break; } case 3: // rebind_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext a_context = NamingContextHelper.read(in); rebind_context(a_name, a_context); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 4: // resolve { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object __result = null; __result = resolve(a_name); out = rh.createReply(); ObjectHelper.write(out, __result); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 5: // unbind { try { NameComponent[] a_name = NameHelper.read(in); unbind(a_name); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 6: // new_context { NamingContext __result = null; __result = new_context(); out = rh.createReply(); NamingContextHelper.write(out, __result); break; } case 7: // bind_new_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext __result = null; __result = bind_new_context(a_name); out = rh.createReply(); NamingContextHelper.write(out, __result); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 8: // destroy { try { destroy(); out = rh.createReply(); } catch (NotEmpty ex) { out = rh.createExceptionReply(); NotEmptyHelper.write(out, ex); } break; } case 9: // list { int amount = in.read_ulong(); BindingListHolder a_list = new BindingListHolder(); BindingIteratorHolder an_iter = new BindingIteratorHolder(); list(amount, a_list, an_iter); out = rh.createReply(); BindingListHelper.write(out, a_list.value); BindingIteratorHelper.write(out, an_iter.value); break; } default: throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); } return out; }
OutputStream super_invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) _NamingContextImplBase.methods.get(method); if (call_method == null) throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { case 0: // bind { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object an_object = ObjectHelper.read(in); bind(a_name, an_object); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } break; } case 1: // rebind { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object an_object = ObjectHelper.read(in); rebind(a_name, an_object); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 2: // bind_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext a_context = NamingContextHelper.read(in); bind_context(a_name, a_context); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } break; } case 3: // rebind_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext a_context = NamingContextHelper.read(in); rebind_context(a_name, a_context); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 4: // resolve { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object __result = null; __result = resolve(a_name); out = rh.createReply(); ObjectHelper.write(out, __result); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 5: // unbind { try { NameComponent[] a_name = NameHelper.read(in); unbind(a_name); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 6: // new_context { NamingContext __result = null; __result = new_context(); out = rh.createReply(); NamingContextHelper.write(out, __result); break; } case 7: // bind_new_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext __result = null; __result = bind_new_context(a_name); out = rh.createReply(); NamingContextHelper.write(out, __result); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 8: // destroy { try { destroy(); out = rh.createReply(); } catch (NotEmpty ex) { out = rh.createExceptionReply(); NotEmptyHelper.write(out, ex); } break; } case 9: // list { int amount = in.read_ulong(); BindingListHolder a_list = new BindingListHolder(); BindingIteratorHolder an_iter = new BindingIteratorHolder(); list(amount, a_list, an_iter); out = rh.createReply(); BindingListHelper.write(out, a_list.value); BindingIteratorHelper.write(out, an_iter.value); break; } default: throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); } return out; }
7,047