rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, length);
final Extent size = Extent.fromIntZeroExtend(length); Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, size);
public void getBytes(int memPtr, byte[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst....
Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, length * 2);
final Extent size = Extent.fromIntZeroExtend(length * 2); Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, size);
public void getChars(int memPtr, char[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst....
Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, length * 8);
final Extent size = Extent.fromIntZeroExtend(length * 8); Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, size);
public void getDoubles(int memPtr, double[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > ...
Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, length * 4);
final Extent size = Extent.fromIntZeroExtend(length); Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, size);
public void getInts(int memPtr, int[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst.le...
Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, length * 8);
final Extent size = Extent.fromIntZeroExtend(length * 8); Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, size);
public void getLongs(int memPtr, long[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst....
Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, length * 2);
final Extent size = Extent.fromIntZeroExtend(length * 2); Unsafe.copy(start.add(Offset.fromIntZeroExtend(memPtr)), dstPtr, size);
public void getShorts(int memPtr, short[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > ds...
Unsafe.copy(srcPtr, start.add(dstPtr), length);
final Extent size = Extent.fromIntZeroExtend(length); Unsafe.copy(srcPtr, start.add(dstPtr), size);
public void setBytes(byte[] src, int srcOfs, int dstPtr, int length) { if (srcOfs < 0) { throw new IndexOutOfBoundsException("srcOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (srcOfs + length > src.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst....
Unsafe.copy(srcPtr, start.add(dstPtr), length * 2);
final Extent size = Extent.fromIntZeroExtend(length * 2); Unsafe.copy(srcPtr, start.add(dstPtr), size);
public void setChars(char[] src, int srcOfs, int dstPtr, int length) { if (srcOfs < 0) { throw new IndexOutOfBoundsException("srcOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (srcOfs + length > src.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst....
Unsafe.copy(srcPtr, start.add(dstPtr), length * 8);
final Extent size = Extent.fromIntZeroExtend(length * 8); Unsafe.copy(srcPtr, start.add(dstPtr), size);
public void setDoubles(double[] src, int srcOfs, int dstPtr, int length) { if (srcOfs < 0) { throw new IndexOutOfBoundsException("srcOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (srcOfs + length > src.length) { throw new IndexOutOfBoundsException("dstOfs + length > ...
Unsafe.copy(srcPtr, start.add(dstPtr), length * 4);
final Extent size = Extent.fromIntZeroExtend(length * 4); Unsafe.copy(srcPtr, start.add(dstPtr), size);
public void setFloats(float[] src, int srcOfs, int dstPtr, int length) { if (srcOfs < 0) { throw new IndexOutOfBoundsException("srcOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (srcOfs + length > src.length) { throw new IndexOutOfBoundsException("dstOfs + length > ds...
Unsafe.copy(srcPtr, start.add(dstPtr), length * 4);
final Extent size = Extent.fromIntZeroExtend(length * 4); Unsafe.copy(srcPtr, start.add(dstPtr), size);
public void setInts(int[] src, int srcOfs, int dstPtr, int length) { if (srcOfs < 0) { throw new IndexOutOfBoundsException("srcOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (srcOfs + length > src.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst.le...
Unsafe.copy(srcPtr, start.add(dstPtr), length * 8);
final Extent size = Extent.fromIntZeroExtend(length * 8); Unsafe.copy(srcPtr, start.add(dstPtr), size);
public void setLongs(long[] src, int srcOfs, int dstPtr, int length) { if (srcOfs < 0) { throw new IndexOutOfBoundsException("srcOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (srcOfs + length > src.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst....
Unsafe.copy(srcPtr, start.add(dstPtr), length * 2);
final Extent size = Extent.fromIntZeroExtend(length * 2); Unsafe.copy(srcPtr, start.add(dstPtr), size);
public void setShorts(short[] src, int srcOfs, int dstPtr, int length) { if (srcOfs < 0) { throw new IndexOutOfBoundsException("srcOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (srcOfs + length > src.length) { throw new IndexOutOfBoundsException("dstOfs + length > ds...
l.pointerStateChanged(event);
try { l.pointerStateChanged(event); } catch (Throwable ex) { log.error("Exception in PointerListener", ex); }
public synchronized void fireEvent(PointerEvent event) { for (Iterator i = listeners.iterator(); i.hasNext();) { PointerListener l = (PointerListener) i.next(); l.pointerStateChanged(event); if (event.isConsumed()) { break; } } }
public static Serializable read(InputStream output)
public static Serializable read(InputStream input)
public static Serializable read(InputStream output) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { ObjectInputStream oin = new uncObjectInputStream(output); return (Serializabl...
try { ObjectInputStream oin = new uncObjectInputStream(output); return (Serializable) oin.readObject(); } catch (Exception ex) { throw new MARSHAL(ex + ":" + ex.getMessage()); }
return Vio.read(input);
public static Serializable read(InputStream output) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { ObjectInputStream oin = new uncObjectInputStream(output); return (Serializabl...
public static void write(OutputStream input, Serializable value)
public static void write(OutputStream output, Serializable value)
public static void write(OutputStream input, Serializable value) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { ObjectOutputStream oout = new uncObjectOutputStream(input); oout...
try { ObjectOutputStream oout = new uncObjectOutputStream(input); oout.writeObject(value); oout.flush(); } catch (IOException ex) { throw new MARSHAL(ex + ":" + ex.getMessage()); }
Vio.write(output, value);
public static void write(OutputStream input, Serializable value) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { ObjectOutputStream oout = new uncObjectOutputStream(input); oout...
return insets();
Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal;
public Insets getInsets() { return insets(); }
if(comp == null) comp = awtComponent;
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer) { ev.translatePoint(comp.getX(),...
disabledTextColor = UIManager.getColor("RadioButton.disabledText"); focusColor = UIManager.getColor("RadioButton.focus"); selectColor = UIManager.getColor("RadioButton.select");
String prefix = getPropertyPrefix(); disabledTextColor = UIManager.getColor(prefix + "disabledText"); focusColor = UIManager.getColor(prefix + "focus"); selectColor = UIManager.getColor(prefix + "select");
public void installDefaults(AbstractButton b) { super.installDefaults(b); disabledTextColor = UIManager.getColor("RadioButton.disabledText"); focusColor = UIManager.getColor("RadioButton.focus"); selectColor = UIManager.getColor("RadioButton.select"); }
paintFocus(g, b, vr, tr, ir);
paintFocus(g, tr, null);
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte...
if (path == null) throw new IllegalArgumentException("Null 'path' not permitted.");
public TreePath(Object[] path) { // Create Path this.path = new Object[path.length]; System.arraycopy(path, 0, this.path, 0, path.length); }
if (treepath[index] != path[index])
if (!treepath[index].equals(path[index]))
public boolean equals(Object object) { // Variables Object[] treepath; int index; // Check for TreePath if (object instanceof TreePath) { // Get Path Elements treepath = ((TreePath) object).getPath(); // Check length if (treepath.length != path.length) return false; // Check Elements ...
return path;
return (Object[]) path.clone();
public Object[] getPath() { return path; }
if (position < 0 || position >= getPathCount()) throw new IllegalArgumentException("Invalid position: " + position);
public Object getPathComponent(int position) { return path[position]; }
Object[] treepath; int index; int index2; treepath = path.getPath(); index = 0; index2 = 0; while (treepath[index] != this.path[index2]) index++; while (treepath[index] == this.path[index2])
if (path == null) return false; int count = getPathCount(); if (path.getPathCount() < count) return false; for (int i = 0; i < count; i++)
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) index++; // Verify Paths while (treepath[index] == this...
index++; index2++; } if (index2 != this.path.length)
if (!this.path[i].equals(path.getPathComponent(i)))
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) index++; // Verify Paths while (treepath[index] == this...
}
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) index++; // Verify Paths while (treepath[index] == this...
throw new Error ("not implemented");
if (this.getName().equals("background")) return BACKGROUND; if (this.getName().equals("bidi_embedding")) return BIDI_EMBEDDING; if (this.getName().equals("char_replacement")) return CHAR_REPLACEMENT; if (this.getName().equals("family")) return FAMILY; if (this.getName().equals("font")) return FONT; if (this.getNam...
protected Object readResolve () throws InvalidObjectException { throw new Error ("not implemented"); }
Attribute(String name) {
protected Attribute (String name) {
Attribute(String name){ this.name = name;}
readResolve() throws InvalidObjectException { if (this.equals(READING)) return(READING);
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING;
readResolve() throws InvalidObjectException{ if (this.equals(READING)) return(READING); if (this.equals(LANGUAGE)) return(LANGUAGE); if (this.equals(INPUT_METHOD_SEGMENT)) return(INPUT_METHOD_SEGMENT); throw new InvalidObjectException("Can't resolve Attribute: " + getName());}
if (this.equals(LANGUAGE)) return(LANGUAGE);
if (this.equals (LANGUAGE)) return LANGUAGE;
readResolve() throws InvalidObjectException{ if (this.equals(READING)) return(READING); if (this.equals(LANGUAGE)) return(LANGUAGE); if (this.equals(INPUT_METHOD_SEGMENT)) return(INPUT_METHOD_SEGMENT); throw new InvalidObjectException("Can't resolve Attribute: " + getName());}
if (this.equals(INPUT_METHOD_SEGMENT)) return(INPUT_METHOD_SEGMENT);
if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT;
readResolve() throws InvalidObjectException{ if (this.equals(READING)) return(READING); if (this.equals(LANGUAGE)) return(LANGUAGE); if (this.equals(INPUT_METHOD_SEGMENT)) return(INPUT_METHOD_SEGMENT); throw new InvalidObjectException("Can't resolve Attribute: " + getName());}
"Not existent FisleSystemType"); }
"FileSystemType " + name + " doesn't exist"); }
public FileSystemType getFileSystemTypeForNameSystemTypes(String name) throws FileSystemException { FileSystemType result = fsTypeManager.getSystemType(name); if (result == null) { throw new FileSystemException( "Not existent FisleSystemType"); } return result; }
this.cancelledKeys = new HashSet();
protected AbstractSelector (SelectorProvider provider) { this.provider = provider; }
return null;
if (! isOpen()) throw new ClosedSelectorException(); return cancelledKeys;
protected final Set cancelledKeys() { return null; }
public final void close () throws IOException
public final synchronized void close() throws IOException
public final void close () throws IOException { if (closed) return; closed = true; implCloseSelector (); }
implCloseSelector ();
public final void close () throws IOException { if (closed) return; closed = true; implCloseSelector (); }
return interestOps;
synchronized (impl.selectedKeys()) { return interestOps;
public int interestOps () { if (!isValid()) throw new CancelledKeyException(); return interestOps; }
}
public int interestOps () { if (!isValid()) throw new CancelledKeyException(); return interestOps; }
public int readyOps ()
public synchronized int readyOps ()
public int readyOps () { if (!isValid()) throw new CancelledKeyException(); return readyOps; }
WCharSeqHolder h = new WCharSeqHolder(); h._read(input); return h.value;
char[] value = new char[ input.read_long() ]; input.read_wchar_array(value, 0, value.length); return value;
public static char[] read(InputStream input) { WCharSeqHolder h = new WCharSeqHolder(); h._read(input); return h.value; }
WCharSeqHolder h = new WCharSeqHolder(value); h._write(output);
output.write_long(value.length); output.write_wchar_array(value, 0, value.length);
public static void write(OutputStream output, char[] value) { WCharSeqHolder h = new WCharSeqHolder(value); h._write(output); }
public WCharSeqHolder(char[] initial_value)
public WCharSeqHolder()
public WCharSeqHolder(char[] initial_value) { value = initial_value; typecode.setLength(value.length); }
value = initial_value; typecode.setLength(value.length);
public WCharSeqHolder(char[] initial_value) { value = initial_value; typecode.setLength(value.length); }
WhenNode(TemplateNode children, TemplateNode next, Expr test)
WhenNode(Expr test)
WhenNode(TemplateNode children, TemplateNode next, Expr test) { super(children, next); this.test = test; }
super(children, next);
WhenNode(TemplateNode children, TemplateNode next, Expr test) { super(children, next); this.test = test; }
return new WhenNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), test.clone(stylesheet));
TemplateNode ret = new WhenNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
TemplateNode clone(Stylesheet stylesheet) { return new WhenNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), test.clone(stylesheet)); }
this.extendedEventTypes = extendedEventTypes;
public XMLParser(InputStream in, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean ba...
public String getAttributeName(int index)
public QName getAttributeName(int index)
public String getAttributeName(int index) { Attribute a = (Attribute) attrs.get(index); return a.localName; }
return a.localName;
String namespaceURI = getNamespaceURI(a.prefix); return new QName(namespaceURI, a.localName, a.prefix);
public String getAttributeName(int index) { Attribute a = (Attribute) attrs.get(index); return a.localName; }
System.out.println("\tattribute "+reader.getAttributeQName(i)+
System.out.println("\tattribute "+reader.getAttributeName(i)+
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
case XMLStreamConstants.START_ENTITY:
case START_ENTITY:
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
case XMLStreamConstants.END_ENTITY:
case END_ENTITY:
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
" of "+l.getLocationURI());
" of "+l.getSystemId());
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
event = XMLStreamConstants.START_ENTITY; return event;
event = START_ENTITY; return extendedEventTypes ? event : next();
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware && !namespaces.isEmpty()) namespaces.removeFirst(); // Pop b...
event = XMLStreamConstants.END_ENTITY; return event;
event = END_ENTITY; return extendedEventTypes ? event : next();
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware && !namespaces.isEmpty()) namespaces.removeFirst(); // Pop b...
String getAttributeName(int index);
QName getAttributeName(int index);
String getAttributeName(int index);
String getAttributeValue(int index);
String getAttributeValue(String namespaceURI, String localName);
String getAttributeValue(int index);
public DefaultComboBoxModel(Object[] items) {
public DefaultComboBoxModel() {
public DefaultComboBoxModel(Object[] items) { // TODO } // DefaultComboBoxModel()
public Object getItem();
Object getItem();
public Object getItem();
public void addElement(Object object);
void addElement(Object object);
public void addElement(Object object);
public Object getSelectedItem();
Object getSelectedItem();
public Object getSelectedItem();
public void insertElementAt(Object object, int index);
void insertElementAt(Object object, int index);
public void insertElementAt(Object object, int index);
public void removeElementAt(int index);
void removeElementAt(int index);
public void removeElementAt(int index);
public void removeElement(Object object);
void removeElement(Object object);
public void removeElement(Object object);
public void removeActionListener(ActionListener listener);
void removeActionListener(ActionListener listener);
public void removeActionListener(ActionListener listener);
public void addActionListener(ActionListener listener);
void addActionListener(ActionListener listener);
public void addActionListener(ActionListener listener);
public void setSelectedItem(Object item);
void setSelectedItem(Object item);
public void setSelectedItem(Object item);
int numSymbols = freqs.length;
public void buildCodes() { int numSymbols = freqs.length; int[] nextCode = new int[maxLength]; int code = 0; codes = new short[freqs.length]; if (DeflaterConstants.DEBUGGING) System.err.println("buildCodes: "+freqs.length); for (int bits = 0; bits < maxLength; bits++) { nextCode[bit...
Class c = null; try { c = Thread.currentThread().getContextClassLoader().loadClass( args[i]); } catch (ClassNotFoundException e) { System.err.println(args[i] + " class not found."); System.exit(1); }
Class c = compiler.loadClass(args[i]);
public static void main(String[] args) { // Check for the -iiop or -giop keys. If one of these keys is present, // forward all call to GRMIC. for (int i = 0; i < args.length; i++) { if (args[i].equals("-giop") || args[i].equals("-iiop")) { GRMIC.main(args); return;...
Class c = null; try { c = Thread.currentThread().getContextClassLoader().loadClass( args[i]); } catch (ClassNotFoundException e) { System.err.println(args[i] + " class not found."); System.exit(1); }
Class c = compiler.loadClass(args[i]);
public static void main(String[] args) { boolean noWrite = false; boolean verbose = false; String HelpPath = "giop/GRMIC.txt"; HelpPrinter.checkHelpKey(args, HelpPath); File output = new File("."); if (args.length == 0) { HelpPrinter.printHelpAndExit(HelpPath); } else { ...
InputStream in = HelpPrinter.class.getResourceAsStream(helpResourcePath); BufferedReader r = new BufferedReader(new InputStreamReader(in)); try { String s; while ((s = r.readLine()) != null) { System.out.println(s); } r.close(); } catch (IOException e) { System.err.print("Resource loading is broken:"); e.printStackTra...
printHelp(helpResourcePath);
public static void printHelpAndExit(String helpResourcePath) { InputStream in = HelpPrinter.class.getResourceAsStream(helpResourcePath); BufferedReader r = new BufferedReader(new InputStreamReader(in)); try { String s; while ((s = r.readLine()) != null) { System.out.pr...
int xOff = 0; for (int y = thumbBounds.y + 4; y < (thumbBounds.y + thumbBounds.height - 4); y++) { if ((y % 2) == 0) g.setColor(thumbHighlightColor); else g.setColor(thumbDarkShadowColor); for (int x = thumbBounds.x + 3 + (xOff); x < (thumbBounds.x + thumbBounds.width - 3); x = x + 4) { g.drawLine(x, y, x, y); } xO...
MetalUtils.fillMetalPattern(g, thumbBounds.x + 3, thumbBounds.y + 3, thumbBounds.width - 6, thumbBounds.height - 6, thumbHighlightColor, thumbDarkShadowColor);
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec...
Color saved = g.getColor(); Point x; Point y; Point z; Polygon lines; g.setColor(thumbHighlightColor); x = new Point(thumbBounds.x + 1, thumbBounds.y + 1); y = new Point(x); y.translate(thumbBounds.width - 2, 0); z = new Point(x); z.translate(0, thumbBounds.height - 2); lines = new Polygon(new int[] { x.x, y.x, z.x }...
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { Color saved = g.getColor(); Point x; Point y; Point z; Polygon lines; g.setColor(thumbHighlightColor); x = new Point(thumbBounds.x + 1, thumbBounds.y + 1); y = new Point(x); y.translate(thumbBounds.width - 2, 0); ...
g.setColor(saved);
BasicGraphicsUtils.drawBezel(g, thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height, false, false, thumbDarkShadowColor, thumbDarkShadowColor, thumbHighlightColor, thumbHighlightColor);
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { Color saved = g.getColor(); Point x; Point y; Point z; Polygon lines; g.setColor(thumbHighlightColor); x = new Point(thumbBounds.x + 1, thumbBounds.y + 1); y = new Point(x); y.translate(thumbBounds.width - 2, 0); ...
scrollPane.setVerticalScrollBarPolicy (JScrollPane.VERTICAL_SCROLLBAR_NEVER);
protected JPanel createList(JFileChooser fc) { if (fileList == null) { fileListPanel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); scrollPane = new JScrollPane(fileList); scrollPane.setVerticalScrollBarPolicy (JScrollPane.VE...
protected void fireContentsChanged(Object source, int startIndex, int endIndex) {
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index;
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index;
event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex);
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex);
listeners = getListDataListeners ();
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
listeners = listenerList.getListeners(ListDataListener.class); for (index = 0; index < listeners.length; index++) { listener = (ListDataListener) listeners[index]; listener.contentsChanged(event); } }
for (index = 0; index < listeners.length; index++) { listener = (ListDataListener) listeners[index]; listener.contentsChanged(event); } }
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic");
cancelButtonMnemonic = new Integer((String) UIManager.get("FileChooser.cancelButtonMnemonic")).intValue();
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
= defaults.getInt("FileChooser.directoryOpenButtonMnemonic");
= new Integer((String) UIManager.get("FileChooser.directoryOpenButtonMnemonic")).intValue();
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
helpButtonMnemonic = defaults.getInt("FileChooser.helpButtonMnemonic");
helpButtonMnemonic = new Integer((String) UIManager.get("FileChooser.helpButtonMnemonic")).intValue();
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
openButtonMnemonic = defaults.getInt("FileChooser.openButtonMnemonic");
openButtonMnemonic = new Integer((String) UIManager.get("FileChooser.openButtonMnemonic")).intValue();
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
saveButtonMnemonic = UIManager.getInt("FileChooser.saveButtonMnemonic");
saveButtonMnemonic = new Integer((String) UIManager.get("FileChooser.saveButtonMnemonic")).intValue();
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
updateButtonMnemonic = defaults.getInt("FileChooser.updateButtonMnemonic");
updateButtonMnemonic = new Integer((String) UIManager.get("FileChooser.updateButtonMnemonic")).intValue();
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
public void addRow(Object[] rowData) { addRow(convertToVector(rowData));
public void addRow(Vector rowData) {
public void addRow(Object[] rowData) { addRow(convertToVector(rowData)); } // addRow()
throw new IllegalArgumentException("null attribute");
throw new NullPointerException("null attribute");
public void addAttributes(Map attributes, int begin_index, int end_index) { if (attributes == null) throw new IllegalArgumentException("null attribute"); if ((begin_index < 0) || (end_index > sci.getEndIndex()) || (end_index < begin_index)) throw new IllegalArgumentException("bad range"); AttributeRang...
(end_index < begin_index))
(end_index <= begin_index))
public void addAttributes(Map attributes, int begin_index, int end_index) { if (attributes == null) throw new IllegalArgumentException("null attribute"); if ((begin_index < 0) || (end_index > sci.getEndIndex()) || (end_index < begin_index)) throw new IllegalArgumentException("bad range"); AttributeRang...
public ThreadGroup(String name) { this(Thread.currentThread().getThreadGroup(), name);
private ThreadGroup() { this.parent = null; this.name = "Root Thread Group"; this.maxPriority = java.lang.Thread.MAX_PRIORITY; this.daemon = false; this.process = VmProcess.getRootProcess(this);
public ThreadGroup(String name) { this(Thread.currentThread().getThreadGroup(), name); }
ApplyTemplatesNode(TemplateNode children, TemplateNode next, Expr select, QName mode,
ApplyTemplatesNode(Expr select, QName mode,
ApplyTemplatesNode(TemplateNode children, TemplateNode next, Expr select, QName mode, List sortKeys, List withParams, boolean isDefault) { super(children, next); this.select = select; this.mode = mode; this.sortKeys = sortKeys; this.withParams = withParams; t...
super(children, next);
ApplyTemplatesNode(TemplateNode children, TemplateNode next, Expr select, QName mode, List sortKeys, List withParams, boolean isDefault) { super(children, next); this.select = select; this.mode = mode; this.sortKeys = sortKeys; this.withParams = withParams; t...
return new ApplyTemplatesNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), select.clone(stylesheet), mode, sortKeys2, withParams2, isDefault);
TemplateNode ret = new ApplyTemplatesNode(select.clone(stylesheet), mode, sortKeys2, withParams2, isDefault); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ...
if (stylesheet.debug) { System.err.println("Applying " + t); }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType)
public DirectColorModel(int pixelBits, int rmask, int gmask, int bmask)
public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) { super(cspace, pixelBits, rmask, gmask, bmask, amask, isAlphaPremultiplied, ((amask == 0) ? Transparency.OPAQUE : Transparency.TRANSLUCENT), tran...
super(cspace, pixelBits, rmask, gmask, bmask, amask, isAlphaPremultiplied, ((amask == 0) ? Transparency.OPAQUE : Transparency.TRANSLUCENT), transferType);
this(ColorSpace.getInstance(ColorSpace.CS_sRGB), pixelBits, rmask, gmask, bmask, 0, false, Buffers.smallestAppropriateTransferType(pixelBits) );
public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) { super(cspace, pixelBits, rmask, gmask, bmask, amask, isAlphaPremultiplied, ((amask == 0) ? Transparency.OPAQUE : Transparency.TRANSLUCENT), tran...
ColorModel model, int[] pixels, int offset, int scansize);
ColorModel model, byte[] pixels, int offset, int scansize);
void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int offset, int scansize);
LiteralNode(TemplateNode children, TemplateNode next, Node source)
LiteralNode(Node source)
LiteralNode(TemplateNode children, TemplateNode next, Node source) { super(children, next); this.source = source; if (source.getNodeType() == Node.ELEMENT_NODE) { NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, ...