rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
piRegistry.loadPlugin(loader, "", "", false);
final PluginDescriptor descr = piRegistry.loadPlugin(loader, "", "", false); descriptors.add(descr);
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try...
return descriptors;
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try...
return screenIsAttr[pos];
return screenIsAttr[pos] == '1' ? true : false;
protected final boolean isAttributePlace(int pos) { return screenIsAttr[pos]; }
jComponent.getContentPane().setLayout(new SwingContainerLayout(this));
public SwingWindowPeer(SwingToolkit toolkit, Window window) { super(toolkit, window, new SwingWindow(window)); SwingToolkit.copyAwtProperties(window, jComponent); }
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 File ses = new File("sessions"); if(ses.exists()) { settings.setProp...
log.info("reserved triple indirect block: "+tripleIndirectBlockNr);
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ...
return entry.getCertificates();
return ((JarEntry) ((JarURLLoader) loader).jarfile.getEntry(name)) .getCertificates();
Certificate[] getCertificates() { return entry.getCertificates(); }
return (Class)AccessController.doPrivileged
result = (Class)AccessController.doPrivileged
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
return defineClass(className, classData, 0, classData.length, source);
result = defineClass(className, classData, 0, classData.length, source); super.setSigners(result, resource.getCertificates()); return result;
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
"SplitPaneDivider.border", BasicBorders.getSplitPaneDividerBorder(),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
return new DummyIcon();
return new Icon() { public int getIconHeight() { return 13; } public int getIconWidth() { return 13; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); g.drawLine(5 + x, 7...
public static Icon getMenuItemCheckIcon() { return new DummyIcon(); }
throw new BAD_OPERATION("CORBA object expected");
BAD_OPERATION bad = new BAD_OPERATION("CORBA object expected"); bad.minor = Minor.Any; throw bad;
public static org.omg.CORBA.Object extract(Any a) { try { return ((ObjectHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("CORBA object expected"); } }
File ses = new File("sessions"); if(ses.exists()) {
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 File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
settings.setProperty("emulator.settingsDirectory", System.getProperty("user.dir") + File.separator); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator);
File ses = new File("sessions");
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 File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
} }
if(ses.exists()) { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.dir") + File.separator); } else { settings.setProperty("emulator.settingsDirectory", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); } }
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 File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
getProperties(KEYMAP,KEYMAP,true,"",true);
setProperties(KEYMAP,KEYMAP, "------ Key Map key=keycode,isShiftDown,isControlDown,isAltDown,isAltGrDown --------", true);
private void loadKeyStrokes() {// FileInputStream in = null;// Properties keystrokes = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + KEYMAP);// keystrokes.load(in);// }// catch (FileNotFoundException fnfe) ...
getProperties(MACROS,MACROS,true,"",true);
setProperties(MACROS,MACROS,"------ Macros --------",true);
private void loadMacros() {// FileInputStream in = null;// Properties macs = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + MACROS);// macs.load(in);// }// catch (FileNotFoundException fnfe) {System.out.prin...
getProperties(SESSIONS,SESSIONS,true,"",true);
setProperties(SESSIONS,SESSIONS,"------ Sessions --------",true);
private void loadSessions() {// FileInputStream in = null;// Properties sessions = new Properties();//// try {// in = new FileInputStream(settingssDirectory() + SESSIONS);// sessions.load(in);//// }// catch (FileNotFoundException fnfe) {// System.out.println(" Inform...
in = new FileInputStream("tn5250jsettings.cfg");
in = new FileInputStream(settingsFile);
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
System.out.println(" Information Message: " + fnfe.getMessage() + ". The file tn5250jsettings.cfg will" + " be created for first time use."); checkLegacy(); saveSettings();
System.out.println(" Information Message: " + fnfe.getMessage() + ". The file " + settingsFile + " will" + " be created for first time use."); checkLegacy(); saveSettings();
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
System.out.println("IO Exception accessing File tn5250jsettings.cfg for the following reason : "
System.out.println("IO Exception accessing File " + settingsFile + " for the following reason : "
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
System.out.println("Security Exception for file tn5250jsettings.cfg. This file can not be " + "accessed because : " + se.getMessage());
System.out.println("Security Exception for file " + settingsFile + " This file can not be " + "accessed because : " + se.getMessage());
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
try { FileOutputStream out = new FileOutputStream("tn5250jsettings.cfg"); settings.store(out,"----------------- tn5250j Global Settings --------------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {}
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("tn5250jsettings.cfg"); settings.store(out,"----------------- tn5250j Global Settings --------------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {} }
public void drawString(String text, int x, int y) { System.out.println("drawText():" + text); if(this.font != null) ((JNodeToolkit)Toolkit.getDefaultToolkit()).getFontManager().drawText(this,text,font,x,y);
public void drawString(AttributedCharacterIterator iterator, float x, float y) {
public void drawString(String text, int x, int y) { System.out.println("drawText():" + text); if(this.font != null) ((JNodeToolkit)Toolkit.getDefaultToolkit()).getFontManager().drawText(this,text,font,x,y); }
return (cObject) objects.get(key);
return (cObject) objects.get(key); }
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); } }
}
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); } }
cObject ref = getKey(object); if (ref != null) objects.remove(ref.key);
cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); }
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } }
}
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } }
public static Constant getInstance(Object value) { return new ReferenceConstant(value);
public static Constant getInstance(int value) { return new IntConstant(value);
public static Constant getInstance(Object value) { return new ReferenceConstant(value); }
Ext2Debugger.debug("CACHE HIT, size:"+size(),4);
log.debug("CACHE HIT, size:"+size());
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
Ext2Debugger.debug("CACHE MISS",4);
log.debug("CACHE MISS");
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
throws NotImplementedException
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return false; }
return false;
return dragEnabled;
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return false; }
return "JFileChooser";
StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",approveButtonText="); if (approveButtonText != null) sb.append(approveButtonText); sb.append(",currentDirectory="); if (currentDir != null) sb.append(currentDir); sb.append(",dialogTitle="); if (dialogTitle != null) sb.append(dialogTitle); sb.append("...
protected String paramString() { return "JFileChooser"; }
throws NotImplementedException
public void setDragEnabled(boolean b) throws NotImplementedException { // FIXME: Implement }
if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b;
public void setDragEnabled(boolean b) throws NotImplementedException { // FIXME: Implement }
editor.addActionListener(l);
public void addActionListener(ActionListener l) { // FIXME: Need to implement }
editor.removeActionListener(l);
public void removeActionListener(ActionListener l) { // FIXME: Need to implement }
super(CS_sRGB, profile.getNumComponents());
super(profile.getColorSpaceType(), profile.getNumComponents()); converter = getConverter(profile);
public ICC_ColorSpace(ICC_Profile profile) { super(CS_sRGB, profile.getNumComponents()); thisProfile = profile; }
nComponents = profile.getNumComponents(); type = profile.getColorSpaceType(); makeArrays();
public ICC_ColorSpace(ICC_Profile profile) { super(CS_sRGB, profile.getNumComponents()); thisProfile = profile; }
throw new UnsupportedOperationException();
return converter.fromCIEXYZ(colorvalue);
public float[] fromCIEXYZ(float[] colorvalue) { // FIXME: Not implemented throw new UnsupportedOperationException(); }
if (rgbvalue.length < 3) throw new IllegalArgumentException (); return rgbvalue;
return converter.fromRGB(rgbvalue);
public float[] fromRGB(float[] rgbvalue) { if (rgbvalue.length < 3) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return rgbvalue; }
if (type == TYPE_XYZ && idx >= 0 && idx <= 2)
if (type == ColorSpace.TYPE_XYZ && idx >= 0 && idx <= 2)
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
else if (type == TYPE_Lab)
else if (type == ColorSpace.TYPE_Lab)
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
if (idx < 0 || idx >= numComponents)
if (idx < 0 || idx >= nComponents)
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
if (type == TYPE_Lab && (idx == 1 || idx == 2)) return -128; if (idx < 0 || idx >= numComponents)
if (type == ColorSpace.TYPE_Lab && (idx == 1 || idx == 2)) return -128f; if (idx < 0 || idx >= nComponents)
public float getMinValue(int idx) { if (type == TYPE_Lab && (idx == 1 || idx == 2)) return -128; if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 0; }
throw new UnsupportedOperationException();
return converter.toCIEXYZ(colorvalue);
public float[] toCIEXYZ(float[] colorvalue) { // FIXME: Not implemented throw new UnsupportedOperationException(); }
if (colorvalue.length < numComponents) throw new IllegalArgumentException (); return colorvalue;
return converter.toRGB(colorvalue);
public float[] toRGB(float[] colorvalue) { if (colorvalue.length < numComponents) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return colorvalue; }
throw new Error("not implemented");
return header.getColorSpace();
public int getColorSpaceType() { throw new Error("not implemented"); }
switch (profileID) { case ColorSpace.CS_sRGB: case ColorSpace.CS_LINEAR_RGB: case ColorSpace.CS_CIEXYZ: return 3; case ColorSpace.CS_GRAY: return 1; case ColorSpace.CS_PYCC: default: throw new UnsupportedOperationException("profile not implemented"); }
int[] lookup = { ColorSpace.TYPE_RGB, 3, ColorSpace.TYPE_CMY, 3, ColorSpace.TYPE_CMYK, 4, ColorSpace.TYPE_GRAY, 1, ColorSpace.TYPE_YCbCr, 3, ColorSpace.TYPE_XYZ, 3, ColorSpace.TYPE_Lab, 3, ColorSpace.TYPE_HSV, 3, ColorSpace.TYPE_2CLR, 2, ColorSpace.TYPE_Luv, 3, ColorSpace.TYPE_Yxy, 3, ColorSpace.TYPE_HLS, 3, ColorSpace...
public int getNumComponents() { switch (profileID) { case ColorSpace.CS_sRGB: case ColorSpace.CS_LINEAR_RGB: case ColorSpace.CS_CIEXYZ: return 3; case ColorSpace.CS_GRAY: return 1; case ColorSpace.CS_PYCC: // have no clue about this one default: throw new UnsupportedOperationExc...
public ArrayIndexOutOfBoundsException(String s)
public ArrayIndexOutOfBoundsException()
public ArrayIndexOutOfBoundsException(String s) { super(s); }
super(s);
public ArrayIndexOutOfBoundsException(String s) { super(s); }
throws MidiUnavailableException, IllegalArgumentException
throws MidiUnavailableException
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device provider...
throw new InvalidMidiDataException("Cannot read MidiFileFormat from stream");
throw new InvalidMidiDataException("Can't read MidiFileFormat from stream");
public static MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException { Iterator readers = ServiceFactory.lookupProviders(MidiFileReader.class); while (readers.hasNext()) { MidiFileReader sr = (MidiFileReader) readers.next(); MidiFileFormat sb = sr.getM...
throws IOException, IllegalArgumentException
throws IOException
public static int write(Sequence in, int fileType, OutputStream out) throws IOException, IllegalArgumentException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupp...
this.impl = new VMPlainSocketImpl();
public PlainSocketImpl() { }
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel)
protected NIOSocket (SocketChannelImpl channel)
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
super (impl); this.impl = impl;
super (new NIOSocketImpl(channel));
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
if (event.isPopupTrigger ())
if (SwingUtilities.isRightMouseButton(event))
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl...
if (event.isPopupTrigger ())
if (SwingUtilities.isRightMouseButton(event))
public void mousePressed (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); }
if (event.isPopupTrigger ())
if (SwingUtilities.isRightMouseButton(event))
public void mouseReleased (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); }
CurrentArray = CurrentStructure.addArray(newarray);
if (newarray != null) { String arrayId = newarray.getArrayId(); if ( arrayId != null) ArrayObj.put(arrayId, newarray); }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Array newarray = new Array(); newarray.setXMLAttributes(attrs); // set XML attributes from passed list // set current array and add this array to current structure ...
CurrentArray = newarray;
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Array newarray = new Array(); newarray.setXMLAttributes(attrs); // set XML attributes from passed list // set current array and add this array to current structure ...
addDataToCurrentArray(TaggedLocatorObj, thisString, CurrentDataFormat);
addDataToCurrentArray(TaggedLocatorObj, thisString, CurrentDataFormat, IntRadix[CurrentDataFormatIndex]);
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); String thisString = new String(buf,offset,len); if ( readObj instanceof TaggedXMLDataIOStyle ) { // dont add this data unless it ha...
addDataToCurrentArray(myLocator, thisData, CurrentDataFormat);
addDataToCurrentArray(myLocator, thisData, CurrentDataFormat, IntRadix[CurrentDataFormatIndex]);
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ...
int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis);
int currentFastAxisCoordinate = myLocator.getAxisIndex(FastestAxis);
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ...
NrofDataFormats = DataFormatList.length; IntRadix = new int [NrofDataFormats]; for (int i=0; i < NrofDataFormats; i++) { if (DataFormatList[i] instanceof IntegerDataFormat) { String type = ((IntegerDataFormat) DataFormatList[i]).getType(); if (type.equals(Constants.INTEGER_TYPE_DECIMAL)) IntRadix[i] = 10; else if (t...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // we only need to do these things for the first time we enter // a data node if (DataNodeLevel == 0) { // A little 'pre-handling' as href is a specialattribute // that will hold an (Href)...
int currentFastAxisCoordinate = TaggedLocatorObj.getAxisLocation(FastestAxis);
int currentFastAxisCoordinate = TaggedLocatorObj.getAxisIndex(FastestAxis);
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisLocation(FastestAxis);...
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) {
private void addByteDataToCurrentArray (byte[] data, int amount, String endian) {
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amo...
if (nrofDataFormat > 1) if (CurrentDataFormatIndex == (nrofDataFormat - 1))
if (NrofDataFormats > 1) if (CurrentDataFormatIndex == (NrofDataFormats - 1))
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amo...
DataFormat CurrentDataFormat
DataFormat CurrentDataFormat, int intRadix
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b...
Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue());
if (intRadix == 16) thisString = thisString.substring(2); int thisInt = Integer.parseInt(thisString, intRadix); CurrentArray.setData(dataLocator, thisInt);
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b...
if(endianStyle.equals("BigEndian"))
if(endianStyle.equals(Constants.BIG_ENDIAN))
private Integer convert2bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 8 | (bb[sbyte+1]&0xFF); else i = (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); return new Integer(i); }
if(endianStyle.equals("BigEndian"))
if(endianStyle.equals(Constants.BIG_ENDIAN))
private Float convert4bytesToFloat (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0x...
if(endianStyle.equals("BigEndian"))
if(endianStyle.equals(Constants.BIG_ENDIAN))
private Integer convert4bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2...
if(endianStyle.equals("BigEndian"))
if(endianStyle.equals(Constants.BIG_ENDIAN))
private Double convert8bytesToDouble (String endianStyle, byte[] bb, int sbyte) { int i1; int i2; if(endianStyle.equals("BigEndian")) { i1 = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); i2 = (bb[sbyte+4]&0xFF) << 24 |...
if(endianStyle.equals("BigEndian"))
if(endianStyle.equals(Constants.BIG_ENDIAN))
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { ...
endElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayEndElementHandlerFunc());
private void initEndHandlerHashtable () { endElementHandlerHashtable.put(XDFNodeName.DATA, new dataEndElementHandlerFunc()); endElementHandlerHashtable.put(XDFNodeName.FIELDGROUP, new fieldGroupEndElementHandlerFunc()); endElementHandlerHashtable.put(XDFNodeName.NOTES, new notesEndElementHandlerFu...
int nrofDataFormat = DataFormatList.length;
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=...
addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat);
addByteDataToCurrentArray(data, bytes_read, endian );
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=...
for (int i = start - 1; i < end; i++)
for (int i = start; i < end; i++)
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
{ if (index < (list.size() - 1)) { return list.get(index + 1); } else { return null; }
{ if (index < (list.size() - 1)) return list.get(index + 1); else return null;
public Object getNextValue() { /* Check for a next value */ if (index < (list.size() - 1)) { /* Return the element at the next index */ return list.get(index + 1); } else { /* Return null as this is the end of the list */ return null; } }
{ if (index > 0) { return list.get(index - 1); }
{ if (index > 0) return list.get(index - 1);
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
{ return null; }
return null;
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
{ if (list == null || list.size() == 0) { throw new IllegalArgumentException("The supplied list was invalid."); } if (this.list != list) { this.list = list; fireStateChanged(); } index = 0; }
{ if (list == null || list.size() == 0) throw new IllegalArgumentException("The supplied list was invalid."); if (this.list != list) { this.list = list; fireStateChanged(); } index = 0; }
public void setList(List list) { /* Check for null or zero size list */ if (list == null || list.size() == 0) { throw new IllegalArgumentException("The supplied list was invalid."); } /* Check for a change of referenced list */ if (this.list != list) { /* Store the new list */ this.list = list; /...
valueIndex = list.indexOf(value); if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } index = valueIndex; fireStateChanged(); }
valueIndex = list.indexOf(value); if (valueIndex == -1) throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); index = valueIndex; fireStateChanged(); }
public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the ind...
if (!(kpgSpi instanceof Cloneable)) throw new CloneNotSupportedException();
public Object clone() throws CloneNotSupportedException { if (!(kpgSpi instanceof Cloneable)) throw new CloneNotSupportedException(); KeyPairGenerator result = new DummyKeyPairGenerator ((KeyPairGeneratorSpi) kpgSpi.clone(), this.getAlgorithm()); result.provider = this.getProvider(); return resu...
JPanel kp = new JPanel();
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetter kg = new KeyGetter(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (String)functions.g...
public PluginDescriptorModel(PluginJar jarFile, XMLElement e) throws PluginException { this.jarFile = jarFile; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAttribute(e, "class", ...
public PluginDescriptorModel(XMLElement e) throws PluginException { this(null, e);
public PluginDescriptorModel(PluginJar jarFile, XMLElement e) throws PluginException { this.jarFile = jarFile; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAttribute(e, "c...
writeOut(outputstream, " "+ item.get("name") + "=\"" + item.get("value") + "\"");
writeOut(outputstream, " "+ item.get("name") + "=\""); writeOutAttribute(outputstream, (String)item.get("value")); writeOut(outputstream, "\"");
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ...
setRequestFocusEnabled(true);
public JComponent() { super(); super.setLayout(new FlowLayout()); setDropTarget(new DropTarget()); defaultLocale = Locale.getDefault(); debugGraphicsOptions = DebugGraphics.NONE_OPTION; }
e.consume();
protected void processMouseMotionEvent(MouseEvent e) { if (mouseMotionListener == null) return; switch (e.id) { case MouseEvent.MOUSE_DRAGGED: mouseMotionListener.mouseDragged(e); break; case MouseEvent.MOUSE_MOVED: mouseMotionListener.mouseMoved(e); break; } }
throw new NO_IMPLEMENT();
if (orb instanceof OrbFunctional) { ((OrbFunctional) orb).ensureRunning(); } gnuRequest g = new gnuRequest(); g.setORB(orb); g.setOperation(operation); g.setIor(ior); g.m_target = target; g.ctx(context); g.set_args(parameters); if (returns != null) g.set_result(returns); return g;
public Request create_request(org.omg.CORBA.Object target, Context context, String operation, NVList parameters, NamedValue returns ) { throw new NO_IMPLEMENT(); }
Component parent = component.getParent();
public void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w <= 0 || h <= 0 || !component.isShowing()) return; component.computeVisibleRect(rectCache); SwingUtilities.computeIntersection(x, y, w, h, rectCache); if (! rectCache.isEmpty(...
if (! dirtyComponents.containsKey(component)) return false; return component.isCompletelyDirty;
boolean retVal = false; if (dirtyComponents.containsKey(component)) { Rectangle dirtyRegion = (Rectangle) dirtyComponents.get(component); retVal = dirtyRegion.equals(SwingUtilities.getLocalBounds(component)); } return retVal;
public boolean isCompletelyDirty(JComponent component) { if (! dirtyComponents.containsKey(component)) return false; return component.isCompletelyDirty; }
component.isCompletelyDirty = false;
public void markCompletelyClean(JComponent component) { synchronized (dirtyComponents) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; }
addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true;
addDirtyRegion(component, 0, 0, r.width, r.height);
public void markCompletelyDirty(JComponent component) { Rectangle r = component.getBounds(); addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true; }
ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; repaintOrder.addAll(dirtyComponentsWork.keySet());
HashSet repaintRoots = new HashSet(); Set components = dirtyComponentsWork.keySet(); for (Iterator i = components.iterator(); i.hasNext();) { JComponent dirty = (JComponent) i.next(); compileRepaintRoots(dirtyComponentsWork, dirty, repaintRoots); }
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...
if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator);
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...
for (Iterator i = repaintOrder.iterator(); i.hasNext();)
for (Iterator i = repaintRoots.iterator(); i.hasNext();)
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...