rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
getImageableX() { return(paper.getImageableX()); }
public double getImageableX() { return paper.getImageableX(); }
getImageableX(){ return(paper.getImageableX());}
getImageableY() { return(paper.getImageableY()); }
public double getImageableY() { return paper.getImageableY(); }
getImageableY(){ return(paper.getImageableY());}
getMatrix() {
public double[] getMatrix() {
getMatrix(){ throw new RuntimeException("Not implemented since I don't know what to do");}
getPaper() { return((Paper)paper.clone()); }
public Paper getPaper() { return (Paper) paper.clone(); }
getPaper(){ return((Paper)paper.clone());}
getWidth() { return(paper.getWidth()); }
public double getWidth() { return paper.getWidth(); }
getWidth(){ return(paper.getWidth());}
setOrientation(int orientation) throws IllegalArgumentException { if ((orientation != PORTRAIT) && (orientation != LANDSCAPE) && (orientation != REVERSE_LANDSCAPE)) throw new IllegalArgumentException("Bad page orientation value: " + orientation);
public void setOrientation(int orientation) throws IllegalArgumentException { if ((orientation != PORTRAIT) && (orientation != LANDSCAPE) && (orientation != REVERSE_LANDSCAPE)) throw new IllegalArgumentException("Bad page orientation value: " + orientation);
setOrientation(int orientation) throws IllegalArgumentException{ if ((orientation != PORTRAIT) && (orientation != LANDSCAPE) && (orientation != REVERSE_LANDSCAPE)) throw new IllegalArgumentException("Bad page orientation value: " + orientation); this.orientation = or...
setPaper(Paper paper) {
public void setPaper(Paper paper) {
setPaper(Paper paper){ this.paper = paper;}
started = true;
public final void start() throws PluginException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(PluginSecurityConstants.START_PERM); } if (!started) { if (descriptor.hasCustomPluginClass()) { BootLog.debug("__Starting " + descriptor.get...
started = false;
public final void stop() throws PluginException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(PluginSecurityConstants.STOP_PERM); } if (started) { ((PluginDescriptorModel)descriptor).firePluginStop(); stopPlugin(); started = false; } }
new aliasTypeCode(new stringTypeCode(TCKind.tk_string), "", "id");
new AliasTypeCode(new StringTypeCode(TCKind.tk_string), "", "id");
public static TypeCode type() { if (typeCode == null) { StructMember[] members = new StructMember[ 2 ]; TypeCode t_id = new aliasTypeCode(new stringTypeCode(TCKind.tk_string), "", "id"); members [ 0 ] = new StructMember("id", t_id, null); members [ 1 ] = new Stru...
new StructMember("value", new primitiveTypeCode(TCKind.tk_any), null);
new StructMember("value", new PrimitiveTypeCode(TCKind.tk_any), null);
public static TypeCode type() { if (typeCode == null) { StructMember[] members = new StructMember[ 2 ]; TypeCode t_id = new aliasTypeCode(new stringTypeCode(TCKind.tk_string), "", "id"); members [ 0 ] = new StructMember("id", t_id, null); members [ 1 ] = new Stru...
throw new BadLocationException("no more word", offs);
throw new BadLocationException("no more words", offs);
public static final int getNextWord(JTextComponent c, int offs) throws BadLocationException { if (offs < 0 || offs > (c.getText().length() - 1)) throw new BadLocationException("invalid offset specified", offs); String text = c.getText(); BreakIterator wb = BreakIterator.getWordInstance(); wb.se...
if (offs < 0 || offs > (c.getText().length() - 1))
String text = c.getText(); if (offs <= 0 || offs > text.length())
public static final int getPreviousWord(JTextComponent c, int offs) throws BadLocationException { if (offs < 0 || offs > (c.getText().length() - 1)) throw new BadLocationException("invalid offset specified", offs); String text = c.getText(); BreakIterator wb = BreakIterator.getWordInstance(); w...
String text = c.getText();
public static final int getPreviousWord(JTextComponent c, int offs) throws BadLocationException { if (offs < 0 || offs > (c.getText().length() - 1)) throw new BadLocationException("invalid offset specified", offs); String text = c.getText(); BreakIterator wb = BreakIterator.getWordInstance(); w...
if (offs < 0 || offs >= c.getText().length())
String text = c.getText(); if (offs < 0 || offs > text.length())
public static final int getWordStart(JTextComponent c, int offs) throws BadLocationException { if (offs < 0 || offs >= c.getText().length()) throw new BadLocationException("invalid offset specified", offs); String text = c.getText(); BreakIterator wb = BreakIterator.getWordInstance(); wb.se...
String text = c.getText();
public static final int getWordStart(JTextComponent c, int offs) throws BadLocationException { if (offs < 0 || offs >= c.getText().length()) throw new BadLocationException("invalid offset specified", offs); String text = c.getText(); BreakIterator wb = BreakIterator.getWordInstance(); wb.se...
checkClosed();
public int getBitOffset() throws IOException { return bitOffset; }
checkClosed();
public long getStreamPosition() throws IOException { return streamPos; }
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return NumberUpSupported.class; }
public final String getName()
public String getName()
public final String getName() { return "number-up-supported"; }
windowInit();
public JWindow() { super(SwingUtilities.getOwnerFrame()); }
public void setDraggedColumn(TableColumn d)
public void setDraggedColumn(TableColumn draggingIt)
public void setDraggedColumn(TableColumn d) { draggedColumn = d; }
draggedColumn = d;
draggedColumn = draggingIt;
public void setDraggedColumn(TableColumn d) { draggedColumn = d; }
public void setReorderingAllowed(boolean r)
public void setReorderingAllowed(boolean allowed)
public void setReorderingAllowed(boolean r) { reorderingAllowed = r; }
reorderingAllowed = r;
reorderingAllowed = allowed;
public void setReorderingAllowed(boolean r) { reorderingAllowed = r; }
public void setResizingAllowed(boolean r)
public void setResizingAllowed(boolean allowed)
public void setResizingAllowed(boolean r) { resizingAllowed = r; }
resizingAllowed = r;
resizingAllowed = allowed;
public void setResizingAllowed(boolean r) { resizingAllowed = r; }
public void setResizingColumn(TableColumn r)
public void setResizingColumn(TableColumn resizingIt)
public void setResizingColumn(TableColumn r) { resizingColumn = r; }
resizingColumn = r;
resizingColumn = resizingIt;
public void setResizingColumn(TableColumn r) { resizingColumn = r; }
throws NotImplementedException
public Iterator getCurrentServiceSelectors (BeanContextServices bcs, Class serviceClass) { throw new Error ("Not implemented"); }
throws NotImplementedException
public Object getService (BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) { throw new Error ("Not implemented"); }
throws NotImplementedException
public void releaseService (BeanContextServices bcs, Object requestor, Object service) { throw new Error ("Not implemented"); }
throws NotImplementedException
public void serviceRevoked (BeanContextServiceRevokedEvent bcsre) { throw new Error ("Not implemented"); }
throws NotImplementedException
public boolean addService (Class serviceClass, BeanContextServiceProvider bcsp) { throw new Error ("Not implemented"); }
throws NotImplementedException
createBCSSServiceProvider (Class sc, BeanContextServiceProvider bcsp) { throw new Error ("Not implemented"); }
throws NotImplementedException
protected final void fireServiceAdded (BeanContextServiceAvailableEvent bcssae) { throw new Error ("Not implemented"); }
throws NotImplementedException
protected final void fireServiceRevoked(BeanContextServiceRevokedEvent event) { throw new Error ("Not implemented"); }
throws NotImplementedException
public BeanContextServices getBeanContextServicesPeer () { throw new Error ("Not implemented"); }
throws NotImplementedException
getChildBeanContextServicesListener (Object child) { throw new Error ("Not implemented"); }
throws NotImplementedException
public Iterator getCurrentServiceClasses () { throw new Error ("Not implemented"); }
throws NotImplementedException
public Iterator getCurrentServiceSelectors (Class serviceClass) { throw new Error ("Not implemented"); }
throws TooManyListenersException
throws TooManyListenersException, NotImplementedException
public Object getService (BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException { throw new Error ("Not implemented"); }
throws NotImplementedException
public boolean hasService (Class serviceClass) { throw new Error ("Not implemented"); }
throws NotImplementedException
protected void initializeBeanContextResources () { throw new Error ("Not implemented"); }
throws NotImplementedException
protected void releaseBeanContextResources () { throw new Error ("Not implemented"); }
throws NotImplementedException
public void releaseService (BeanContextChild child, Object requestor, Object service) { throw new Error ("Not implemented"); }
throws NotImplementedException
public void revokeService (Class serviceClass, BeanContextServiceProvider bcsp, boolean revokeCurrentServicesNow) { throw new Error ("Not implemented"); }
throws NotImplementedException
public void serviceAvailable (BeanContextServiceAvailableEvent bcssae) { throw new Error ("Not implemented"); }
throws NotImplementedException
public void serviceRevoked (BeanContextServiceRevokedEvent bcssre) { throw new Error ("Not implemented"); }
return 1; else return 0;
count = 1; return count;
public int getViewCount() { if (view != null) return 1; else return 0; }
return ((View) view).modelToView(position, a, bias);
return view.modelToView(position, a, bias);
public Shape modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { return ((View) view).modelToView(position, a, bias); }
}
public void paint(Graphics g, Shape s) { if (view != null) view.paint(g, s); }
public void preferenceChanged(View view, boolean width, boolean height)
public void preferenceChanged(View v, boolean width, boolean height)
public void preferenceChanged(View view, boolean width, boolean height) { textComponent.revalidate(); }
JTextComponent textComponent = getComponent();
protected Rectangle getVisibleEditorRect() { JTextComponent textComponent = getComponent(); int width = textComponent.getWidth(); int height = textComponent.getHeight(); if (width <= 0 || height <= 0) return new Rectangle(0, 0, 0, 0); Insets insets = textComponent.getInsets(); return new Rect...
finally { Document doc = textComponent.getDocument(); if (doc instanceof AbstractDocument) { AbstractDocument aDoc = (AbstractDocument) doc; aDoc.readUnlock(); } } }
public final void paint(Graphics g, JComponent c) { paintSafely(g); }
Color old = g.getColor(); g.setColor(textComponent.getBackground()); g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); g.setColor(old);
protected void paintBackground(Graphics g) { // This method does nothing. All the background filling is done by the // ComponentUI update method. However, the method is called by paint // to provide a way for subclasses to draw something different (e.g. // background images etc) on the background. }
ObjectContext()
ObjectContext(Object newObject)
ObjectContext() { }
setObject(newObject);
ObjectContext() { }
if (context == null || color != context.color) context = new ColorPaintContext(color);
if (context == null || color != context.color || !context.getColorModel().equals(cm)) context = new ColorPaintContext(cm,color);
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { Toolkit.getDefaultToolkit().loadSystemColors(colors); int colo...
public RootView(JTextComponent parent)
public RootView()
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
textComponent = parent; }
}
public RootView(JTextComponent parent) { super(null); textComponent = parent; }
System.out.println("Michael: BasicTextUI.RootView.paint");
public void paint(Graphics g, Shape s) { System.out.println("Michael: BasicTextUI.RootView.paint"); if (view != null) view.paint(g, s); }
Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHighlighter()); String prefix = getPropertyPrefix(); UIDefaults defaults = UIManage...
protected void installDefaults() { }
Keymap km = JTextComponent.getKeymap(getKeymapName()); if (km == null) km = createKeymap(); textComponent.setKeymap(km); SwingUtilities.replaceUIInputMap(textComponent, JComponent.WHEN_FOCUSED, getInputMap(JComponent.WHEN_FOCUSED)); SwingUtilities.replaceUIActionMap(textComponent, getActionMap());
protected void installKeyboardActions() { }
doc = new PlainDocument();
doc = getEditorKit(textComponent).createDefaultDocument();
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = new PlainDocument(); textComponent.setDocument(doc); } rootView = new RootView(textComponent); ...
rootView = new RootView(textComponent); setView(create(doc.getDefaultRootElement()));
textComponent.addPropertyChangeListener(updateHandler); modelChanged();
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = new PlainDocument(); textComponent.setDocument(doc); } rootView = new RootView(textComponent); ...
return modelToView(t, pos, null);
return modelToView(t, pos, Position.Bias.Forward);
public Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException { return modelToView(t, pos, null); }
g.setColor(Color.WHITE);
g.setColor(textComponent.getBackground());
protected void paintBackground(Graphics g) { g.setColor(Color.WHITE); // FIXME: set background color g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); }
if (highlighter != null) highlighter.paint(g);
protected void paintSafely(Graphics g) { Caret caret = textComponent.getCaret(); Highlighter highlighter = textComponent.getHighlighter(); if (textComponent.isOpaque()) paintBackground(g); rootView.paint(g, getVisibleEditorRect()); if (highlighter != null) highlighter.paint(g); if...
public void uninstallUI(final JComponent c)
public void uninstallUI(final JComponent component)
public void uninstallUI(final JComponent c) { super.uninstallUI(c); rootView = null; uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); }
super.uninstallUI(c); rootView = null;
super.uninstallUI(component); rootView.setView(null); textComponent.removePropertyChangeListener(updateHandler); textComponent = null;
public void uninstallUI(final JComponent c) { super.uninstallUI(c); rootView = null; uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); }
else { position(limit()); limit(capacity()); }
public FloatBuffer compact () { if (position () > 0) { int count = limit () - position (); bb.shiftDown(offset, offset + 4 * position(), 4 * count); position (count); limit (capacity ()); } return this; }
log.debug("dataTypeSize=" + dataTypeSize + ", dataType=" + dataType);
public BufferedImageSurface(BufferedImage image) { super(image.getWidth(), image.getHeight()); this.model = image.getColorModel(); this.sImage = image; final Raster raster = image.getRaster(); final DataBuffer dataBuffer = raster.getDataBuffer(); final SampleModel sampleModel = raster.getSampleModel(); ...
public Image createImage(int width, int height)
public Image createImage(ImageProducer prod)
public Image createImage(int width, int height) { GraphicsEnvironment graphicsEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice dev = graphicsEnv.getDefaultScreenDevice(); GraphicsConfiguration conf = dev.getDefaultConfiguration(); Image image = conf.createCompatibleImage(width...
GraphicsEnvironment graphicsEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice dev = graphicsEnv.getDefaultScreenDevice(); GraphicsConfiguration conf = dev.getDefaultConfiguration(); Image image = conf.createCompatibleImage(width, height); return image;
Image image = Toolkit.getDefaultToolkit().createImage(prod); return image;
public Image createImage(int width, int height) { GraphicsEnvironment graphicsEnv = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice dev = graphicsEnv.getDefaultScreenDevice(); GraphicsConfiguration conf = dev.getDefaultConfiguration(); Image image = conf.createCompatibleImage(width...
if(propertyStopClass == null || (propertyStopClass.isAssignableFrom(methodClass) && !propertyStopClass.equals(methodClass))) { if(name.startsWith("is")
if(isReachable(propertyStopClass, methodClass)) { if(Modifier.isStatic(method.getModifiers())) { otherMethods.addElement(method); } else if(name.startsWith("is")
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
if(eventStopClass == null || (eventStopClass.isAssignableFrom(methodClass) && !eventStopClass.equals(methodClass))) {
if(isReachable(eventStopClass, methodClass)) {
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
if(methodStopClass == null || (methodStopClass.isAssignableFrom(methodClass) && !methodStopClass.equals(methodClass))) {
if(isReachable(methodStopClass, methodClass)) {
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
StringBuffer buf = new StringBuffer (LoginModuleControlFlag.class.getName()); buf.append ('.'); if (this == OPTIONAL) buf.append ("OPTIONAL"); else if (this == REQUIRED) buf.append ("REQUIRED"); else if (this == REQUISITE) buf.append ("REQUISITE"); else if (this == SUFFICIENT) buf.append ("SUFFICIENT"); else buf.append...
if (this == LoginModuleControlFlag.REQUIRED) return "REQUIRED"; if (this == LoginModuleControlFlag.REQUISITE) return "REQUISITE"; if (this == LoginModuleControlFlag.SUFFICIENT) return "SUFFICIENT"; if (this == LoginModuleControlFlag.OPTIONAL) return "OPTIONAL"; return "???";
public String toString() { StringBuffer buf = new StringBuffer (LoginModuleControlFlag.class.getName()); buf.append ('.'); if (this == OPTIONAL) buf.append ("OPTIONAL"); else if (this == REQUIRED) buf.append ("REQUIRED"); else if (this == REQUISITE) buf.append ("REQU...
valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD5().digest())));
String d = Util.toString(new MD5().digest()); valid = Boolean.valueOf(DIGEST0.equals(d));
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD5().digest()))); } return valid.booleanValue(); }
public final Object attachment()
public final synchronized Object attachment()
public final Object attachment() { return attached; }
throw new MARSHAL(ex.toString());
MARSHAL t = new MARSHAL(); t.initCause(ex); throw t;
public void read(cdrInput in) { try { request_id = in.read_ulong(); response_flags = (byte) in.read(); // Skip 3 reserved octets: in.skip(3); // Read target address. AddressingDisposition = in.read_ushort(); switch (AddressingDisposition) { ...
if (start < 0 || end >= count || start > end)
if (start < 0 || end > count || start > end)
public synchronized int codePointCount(int start, int end) { if (start < 0 || end >= count || start > end) throw new StringIndexOutOfBoundsException(); start += offset; end += offset; int count = 0; while (start < end) { char base = value[start]; if (base < Character.MIN_HIGH_SURROGATE |...
return Character.direction[Character.readChar(ch) >> 7] & 3;
return Character.direction[0][Character.readCodePoint((int)ch) >> 7] & 3;
private static int upperCaseExpansion(char ch) { return Character.direction[Character.readChar(ch) >> 7] & 3; }
public int indexOf(String str, int fromIndex)
public int indexOf(String str)
public int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1;
return indexOf(str, 0);
public int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; }
public FTPFSEntry(FTPFileSystem fileSystem, FTPFile ftpFile) {
FTPFSEntry(FTPFileSystem fileSystem, FTPFile ftpFile) {
public FTPFSEntry(FTPFileSystem fileSystem, FTPFile ftpFile) { this.fileSystem = fileSystem; this.ftpFile = ftpFile; }
public void setEras (String[] value)
public void setEras (String[] labels)
public void setEras (String[] value) { eras = value; }
eras = value;
eras = labels;
public void setEras (String[] value) { eras = value; }
public void setLocalPatternChars (String value)
public void setLocalPatternChars (String chars)
public void setLocalPatternChars (String value) { localPatternChars = value; }
localPatternChars = value;
localPatternChars = chars;
public void setLocalPatternChars (String value) { localPatternChars = value; }
public void setMonths (String[] value)
public void setMonths (String[] labels)
public void setMonths (String[] value) { months = value; }
months = value;
months = labels;
public void setMonths (String[] value) { months = value; }
public void setShortMonths (String[] value)
public void setShortMonths (String[] labels)
public void setShortMonths (String[] value) { shortMonths = value; }
shortMonths = value;
shortMonths = labels;
public void setShortMonths (String[] value) { shortMonths = value; }
public void setShortWeekdays (String[] value)
public void setShortWeekdays (String[] labels)
public void setShortWeekdays (String[] value) { shortWeekdays = value; }
shortWeekdays = value;
shortWeekdays = labels;
public void setShortWeekdays (String[] value) { shortWeekdays = value; }
public void setWeekdays (String[] value)
public void setWeekdays (String[] labels)
public void setWeekdays (String[] value) { weekdays = value; }
weekdays = value;
weekdays = labels;
public void setWeekdays (String[] value) { weekdays = value; }
public void setZoneStrings (String[][] value)
public void setZoneStrings (String[][] zones)
public void setZoneStrings (String[][] value) { zoneStrings = value; }