rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
cdrBufInput encapsulation = profile.read_encapsulation();
BufferredCdrInput encapsulation = profile.read_encapsulation();
public void read(cdrInput profile) { cdrBufInput encapsulation = profile.read_encapsulation(); narrow.read(encapsulation); wide.read(encapsulation); }
public void write(cdrOutput profile)
public void write(AbstractCdrOutput profile)
public void write(cdrOutput profile) { cdrOutput encapsulation = profile.createEncapsulation(); narrow.write(encapsulation); wide.write(encapsulation); try { encapsulation.close(); } catch (IOException ex) { throw new InternalError(); } }
cdrOutput encapsulation = profile.createEncapsulation();
AbstractCdrOutput encapsulation = profile.createEncapsulation();
public void write(cdrOutput profile) { cdrOutput encapsulation = profile.createEncapsulation(); narrow.write(encapsulation); wide.write(encapsulation); try { encapsulation.close(); } catch (IOException ex) { throw new InternalError(); } }
public void write(cdrOutput out)
public void write(AbstractCdrOutput out)
public void write(cdrOutput out) { try { // Need to write the Internet profile into the separate // stream as we must know the size in advance. cdrOutput b = out.createEncapsulation(); version.write(b); b.write_string(host); b.write_ushort((short)...
cdrOutput b = out.createEncapsulation();
AbstractCdrOutput b = out.createEncapsulation();
public void write(cdrOutput out) { try { // Need to write the Internet profile into the separate // stream as we must know the size in advance. cdrOutput b = out.createEncapsulation(); version.write(b); b.write_string(host); b.write_ushort((short)...
public void _read(cdrInput c)
public void _read(AbstractCdrInput c)
public void _read(cdrInput c) throws IOException, BAD_PARAM { int endian; endian = c.read_long(); if (endian != 0) { Big_Endian = false; c.setBigEndian(false); } _read_no_endian(c); }
public void _read_no_endian(cdrInput c)
public void _read_no_endian(AbstractCdrInput c)
public void _read_no_endian(cdrInput c) throws IOException, BAD_PARAM { Id = c.read_string(); int n_profiles = c.read_long(); if (n_profiles == 0) { Id = null; Internet = null; return; } for (int i = 0; i < n_profiles; i++) { int tag = c.re...
cdrBufInput profile = c.read_encapsulation();
BufferredCdrInput profile = c.read_encapsulation();
public void _read_no_endian(cdrInput c) throws IOException, BAD_PARAM { Id = c.read_string(); int n_profiles = c.read_long(); if (n_profiles == 0) { Id = null; Internet = null; return; } for (int i = 0; i < n_profiles; i++) { int tag = c.re...
public void _write(cdrOutput out)
public void _write(AbstractCdrOutput out)
public void _write(cdrOutput out) { // Always use Big Endian. out.write(0); _write_no_endian(out); }
public void _write_no_endian(cdrOutput out)
public void _write_no_endian(AbstractCdrOutput out)
public void _write_no_endian(cdrOutput out) { // Write repository id. out.write_string(Id); out.write_long(1 + profiles.size()); // Write the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); Internet.write(out); // Write other profiles. TaggedProfile tp; for...
cdrBufInput in = new cdrBufInput(profile.profile_data);
BufferredCdrInput in = new BufferredCdrInput(profile.profile_data);
private static void addComponentTo(TaggedProfile profile, TaggedComponent component) { if (profile.tag == TAG_MULTIPLE_COMPONENTS.value) { TaggedComponent[] present; if (profile.profile_data.length > 0) { cdrBufInput in = new cdrBufInput(p...
cdrBufOutput out = new cdrBufOutput(profile.profile_data.length
BufferedCdrOutput out = new BufferedCdrOutput(profile.profile_data.length
private static void addComponentTo(TaggedProfile profile, TaggedComponent component) { if (profile.tag == TAG_MULTIPLE_COMPONENTS.value) { TaggedComponent[] present; if (profile.profile_data.length > 0) { cdrBufInput in = new cdrBufInput(p...
cdrBufInput cdr = new cdrBufInput(buf.toByteArray());
BufferredCdrInput cdr = new BufferredCdrInput(buf.toByteArray());
public static IOR parse(String stringified_reference) throws BAD_PARAM { try { if (!stringified_reference.startsWith("IOR:")) throw new BAD_PARAM("The string refernce must start with IOR:", FAILED, CompletionStatus.COMPLETED_NO); IOR r = n...
cdrBufOutput out = new cdrBufOutput();
BufferedCdrOutput out = new BufferedCdrOutput();
public String toStringifiedReference() { cdrBufOutput out = new cdrBufOutput(); _write(out); StringBuffer b = new StringBuffer("IOR:"); byte[] binary = out.buffer.toByteArray(); String s; for (int i = 0; i < binary.length; i++) { s = Integer.toHexString(binary[i] & 0xFF); if (s.l...
public static void write_null(cdrOutput out)
public static void write_null(AbstractCdrOutput out)
public static void write_null(cdrOutput out) { // Empty Id string. out.write_string(""); // Empty set of profiles. out.write_long(0); }
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return JobMediaSheetsSupported.class; }
public final String getName()
public String getName()
public final String getName() { return "job-media-sheets-supported"; }
public SortedSet headSet(T to)
public SortedSet<T> headSet(T to)
public SortedSet headSet(T to) { return new TreeSet<T>(map.headMap(to)); }
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return NumberOfDocuments.class; }
public final String getName()
public String getName()
public final String getName() { return "number-of-documents"; }
{ if (parent != null)
public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) { if (parent != null) throw new IllegalArgumentException( "only the root l...
this.parent = null; return; }
public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) { if (parent != null) throw new IllegalArgumentException( "only the root l...
lostOwnership(Clipboard clipboard, Transferable contents);
void lostOwnership (Clipboard clipboard, Transferable contents);
lostOwnership(Clipboard clipboard, Transferable contents);
public void addSelectionPath(TreePath path);
void addSelectionPath(TreePath path);
public void addSelectionPath(TreePath path);
public void addSelectionPaths(TreePath[] paths);
void addSelectionPaths(TreePath[] paths);
public void addSelectionPaths(TreePath[] paths);
public void addTreeSelectionListener(TreeSelectionListener x);
void addTreeSelectionListener(TreeSelectionListener x);
public void addTreeSelectionListener(TreeSelectionListener x);
public TreePath getLeadSelectionPath();
TreePath getLeadSelectionPath();
public TreePath getLeadSelectionPath();
public int getLeadSelectionRow();
int getLeadSelectionRow();
public int getLeadSelectionRow();
public int getMaxSelectionRow();
int getMaxSelectionRow();
public int getMaxSelectionRow();
public int getMinSelectionRow();
int getMinSelectionRow();
public int getMinSelectionRow();
public RowMapper getRowMapper();
RowMapper getRowMapper();
public RowMapper getRowMapper();
public int getSelectionCount();
int getSelectionCount();
public int getSelectionCount();
public int getSelectionMode();
int getSelectionMode();
public int getSelectionMode();
public TreePath getSelectionPath();
TreePath getSelectionPath();
public TreePath getSelectionPath();
public TreePath[] getSelectionPaths();
TreePath[] getSelectionPaths();
public TreePath[] getSelectionPaths();
public int[] getSelectionRows();
int[] getSelectionRows();
public int[] getSelectionRows();
public boolean isPathSelected(TreePath path);
boolean isPathSelected(TreePath path);
public boolean isPathSelected(TreePath path);
public boolean isRowSelected(int row);
boolean isRowSelected(int row);
public boolean isRowSelected(int row);
public boolean isSelectionEmpty();
boolean isSelectionEmpty();
public boolean isSelectionEmpty();
public void removeSelectionPath(TreePath path);
void removeSelectionPath(TreePath path);
public void removeSelectionPath(TreePath path);
public void removeSelectionPaths(TreePath[] paths);
void removeSelectionPaths(TreePath[] paths);
public void removeSelectionPaths(TreePath[] paths);
public void removeTreeSelectionListener(TreeSelectionListener x);
void removeTreeSelectionListener(TreeSelectionListener x);
public void removeTreeSelectionListener(TreeSelectionListener x);
public void resetRowSelection();
void resetRowSelection();
public void resetRowSelection();
public void setRowMapper(RowMapper newMapper);
void setRowMapper(RowMapper newMapper);
public void setRowMapper(RowMapper newMapper);
public void setSelectionMode(int mode);
void setSelectionMode(int mode);
public void setSelectionMode(int mode);
public void setSelectionPath(TreePath path);
void setSelectionPath(TreePath path);
public void setSelectionPath(TreePath path);
public void setSelectionPaths(TreePath[] paths);
void setSelectionPaths(TreePath[] paths);
public void setSelectionPaths(TreePath[] paths);
public BasicToolBarUI(JToolBar b)
public BasicToolBarUI()
public BasicToolBarUI(JToolBar b) { super(); }
return new BasicToolBarUI((JToolBar) c);
return new BasicToolBarUI();
public static ComponentUI createUI(JComponent c) { return new BasicToolBarUI((JToolBar) c); }
JNodeToolkit tk = (JNodeToolkit) JNodeToolkit.getDefaultToolkit();
RawJNodeToolkit tk = (RawJNodeToolkit) RawJNodeToolkit.getDefaultToolkit();
private void postEvent(int id, int button) { JNodeToolkit tk = (JNodeToolkit) JNodeToolkit.getDefaultToolkit(); Component source = tk.getTop().getComponentAt(x, y); if( source == null) source = tk.getTop(); //TODO full support for modifiers MouseEvent me = new MouseEvent(source, i...
getSampleModel().setDataElements(0, 0, width, height, multiplyData(pixel,null,width*height),
int[] pixelComps = cm.getComponents(pixel, null, 0); int[] d = (int[]) multiplyData(pixelComps,null,width*height); getSampleModel().setPixels(0, 0, width, height, d,
ColorRaster(ColorModel cm,int x, int y, int width, int height, int rgbPixel) { super(cm.createCompatibleSampleModel(width,height),new Point(x,y)); Object pixel = cm.getDataElements(rgbPixel,null); getSampleModel().setDataElements(0, 0, width, height, ...
ColorPaintContext(ColorModel cm,int colorRGB)
ColorPaintContext(int colorRGB)
ColorPaintContext(ColorModel cm,int colorRGB) { color = colorRGB; colorModel = cm; }
color = colorRGB; colorModel = cm;
this(ColorModel.getRGBdefault(), colorRGB);
ColorPaintContext(ColorModel cm,int colorRGB) { color = colorRGB; colorModel = cm; }
return null;
Accessible child = null; if (i >= 0 && i < tabs.size()) child = (Page) tabs.get(i); return child;
public Accessible getAccessibleChild(int i) { return null; }
Rectangle alloc = a.getBounds();
Rectangle alloc = a instanceof Rectangle ? (Rectangle) a : a.getBounds();
protected Rectangle getInsideAllocation(Shape a) { if (a == null) return null; Rectangle alloc = a.getBounds(); // Initialize the inside allocation rectangle. This is done inside // a synchronized block in order to avoid multiple threads creating // this instance simultanously. Rectangle insid...
Rectangle inside; synchronized(this) { inside = insideAllocation; if (inside == null) { inside = new Rectangle(); insideAllocation = inside; } } inside.x = alloc.x + left; inside.y = alloc.y + top; inside.width = alloc.width - left - right; inside.height = alloc.height - top - bottom;
Rectangle inside = insideAllocation; inside.x = alloc.x + getLeftInset(); inside.y = alloc.y + getTopInset(); inside.width = alloc.width - getLeftInset() - getRightInset(); inside.height = alloc.height - getTopInset() - getBottomInset();
protected Rectangle getInsideAllocation(Shape a) { if (a == null) return null; Rectangle alloc = a.getBounds(); // Initialize the inside allocation rectangle. This is done inside // a synchronized block in order to avoid multiple threads creating // this instance simultanously. Rectangle insid...
return children.length;
return numChildren;
public int getViewCount() { return children.length; }
}
protected void loadChildren(ViewFactory f) { Element el = getElement(); int count = el.getElementCount(); View[] newChildren = new View[count]; for (int i = 0; i < count; ++i) { Element child = el.getElement(i); View view = f.create(child); newChildren[i] = view; } // I'...
else {
} if (ret == null)
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { boolean backward = bias == Position.Bias.Backward; int testpos = backward ? Math.max(0, pos - 1) : pos; Shape ret = null; if (! backward || testpos >= getStartOffset()) { int childIndex = get...
} }
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { boolean backward = bias == Position.Bias.Backward; int testpos = backward ? Math.max(0, pos - 1) : pos; Shape ret = null; if (! backward || testpos >= getStartOffset()) { int childIndex = get...
for (int i = 0; i < views.length; ++i) if (views[i] == null) throw new NullPointerException("Added views must not be null");
public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==...
View[] newChildren = new View[children.length - length + views.length];
int delta = views.length - length; int src = offset + length; int numMove = numChildren - src; int dst = src + delta; if (numChildren + delta > children.length) { int newLength = Math.max(2 * children.length, numChildren + delta); View[] newChildren = new View[newLength];
public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==...
System.arraycopy(children, offset + length, newChildren, offset + views.length, children.length - (offset + length));
System.arraycopy(children, src, newChildren, dst, numMove);
public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==...
} else { System.arraycopy(children, src, children, dst, numMove); System.arraycopy(views, 0, children, offset, views.length); } numChildren += delta;
public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==...
if (parent != null && ((children == null) || children.length == 0))
if (parent != null && numChildren == 0)
public void setParent(View parent) { super.setParent(parent); if (parent != null && ((children == null) || children.length == 0)) loadChildren(getViewFactory()); }
this(null);
public AbstractAction() { this(null); }
if (old == null || !old.equals(value))
if ((old == null && value != null) || (old != null && !old.equals(value)))
public void putValue(String key, Object value) { Object old = getValue(key); if (old == null || !old.equals(value)) { store.put(key, value); firePropertyChange(key, old, value); } }
PrinterJob() { ; }
public PrinterJob() { }
PrinterJob(){ ;}
cancel();
public abstract void cancel();
cancel();
defaultPage() { return(new PageFormat()); }
public PageFormat defaultPage() { return new PageFormat(); }
defaultPage(){ return(new PageFormat());}
getCopies();
public abstract int getCopies();
getCopies();
getJobName();
public abstract String getJobName();
getJobName();
getPrinterJob() {
public static PrinterJob getPrinterJob() {
getPrinterJob(){ // FIXME: Need to fix this to load a default implementation instance. return(null);}
return(null); }
return null; }
getPrinterJob(){ // FIXME: Need to fix this to load a default implementation instance. return(null);}
getUserName();
public abstract String getUserName();
getUserName();
isCancelled();
public abstract boolean isCancelled();
isCancelled();
pageDialog(PageFormat page_format);
public abstract PageFormat pageDialog(PageFormat page_format);
pageDialog(PageFormat page_format);
printDialog();
public abstract boolean printDialog();
printDialog();
setPageable(Pageable pageable);
public abstract void setPageable(Pageable pageable);
setPageable(Pageable pageable);
setPrintable(Printable printable);
public abstract void setPrintable(Printable printable);
setPrintable(Printable printable);
validatePage(PageFormat page);
public abstract PageFormat validatePage(PageFormat page_format);
validatePage(PageFormat page);
if (e.getSource() == titlePane && e.getClickCount() == 2) try { if (frame.isMaximizable() && ! frame.isMaximum()) frame.setMaximum(true); else if (frame.isMaximum()) frame.setMaximum(false); } catch (PropertyVetoException pve) { }
public void mouseClicked(MouseEvent e) { // There is nothing to do when the mouse is clicked // on the border. }
case NORTH:
case Cursor.N_RESIZE_CURSOR:
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
case NORTH_EAST:
case Cursor.NE_RESIZE_CURSOR:
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
- min.height), x,
- min.height), x + 1,
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
case EAST: cacheRect.setBounds(b.x, b.y, x, b.height);
case Cursor.E_RESIZE_CURSOR: cacheRect.setBounds(b.x, b.y, x + 1, b.height);
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
case SOUTH_EAST: cacheRect.setBounds(b.x, b.y, x, y);
case Cursor.SE_RESIZE_CURSOR: cacheRect.setBounds(b.x, b.y, x + 1, y + 1);
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
case SOUTH: cacheRect.setBounds(b.x, b.y, b.width, y);
case Cursor.S_RESIZE_CURSOR: cacheRect.setBounds(b.x, b.y, b.width, y + 1);
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
case SOUTH_WEST:
case Cursor.SW_RESIZE_CURSOR:
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
b.y, b.width - x, y);
b.y, b.width - x, y + 1);
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
case WEST:
case Cursor.W_RESIZE_CURSOR:
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
case NORTH_WEST:
case Cursor.NW_RESIZE_CURSOR:
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
setCursor(e);
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min...
if (showingResizeCursor)
if (showingCursor != Cursor.DEFAULT_CURSOR)
public void mouseExited(MouseEvent e) { // Reset the cursor shape. if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } }
showingResizeCursor = false;
showingCursor = Cursor.DEFAULT_CURSOR;
public void mouseExited(MouseEvent e) { // Reset the cursor shape. if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } }
if (showingResizeCursor && e.getSource() != frame)
if (showingCursor != Cursor.DEFAULT_CURSOR && e.getSource() != frame)
public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame...
showingResizeCursor = false;
showingCursor = Cursor.DEFAULT_CURSOR;
public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame...
int cursor; switch (sectionOfClick(e.getX(), e.getY())) { case NORTH: cursor = Cursor.N_RESIZE_CURSOR; break; case NORTH_EAST: cursor = Cursor.NE_RESIZE_CURSOR; break; case EAST: cursor = Cursor.E_RESIZE_CURSOR; break; case SOUTH_EAST: cursor = Cursor.SE_RESIZE_CURSOR; break; case SOUTH: cursor = Cursor.S_RESIZE_CURSOR...
setCursor(e); }
public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame...
Cursor resize = Cursor.getPredefinedCursor(cursor); frame.setCursor(resize); showingResizeCursor = true; } }
public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame...
setCursor(e);
public void mouseReleased(MouseEvent e) { DesktopManager dm = getDesktopManager(); xOffset = 0; yOffset = 0; if (e.getSource() == frame && frame.isResizable()) dm.endResizingFrame(frame); else if (e.getSource() == titlePane) { dm.endDraggingFrame(frame); fra...