rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
}.run(); | }.start(); | public void send_oneway() { final gnuRequest cloned = Clone(); cloned.oneWay = true; new Thread() { public void run() { cloned.invoke(); } }.run(); } |
protected void assertContainsOnly(String errorMessage, Iterator<FSEntry> it, String[] requiredNames) | protected void assertContainsOnly(String errorMessage, Iterator<? extends FSEntry> it, String[] requiredNames) | protected void assertContainsOnly(String errorMessage, Iterator<FSEntry> it, String[] requiredNames) { boolean ok = true; List<String> reqNames = (requiredNames == null) ? new ArrayList<String>() : new ArrayList<String>(Arrays.asList(requiredNames)); List<String> names = TestUtils.getEntryNa... |
DoubleSeqHolder h = new DoubleSeqHolder(); h._read(input); return h.value; | double[] value = new double[ input.read_long() ]; input.read_double_array(value, 0, value.length); return value; | public static double[] read(InputStream input) { DoubleSeqHolder h = new DoubleSeqHolder(); h._read(input); return h.value; } |
DoubleSeqHolder h = new DoubleSeqHolder(value); h._write(output); | output.write_long(value.length); output.write_double_array(value, 0, value.length); | public static void write(OutputStream output, double[] value) { DoubleSeqHolder h = new DoubleSeqHolder(value); h._write(output); } |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | LookAndFeel.installBorder(toolBar, "ToolBar.border"); LookAndFeel.installColorsAndFont(toolBar, "ToolBar.background", "ToolBar.foreground", "ToolBar.font"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); toolBar.setBorder(defaults.getBorder("ToolBar.border")); toolBar.setBackground(defaults.getColor("ToolBar.background")); toolBar.setForeground(defaults.getColor("ToolBar.foreground")); toolBar.setFont(defaults... |
toolBar.setBorder(defaults.getBorder("ToolBar.border")); toolBar.setBackground(defaults.getColor("ToolBar.background")); toolBar.setForeground(defaults.getColor("ToolBar.foreground")); toolBar.setFont(defaults.getFont("ToolBar.font")); | dockingBorderColor = UIManager.getColor("ToolBar.dockingForeground"); dockingColor = UIManager.getColor("ToolBar.dockingBackground"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); toolBar.setBorder(defaults.getBorder("ToolBar.border")); toolBar.setBackground(defaults.getColor("ToolBar.background")); toolBar.setForeground(defaults.getColor("ToolBar.foreground")); toolBar.setFont(defaults... |
dockingBorderColor = defaults.getColor("ToolBar.dockingForeground"); dockingColor = defaults.getColor("ToolBar.dockingBackground"); floatingBorderColor = defaults.getColor("ToolBar.floatingForeground"); floatingColor = defaults.getColor("ToolBar.floatingBackground"); | floatingBorderColor = UIManager.getColor("ToolBar.floatingForeground"); floatingColor = UIManager.getColor("ToolBar.floatingBackground"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); toolBar.setBorder(defaults.getBorder("ToolBar.border")); toolBar.setBackground(defaults.getColor("ToolBar.background")); toolBar.setForeground(defaults.getColor("ToolBar.foreground")); toolBar.setFont(defaults... |
private void calculatePreferredSize() | void calculatePreferredSize() | private void calculatePreferredSize() { // System.err.println(this + ".calculatePreferredSize()"); int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().ge... |
thumbLightShadowColor = defaults.getColor("ScrollBar.thumbLightShadow"); | thumbLightShadowColor = defaults.getColor("ScrollBar.thumbShadow"); | protected void configureScrollBarColors() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); trackColor = defaults.getColor("ScrollBar.track"); trackHighlightColor = defaults.getColor("ScrollBar.trackHighlight"); thumbColor = defaults.getColor("ScrollBar.thumb"); thumbHighlightColor = defau... |
thumbRect.width = extent * trackRect.width / (max - min); | thumbRect.width = Math.max(extent * trackRect.width / (max - min), getMinimumThumbSize().width); | protected Rectangle getThumbBounds() { int max = scrollbar.getMaximum(); int min = scrollbar.getMinimum(); int value = scrollbar.getValue(); int extent = scrollbar.getVisibleAmount(); // System.err.println(this + ".getThumbBounds()"); if (max == min) { thumbRect.x = trackRect.x; thumbR... |
thumbRect.height = extent * trackRect.height / (max - min); | thumbRect.height = Math.max(extent * trackRect.height / (max - min), getMinimumThumbSize().height); | protected Rectangle getThumbBounds() { int max = scrollbar.getMaximum(); int min = scrollbar.getMinimum(); int value = scrollbar.getValue(); int extent = scrollbar.getVisibleAmount(); // System.err.println(this + ".getThumbBounds()"); if (max == min) { thumbRect.x = trackRect.x; thumbR... |
private int valueForXPosition(int xPos) | int valueForXPosition(int xPos) | private int valueForXPosition(int xPos) { int min = scrollbar.getMinimum(); int max = scrollbar.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider is. // This really shouldn't ever happen, but just in case, we'll return the ... |
private int valueForYPosition(int yPos) | int valueForYPosition(int yPos) | private int valueForYPosition(int yPos) { int min = scrollbar.getMinimum(); int max = scrollbar.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the thumb is. // This really shouldn't ever happen, but just in case, we'll return the ... |
dm.rename(device, getDevicePrefix(), true); | dm.rename(device, getDevicePrefix() + "-" + device.getId(), false); | protected void startDevice() throws DriverException { final Device device = getDevice(); try { final DeviceManager dm = (DeviceManager)InitialNaming.lookup(DeviceManager.NAME); dm.rename(device, getDevicePrefix(), true); } catch (DeviceAlreadyRegisteredException ex) { log.error("Cannot rename device", ex); }... |
super(); | protected AccessibleJTextField() { } | |
return null; | AccessibleStateSet state = super.getAccessibleStateSet(); return state; | public AccessibleStateSet getAccessibleStateSet() { return null; } |
public void setOutputStream(OutputStream stream) { this.outputStream = stream; } | public void setOutputStream(OutputStream outputStream) { this.outputStream = outputStream; } | public void setOutputStream(OutputStream stream) { this.outputStream = stream; } |
public void setSystemId(File file) { try { this.systemId = StreamSource.fileToURL (file).toString (); } catch (IOException e) { throw new RuntimeException (e.getMessage ()); } | public void setSystemId(String systemID) { this.systemId = systemID; | public void setSystemId(File file) { try { this.systemId = StreamSource.fileToURL (file).toString (); } catch (IOException e) { // can't happen throw new RuntimeException (e.getMessage ()); } } |
if (peer != null) peer.dispose(); | ComponentPeer tmp = peer; | public void removeNotify() { if (peer != null) peer.dispose(); peer = null; } |
if (tmp != null) tmp.dispose(); | public void removeNotify() { if (peer != null) peer.dispose(); peer = null; } | |
public JMenu() { } | public JMenu() { super(); } | public JMenu() { // TODO } // JMenu() |
public JMenuItem add(JMenuItem item) { return null; } | public JMenuItem add(JMenuItem item) { return popupMenu.add(item); } | public JMenuItem add(JMenuItem item) { return null; // TODO } // add() |
public void addMenuListener(MenuListener listener) { } | public void addMenuListener(MenuListener listener) { listenerList.add(MenuListener.class, listener); } | public void addMenuListener(MenuListener listener) { // TODO } // addMenuListener() |
protected void fireMenuCanceled() { } | protected void fireMenuCanceled() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuCanceled(new MenuEvent(this)); } | protected void fireMenuCanceled() { // TODO } // fireMenuCanceled() |
protected void fireMenuDeselected() { } | protected void fireMenuDeselected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuDeselected(new MenuEvent(this)); } | protected void fireMenuDeselected() { // TODO } // fireMenuDeselected() |
protected void fireMenuSelected() { } | protected void fireMenuSelected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuSelected(new MenuEvent(this)); } | protected void fireMenuSelected() { // TODO } // fireMenuSelected() |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJMenu(this); } return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenu(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJMenu(this); } // if return accessibleContext; } // getAccessibleContext() |
public int getDelay() { return 0; } | public int getDelay() { return delay; } | public int getDelay() { return 0; // TODO } // getDelay() |
public JMenuItem getItem(int index) { return null; } | public JMenuItem getItem(int index) { Component c = popupMenu.getComponentAtIndex(index); if (c instanceof JMenuItem) return (JMenuItem) c; else return null; } | public JMenuItem getItem(int index) { return null; // TODO } // getItem() |
public Component getMenuComponent(int index) { return null; } | public Component getMenuComponent(int index) { return (Component) popupMenu.getComponentAtIndex(index); } | public Component getMenuComponent(int index) { return null; // TODO } // getMenuComponent() |
public int getMenuComponentCount() { return 0; } | public int getMenuComponentCount() { return popupMenu.getComponentCount(); } | public int getMenuComponentCount() { return 0; // TODO } // getMenuComponentCount() |
public Component[] getMenuComponents() { return null; } | public Component[] getMenuComponents() { return popupMenu.getComponents(); } | public Component[] getMenuComponents() { return null; // TODO } // getMenuComponents() |
public JPopupMenu getPopupMenu() { return null; } | public JPopupMenu getPopupMenu() { return popupMenu; } | public JPopupMenu getPopupMenu() { return null; // TODO } // getPopupMenu() |
protected Point getPopupMenuOrigin() { return null; } | protected Point getPopupMenuOrigin() { if (isTopLevelMenu()) return new Point(0, this.getHeight()); return new Point(this.getWidth(), 0); } | protected Point getPopupMenuOrigin() { return null; // TODO } // getPopupMenuOrigin() |
public MenuElement[] getSubElements() { return null; } | public MenuElement[] getSubElements() { return new MenuElement[] { popupMenu }; } | public MenuElement[] getSubElements() { return null; // TODO } // getSubElements() |
public void insert(String text, int index) { } | public void insert(String text, int index) { popupMenu.insert(new JMenuItem(text), index); } | public void insert(String text, int index) { // TODO } // insert() |
public boolean isPopupMenuVisible() { return false; } | public boolean isPopupMenuVisible() { return popupMenu.isVisible(); } | public boolean isPopupMenuVisible() { return false; // TODO } // isPopupMenuVisible() |
public boolean isSelected() { return false; } | public boolean isSelected() { return super.isSelected(); } | public boolean isSelected() { return false; // TODO } // isSelected() |
public boolean isTopLevelMenu() { return false; } | public boolean isTopLevelMenu() { if (getParent() instanceof JMenuBar) return true; else return false; } | public boolean isTopLevelMenu() { return false; // TODO } // isTopLevelMenu() |
protected String paramString() { return null; } | protected String paramString() { return "JMenu"; } | protected String paramString() { return null; // TODO } // paramString() |
public void remove(JMenuItem item) { } | public void remove(JMenuItem item) { popupMenu.remove(item); } | public void remove(JMenuItem item) { // TODO } // remove() |
public void removeAll() { } | public void removeAll() { popupMenu.removeAll(); } | public void removeAll() { // TODO } // removeAll() |
public void removeMenuListener(MenuListener listener) { } | public void removeMenuListener(MenuListener listener) { listenerList.remove(MenuListener.class, listener); } | public void removeMenuListener(MenuListener listener) { // TODO } // removeMenuListener() |
public void setAccelerator(KeyStroke keystroke) { } | public void setAccelerator(KeyStroke keystroke) { super.setAccelerator(keystroke); } | public void setAccelerator(KeyStroke keystroke) { // TODO } // setAccelerator() |
public void setDelay(int delay) { } | public void setDelay(int delay) { this.delay = delay; } | public void setDelay(int delay) { // TODO } // setDelay() |
public void setMenuLocation(int x, int y) { } | public void setMenuLocation(int x, int y) { popupMenu.setLocation(x, y); } | public void setMenuLocation(int x, int y) { // TODO } // setMenuLocation() |
public void setModel(ButtonModel model) { } | public void setModel(ButtonModel model) { super.setModel(model); } | public void setModel(ButtonModel model) { // TODO } // setModel() |
public void setPopupMenuVisible(boolean popup) { } | public void setPopupMenuVisible(boolean popup) { if (isEnabled()) popupMenu.setVisible(popup); } | public void setPopupMenuVisible(boolean popup) { // TODO } // setPopupMenuVisible() |
public void setSelected(boolean selected) { } | public void setSelected(boolean selected) { super.setSelected(selected); } | public void setSelected(boolean selected) { // TODO } // setSelected() |
public void updateUI() { invalidate(); } | public void updateUI() { super.setUI((MenuItemUI) UIManager.getUI(this)); invalidate(); } | public void updateUI() { //setUI((MenuUI) UIManager.get(this)); invalidate(); } // updateUI() |
throws XMLStreamException | public boolean hasNext() throws XMLStreamException { return peekEvent != null || reader.hasNext(); } | |
return peekEvent != null || reader.hasNext(); | if (peekEvent != null) return true; try { return reader.hasNext(); } catch (XMLStreamException e) { return false; } | public boolean hasNext() throws XMLStreamException { return peekEvent != null || reader.hasNext(); } |
public XMLEvent next() throws XMLStreamException | public Object next() | public XMLEvent next() throws XMLStreamException { XMLEvent ret = peek(); peekEvent = null; return ret; } |
XMLEvent ret = peek(); peekEvent = null; return ret; | try { return nextEvent(); } catch (XMLStreamException e) { RuntimeException e2 = new RuntimeException(); e2.initCause(e); throw e2; } | public XMLEvent next() throws XMLStreamException { XMLEvent ret = peek(); peekEvent = null; return ret; } |
System.err.println("...applying " + toString() + " to " + context); | void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { //System.err.println("...applying " + toString() + " to " + context); if (node != null) { node.apply(stylesheet, mode, ... | |
public String getUIClassID() { return "JTabbedPane"; } | public String getUIClassID() { return "TabbedPaneUI"; } | public String getUIClassID() { return "JTabbedPane"; } |
public Dimension preferredLayoutSize(Container c) { Dimension p = super.preferredLayoutSize(c); System.out.println(" PREF-SIZE from RootLayout = " + p); return p; } | public Dimension preferredLayoutSize ( Container c ) { Dimension p = super.preferredLayoutSize(c); return p; } | public Dimension preferredLayoutSize(Container c) { Dimension p = super.preferredLayoutSize(c); System.out.println(" PREF-SIZE from RootLayout = " + p); return p; } |
public String getUIClassID() { return "JPanel"; } | public String getUIClassID() { return "RootPaneUI"; } | public String getUIClassID() { return "JPanel"; } |
StringTokenizer t = new StringTokenizer(path, pathSep); libpath = new String[t.countTokens()]; for (int i = 0; i < libpath.length; i++) { String prefix = t.nextToken(); | StringTokenizer t1 = new StringTokenizer(bootPath, pathSep); StringTokenizer t2 = new StringTokenizer(path, pathSep); libpath = new String[t1.countTokens() + t2.countTokens()]; int i = 0; while(t1.hasMoreTokens()) { String prefix = t1.nextToken(); if (! prefix.endsWith(fileSep)) prefix += fileSep; libpath[i] = prefix... | private Runtime() { if (current != null) throw new InternalError("Attempt to recreate Runtime"); String path = SystemProperties.getProperty("java.library.path", "."); String pathSep = SystemProperties.getProperty("path.separator", ":"); String fileSep = SystemProperties.getProperty("file.separator",... |
i++; | private Runtime() { if (current != null) throw new InternalError("Attempt to recreate Runtime"); String path = SystemProperties.getProperty("java.library.path", "."); String pathSep = SystemProperties.getProperty("path.separator", ":"); String fileSep = SystemProperties.getProperty("file.separator",... | |
this.awtComponent = awtComponent; | super(awtComponent); | public SwingWindow(Window awtComponent) { this.awtComponent = awtComponent; } |
return null; | if (accessibleContext == null) accessibleContext = new AccessibleJLabel(); return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } |
public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) | public TextHitInfo getStrongCaret(TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) throws NotImplementedException | public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) { return layout.peer.getStrongCaret(hit1, hit2); } |
return layout.peer.getStrongCaret(hit1, hit2); | throw new Error ("not implemented"); | public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) { return layout.peer.getStrongCaret(hit1, hit2); } |
try { TextLayout tl = (TextLayout) super.clone (); tl.peer = (ClasspathTextLayoutPeer) this.peer.clone(); return tl; } catch (CloneNotSupportedException e) { throw new InternalError (); } | return new TextLayout( string, font, frc ); | protected Object clone () { try { TextLayout tl = (TextLayout) super.clone (); tl.peer = (ClasspathTextLayoutPeer) this.peer.clone(); return tl; } catch (CloneNotSupportedException e) { // This should never occur throw new InternalError (); } } |
return peer.getAdvance(); | float totalAdvance = 0f; for(int i = 0; i < runs.length; i++) totalAdvance += runs[i].getLogicalBounds().getWidth(); return totalAdvance; | public float getAdvance () { return peer.getAdvance(); } |
return peer.getAscent(); | return lm.getAscent(); | public float getAscent () { return peer.getAscent(); } |
return peer.getBaseline(); | return (byte)lm.getBaselineIndex(); | public byte getBaseline () { return peer.getBaseline(); } |
return peer.getBaselineOffsets(); | return lm.getBaselineOffsets(); | public float[] getBaselineOffsets () { return peer.getBaselineOffsets(); } |
return peer.getBlackBoxBounds(firstEndpoint, secondEndpoint); | if( firstEndpoint < 0 || secondEndpoint > getCharacterCount() ) return new Rectangle2D.Float(); GeneralPath gp = new GeneralPath(); int i = 0; double advance = 0; while( runIndices[i + 1][1] < firstEndpoint ) { advance += runs[i].getLogicalBounds().getWidth(); i++; } int j = 0; if( runIndices[i][1] - runIndices[i][... | public Shape getBlackBoxBounds (int firstEndpoint, int secondEndpoint) { return peer.getBlackBoxBounds(firstEndpoint, secondEndpoint); } |
return peer.getBounds(); | if( boundsCache == null ) boundsCache = getOutline(new AffineTransform()).getBounds(); return boundsCache; | public Rectangle2D getBounds() { return peer.getBounds(); } |
return peer.getCharacterCount(); | return string.length(); | public int getCharacterCount () { return peer.getCharacterCount(); } |
return peer.getCharacterLevel(index); | throw new Error ("not implemented"); | public byte getCharacterLevel (int index) { return peer.getCharacterLevel(index); } |
return peer.getDescent(); | return lm.getDescent(); | public float getDescent () { return peer.getDescent(); } |
return peer.getJustifiedLayout(justificationWidth); | TextLayout newLayout = (TextLayout)clone(); if( hasWhitespace ) newLayout.handleJustify( justificationWidth ); return newLayout; | public TextLayout getJustifiedLayout (float justificationWidth) { return peer.getJustifiedLayout(justificationWidth); } |
return peer.getLeading(); | return lm.getLeading(); | public float getLeading () { return peer.getLeading(); } |
return peer.getLogicalRangesForVisualSelection(firstEndpoint, secondEndpoint); | throw new Error ("not implemented"); | public int[] getLogicalRangesForVisualSelection (TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) { return peer.getLogicalRangesForVisualSelection(firstEndpoint, secondEndpoint); } |
return getNextLeftHit(offset, DEFAULT_CARET_POLICY); | throw new Error ("not implemented"); | public TextHitInfo getNextLeftHit (int offset) { return getNextLeftHit(offset, DEFAULT_CARET_POLICY); } |
return getNextRightHit(offset, DEFAULT_CARET_POLICY); | throw new Error ("not implemented"); | public TextHitInfo getNextRightHit (int offset) { return getNextRightHit(offset, DEFAULT_CARET_POLICY); } |
return peer.getOutline(tx); | float x = 0f; GeneralPath gp = new GeneralPath(); for(int i = 0; i < runs.length; i++) { gp.append( runs[i].getOutline( x, 0f ), false ); Rectangle2D r = runs[i].getLogicalBounds(); x += r.getWidth(); } if( tx != null ) gp.transform( tx ); return gp; | public Shape getOutline (AffineTransform tx) { return peer.getOutline(tx); } |
return peer.getVisibleAdvance(); | float totalAdvance = 0f; if( runs.length <= 0 ) return 0f; if( !Character.isWhitespace( string.charAt( string.length() -1 ) ) ) return getAdvance(); for(int i = 0; i < runs.length - 1; i++) totalAdvance += runs[i].getLogicalBounds().getWidth(); int lastRun = runIndices[ runs.length - 1 ][0]; int j = string.length... | public float getVisibleAdvance () { return peer.getVisibleAdvance(); } |
return peer.getVisualOtherHit(hit); | throw new Error ("not implemented"); | public TextHitInfo getVisualOtherHit (TextHitInfo hit) { return peer.getVisualOtherHit(hit); } |
peer.handleJustify(justificationWidth); | double deltaW = justificationWidth - getVisibleAdvance(); int nglyphs = 0; int lastNWS = string.length() - 1; while( Character.isWhitespace( string.charAt( lastNWS ) ) ) lastNWS--; int[] wsglyphs = new int[string.length() * 10]; for(int run = 0; run < runs.length; run++ ) for(int i = 0; i < runs[run].getNumGlyphs()... | protected void handleJustify (float justificationWidth) { peer.handleJustify(justificationWidth); } |
deltaW = deltaW / nglyphs; double w = 0; int cws = 0; for(int run = 0; run < runs.length; run++ ) for(int i = 0; i < runs[ run ].getNumGlyphs(); i++ ) { if( wsglyphs[ cws * 2 ] == run && wsglyphs[ cws * 2 + 1 ] == i ) { cws++; w += deltaW; } Point2D p = runs[ run ].getGlyphPosition( i ); p.setLocation( p.getX() + w, p... | protected void handleJustify (float justificationWidth) { peer.handleJustify(justificationWidth); } | |
return peer.hashCode(); | throw new Error ("not implemented"); | public int hashCode () { return peer.hashCode(); } |
return peer.isLeftToRight(); | return leftToRight; | public boolean isLeftToRight () { return peer.isLeftToRight(); } |
return peer.isVertical(); | return false; | public boolean isVertical () { return peer.isVertical(); } |
return peer.toString(); | return "TextLayout [string:"+string+", Font:"+font+" Rendercontext:"+ frc+"]"; | public String toString () { return peer.toString(); } |
area = getComponent().modelToView(getDot()); | area = getComponent().modelToView(dot); | void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care... |
catch (BadLocationException ex) | catch (BadLocationException e) | void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care... |
assert false : "Unexpected bad caret location: " + getDot(); | AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; | void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care... |
assert false : "Unexpected bad caret location: " + dot; return; | AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; | public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { assert false : "Unexpected bad caret location: " + do... |
this.dot = dot; | public void setDot(int dot) { if (dot >= 0) { this.mark = dot; this.dot = dot; handleHighlight(); adjustVisibility(this); appear(); } } | |
area = getComponent().modelToView(getDot()); | area = getComponent().modelToView(dot); | public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException ex) { assert false: "Unexpected bad... |
catch (BadLocationException ex) | catch (BadLocationException e) | public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException ex) { assert false: "Unexpected bad... |
assert false: "Unexpected bad caret location: " + getDot(); | AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; | public void setVisible(boolean v) { if (v != visible) { visible = v; updateTimerStatus(); Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException ex) { assert false: "Unexpected bad... |
data[i+offset] = (double) val; | data[i+offset] = val; | public void setElem(int i, int val) { data[i+offset] = (double) val; } |
public Insets getBorderInsets(Component c, Insets s) | public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets (0,0,0,0); else insets.left = insets.right = insets.top = insets.bottom = 0; if (outsideBorder != null) | public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; } |
if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; | borderInsets = outsideBorder.getBorderInsets(c); insets.left += borderInsets.left; insets.right += borderInsets.right; insets.top += borderInsets.top; insets.bottom += borderInsets.bottom; | public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; } |
if (insideBorder != null) { borderInsets = insideBorder.getBorderInsets(c); insets.left += borderInsets.left; insets.right += borderInsets.right; insets.top += borderInsets.top; insets.bottom += borderInsets.bottom; } return insets; } | public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.