rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public void update(Graphics g) { | public void update(Graphics g) { if (!isLightweight()) { Rectangle clip = g.getClipBounds(); if (clip == null) g.clearRect(0, 0, width, height); else g.clearRect(clip.x, clip.y, clip.width, clip.height); } | public void update(Graphics g) { paint(g); } |
throw new UnsupportedOperationException("not implemented yet"); | SampleModel sm = new BandedSampleModel(dataType, w, h, bands); return createWritableRaster(sm, location); | public static WritableRaster createBandedRaster(int dataType, int w, int h, int bands, Point location) { // FIXME: Implement; throw new UnsupportedOperationException("not implemented yet"); } |
public Object getChild(Object value0, int value1) | public Object getChild(Object node, int idx) | public Object getChild(Object value0, int value1) { return null; // TODO } |
return null; | if (node instanceof TreeNode) return ((TreeNode)node).getChildAt(idx); else return null; | public Object getChild(Object value0, int value1) { return null; // TODO } |
public int getChildCount(Object value0) | public int getChildCount(Object node) | public int getChildCount(Object value0) { return 0; // TODO } |
return 0; | if (node instanceof TreeNode) return ((TreeNode)node).getChildCount(); else return 0; | public int getChildCount(Object value0) { return 0; // TODO } |
public boolean isLeaf(Object value0) | public boolean isLeaf(Object node) | public boolean isLeaf(Object value0) { return false; // TODO } |
return false; | if (node instanceof TreeNode) return ((TreeNode)node).isLeaf(); else return true; | public boolean isLeaf(Object value0) { return false; // TODO } |
return(new StringBufferInputStream(data)); | if (DataFlavor.plainTextFlavor == flavor) return(new StringReader(data)); else return data; | getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException{ if (!isDataFlavorSupported(flavor)) throw new UnsupportedFlavorException(flavor); return(new StringBufferInputStream(data));} |
public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke) { return null; } | public ActionListener getActionForKeyStroke(KeyStroke ks) { Object cmd = getInputMap().get(ks); if (cmd != null) { if (cmd instanceof ActionListenerProxy) return (ActionListenerProxy) cmd; else if (cmd instanceof String) return getActionMap().get(cmd); } return null; } | public ActionListener getActionForKeyStroke(KeyStroke aKeyStroke) { return null; } |
public int getConditionForKeyStroke(KeyStroke aKeyStroke) { return UNDEFINED_CONDITION; } | public int getConditionForKeyStroke(KeyStroke ks) { if (inputMap_whenFocused != null && inputMap_whenFocused.get(ks) != null) return WHEN_FOCUSED; else if (inputMap_whenAncestorOfFocused != null && inputMap_whenAncestorOfFocused.get(ks) != null) return WHEN_ANCESTOR_OF_FOCUSED_COMPONENT; else if (inputMap_whenInFocused... | public int getConditionForKeyStroke(KeyStroke aKeyStroke) { return UNDEFINED_CONDITION; } |
if (inputMap_whenFocused != null) inputMap_whenFocused.clear(); if (inputMap_whenAncestorOfFocused != null) inputMap_whenAncestorOfFocused.clear(); if (inputMap_whenInFocusedWindow != null) inputMap_whenInFocusedWindow.clear(); if (actionMap != null) actionMap.clear(); | public void resetKeyboardActions() { } | |
public void setBorder(Border border) | public void setBorder(Border newBorder) | public void setBorder(Border border) { this.border = border; revalidate(); repaint(); } |
this.border = border; | Border oldBorder = border; border = newBorder; firePropertyChange("border", oldBorder, newBorder); | public void setBorder(Border border) { this.border = border; revalidate(); repaint(); } |
public void setEnabled(boolean e) | public void setEnabled(boolean enable) | public void setEnabled(boolean e) { super.setEnabled(e); revalidate(); repaint(); } |
super.setEnabled(e); | boolean oldEnabled = isEnabled(); super.setEnabled(enable); firePropertyChange("enabeld", oldEnabled, enable); | public void setEnabled(boolean e) { super.setEnabled(e); revalidate(); repaint(); } |
firePropertyChange("maximumSize", oldMaximumSize, maximumSize); | public void setMaximumSize(Dimension max) { maximumSize = max; revalidate(); repaint(); } | |
firePropertyChange("minimumSize", oldMinimumSize, minimumSize); | public void setMinimumSize(Dimension min) { minimumSize = min; revalidate(); repaint(); } | |
firePropertyChange("opaque", oldOpaque, opaque); | public void setOpaque(boolean isOpaque) { opaque = isOpaque; revalidate(); repaint(); } | |
firePropertyChange("preferredSize", oldPreferredSize, preferredSize); | public void setPreferredSize(Dimension pref) { preferredSize = pref; } | |
firePropertyChange("UI", oldUI, newUI); | protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ui = newUI; if (ui != null) ui.installUI(this); revalidate(); repaint(); } | |
String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; | int len = LocaleHelper.getLocaleCount(); availableLocales = new Locale[len]; | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio... |
for (int i = 0; i < localeNames.length; i++) | for (int i = 0; i < len; i++) | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio... |
String name = localeNames[i]; | String name = LocaleHelper.getLocaleName(i); | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio... |
return availableLocales; | return (Locale[]) availableLocales.clone(); | public static synchronized Locale[] getAvailableLocales() { if (availableLocales == null) { String[] localeNames = LocaleData.localeNames; availableLocales = new Locale[localeNames.length]; for (int i = 0; i < localeNames.length; i++) { String language; String regio... |
return countryCache; | return (String[]) countryCache.clone(); | public static String[] getISOCountries() { if (countryCache == null) { countryCache = getISOStrings("territories"); } return countryCache; } |
return languageCache; | return (String[]) languageCache.clone(); | public static String[] getISOLanguages() { if (languageCache == null) { languageCache = getISOStrings("languages"); } return languageCache; } |
public java.awt.Image getIcon(int iconType) { return icons != null ? icons[iconType] : null; | public Image getIcon(int iconType) { return icons != null ? icons[iconType - 1] : null; | public java.awt.Image getIcon(int iconType) { return icons != null ? icons[iconType] : null; } |
protected abstractRecord newInstance(TypeCode oType, TypeCode aType, | protected RecordAny newInstance(TypeCode oType, TypeCode aType, | protected abstractRecord newInstance(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb) { return new gnuDynStruct(oType, aType, aFactory, anOrb); } |
VmClassLoader cl = new VmClassLoader(classesURL, arch); | VmSystemClassLoader cl = new VmSystemClassLoader(classesURL, arch); | private void doExecute() throws BuildException, ClassNotFoundException, IllegalAccessException, IOException { final VmArchitecture arch = getArchitecture(); final int slotSize = arch.getReferenceSize(); VmClassLoader cl = new VmClassLoader(classesURL, arch); VmType.initializeForBootImage(cl); FileWriter fw = new ... |
out.println(cname + "_SIZE equ " + cls.getObjSize()); | out.println(cname + "_SIZE equ " + cls.getObjectSize()); | private void doExecute() throws BuildException, ClassNotFoundException, IllegalAccessException, IOException { final VmArchitecture arch = getArchitecture(); final int slotSize = arch.getReferenceSize(); VmClassLoader cl = new VmClassLoader(classesURL, arch); VmType.initializeForBootImage(cl); FileWriter fw = new ... |
protected AccessibleJToolBar(JToolBar component) { super(component); } | protected AccessibleJToolBar() { } | protected AccessibleJToolBar(JToolBar component) { super(component); // TODO } // AccessibleJToolBar() |
this(null); | public JToolBar() { // TODO } // JToolBar() | |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJToolBar(this); } return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJToolBar(); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJToolBar(this); } // if return accessibleContext; } // getAccessibleContext() |
System.out.println("ui = " + ui); | public ToolBarUI getUI() { return (ToolBarUI) ui; } // getUI() | |
setUI((ToolBarUI) UIManager.get(this)); invalidate(); | setUI((ToolBarUI)UIManager.getUI(this)); | public void updateUI() { setUI((ToolBarUI) UIManager.get(this)); invalidate(); } // updateUI() |
public abstract boolean getExpandedState(TreePath value0); | public abstract boolean getExpandedState(TreePath path); | public abstract boolean getExpandedState(TreePath value0); |
public TreeModel getModel() { return null; } | public TreeModel getModel() { return treeModel; } | public TreeModel getModel() { return null; // TODO } // getModel() |
public NodeDimensions getNodeDimensions() { return null; } | public NodeDimensions getNodeDimensions() { return nodeDimensions; } | public NodeDimensions getNodeDimensions() { return null; // TODO } // getNodeDimensions() |
public abstract TreePath getPathForRow(int value0); | public abstract TreePath getPathForRow(int row); | public abstract TreePath getPathForRow(int value0); |
public abstract int getRowForPath(TreePath value0); | public abstract int getRowForPath(TreePath path); | public abstract int getRowForPath(TreePath value0); |
public int getRowHeight() { return 0; } | public int getRowHeight() { return rowHeight; } | public int getRowHeight() { return 0; // TODO } // getRowHeight() |
public int[] getRowsForPaths(TreePath[] value0) { | public int[] getRowsForPaths(TreePath[] paths) { | public int[] getRowsForPaths(TreePath[] value0) { return null; // TODO } // getRowsForPaths() |
public TreeSelectionModel getSelectionModel() { return null; } | public TreeSelectionModel getSelectionModel() { return treeSelectionModel; } | public TreeSelectionModel getSelectionModel() { return null; // TODO } // getSelectionModel() |
public abstract Enumeration getVisiblePathsFrom(TreePath value0); | public abstract Enumeration getVisiblePathsFrom(TreePath path); | public abstract Enumeration getVisiblePathsFrom(TreePath value0); |
public abstract void invalidatePathBounds(TreePath value0); | public abstract void invalidatePathBounds(TreePath path); | public abstract void invalidatePathBounds(TreePath value0); |
public boolean isRootVisible() { return false; } | public boolean isRootVisible() { return rootVisible; } | public boolean isRootVisible() { return false; // TODO } // isRootVisible() |
public void setModel(TreeModel value0) { } | public void setModel(TreeModel model) { treeModel = model; } | public void setModel(TreeModel value0) { // TODO } // setModel() |
public void setNodeDimensions(NodeDimensions value0) { } | public void setNodeDimensions(NodeDimensions dimensions) { nodeDimensions = dimensions; } | public void setNodeDimensions(NodeDimensions value0) { // TODO } // setNodeDimensions() |
public void setRootVisible(boolean value0) { } | public void setRootVisible(boolean visible) { rootVisible = visible; } | public void setRootVisible(boolean value0) { // TODO } // setRootVisible() |
public void setRowHeight(int value0) { } | public void setRowHeight(int height) { rowHeight = height; } | public void setRowHeight(int value0) { // TODO } // setRowHeight() |
public void setSelectionModel(TreeSelectionModel value0) { } | public void setSelectionModel(TreeSelectionModel model) { treeSelectionModel = model; } | public void setSelectionModel(TreeSelectionModel value0) { // TODO } // setSelectionModel() |
public abstract void treeNodesChanged(TreeModelEvent value0); | public abstract void treeNodesChanged(TreeModelEvent event); | public abstract void treeNodesChanged(TreeModelEvent value0); |
public abstract void treeNodesInserted(TreeModelEvent value0); | public abstract void treeNodesInserted(TreeModelEvent event); | public abstract void treeNodesInserted(TreeModelEvent value0); |
public abstract void treeNodesRemoved(TreeModelEvent value0); | public abstract void treeNodesRemoved(TreeModelEvent event); | public abstract void treeNodesRemoved(TreeModelEvent value0); |
public abstract void treeStructureChanged(TreeModelEvent value0); | public abstract void treeStructureChanged(TreeModelEvent event); | public abstract void treeStructureChanged(TreeModelEvent value0); |
return null; | return new Dimension (getPreferredSize().width, getVisibleRowCount()*getRowHeight()); | public Dimension getPreferredScrollableViewportSize() { return null; } |
if (getParent() instanceof JViewport) return ((JViewport) getParent()).getWidth() > getPreferredSize().width; | public boolean getScrollableTracksViewportHeight() { return false; } | |
if (getParent() instanceof JViewport) return ((JViewport) getParent()).getHeight() > getPreferredSize().height; | public boolean getScrollableTracksViewportWidth() { return false; } | |
EventListener[] ll = listenerList.getListeners(MenuListener.class); | MenuListener[] listeners = getMenuListeners(); | protected void fireMenuSelected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuSelected(menuEvent); } |
for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuSelected(menuEvent); | for (int index = 0; index < listeners.length; ++index) listeners[index].menuSelected(menuEvent); | protected void fireMenuSelected() { EventListener[] ll = listenerList.getListeners(MenuListener.class); for (int i = 0; i < ll.length; i++) ((MenuListener) ll[i]).menuSelected(menuEvent); } |
private final int insertString() { | private int insertString() { | private final int insertString() { short match; int hash = ((ins_h << HASH_SHIFT) ^ window[strstart + (MIN_MATCH -1)]) & HASH_MASK; if (DEBUGGING) { if (hash != (((window[strstart] << (2*HASH_SHIFT)) ^ (window[strstart + 1] << HASH_SHIFT) ^ (window[strstart + 2])) & HASH_MASK)) thro... |
private final void updateHash() { | private void updateHash() { | private final void updateHash() { if (DEBUGGING) System.err.println("updateHash: "+strstart); ins_h = (window[strstart] << HASH_SHIFT) ^ window[strstart + 1]; } |
ch = read(); | private void readName() throws IOException { // Read first name character. int ch = read(); if (ch != -1 && (ch == '_' || ch == '-' || (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9'))) { parseBuffer[tokenEnd] = (char) ch; tokenEnd++; } ... | |
if (o == this) | if (equals(o)) | public int compareTo(Object o) { if (o == this) return 0; int[] components2 = ((OID) o).components; int len = Math.min(components.length, components2.length); for (int i = 0; i < len; i++) { if (components[i] != components2[i]) return (components[i] < components2[i]) ? -1 : 1; ... |
if (this == o) return true; | if (!(o instanceof OID)) return false; | public boolean equals(Object o) { if (this == o) return true; return java.util.Arrays.equals(components, ((OID) o).components); } |
Map.Entry e = (Map.Entry) it.next(); | Map.Entry e = (Map.Entry) it2.next(); | public byte[] getDer() { if (fixed && encoded != null) return (byte[]) encoded.clone(); ArrayList name = new ArrayList(components.size()); for (Iterator it = components.iterator(); it.hasNext(); ) { Map m = (Map) it.next(); if (m.isEmpty()) continue; Set rdn = new Has... |
ch = in.read(); if (ch == -1) return buf.toString(); | private String readAttributeValue(Reader in) throws IOException { StringBuffer buf = new StringBuffer(); int ch = in.read(); if (ch == '#') { while (true) { ch = in.read(); if (('a' <= ch && ch <= 'f') || ('A' <= ch && ch <= 'F') || Character.isDigit... | |
throw new IllegalArgumentException("Wrong format for public keys"); | throw new InvalidParameterException("Wrong format for public keys"); | public PublicKey decodePublicKey(byte[] input) { throw new IllegalArgumentException("Wrong format for public keys"); } |
throw new IllegalArgumentException("Wrong format for public keys"); | throw new InvalidParameterException("Wrong format for public keys"); | public byte[] encodePublicKey(PublicKey key) { throw new IllegalArgumentException("Wrong format for public keys"); } |
public void finalize() | protected void finalize() | public void finalize() throws Throwable { unmapImpl(); } |
final SocketAddress address = new InetSocketAddress(ARG_ADDRESS.getURL(args).getHost(), port); | final SocketAddress address = new InetSocketAddress(ARG_ADDRESS.getAddress(args), port); | public void execute(CommandLine commandLine, InputStream in, PrintStream out, PrintStream err) throws Exception { final ParsedArguments args = HELP_INFO.parse(commandLine.toStringArray()); final int port; if (PARAM_PORT.isSet(args)) { port = ARG_PORT.getInteger(args); } else... |
awtRoot.setLayout(null); awtRoot.add(desktop); final int h = awtRoot.getHeight(); | awtRoot.setLayout(new BorderLayout()); | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ... |
desktop.setBounds(0, 0, w, h - controlBarHeight); awtRoot.add(taskBar); taskBar.setBounds(0, h - controlBarHeight, w, controlBarHeight); | taskBar.setPreferredSize(new Dimension(w, controlBarHeight)); awtRoot.add(desktop, BorderLayout.CENTER); awtRoot.add(taskBar, BorderLayout.SOUTH); | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ... |
System.out.println("taskBar.bounds=" + taskBar.getBounds()); System.out.println("desktop.bounds=" + desktop.getBounds()); | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ... | |
final int dx = 30; final int dy = dx; final JLabel welcomeLbl = new JLabel("Welcome to JNode"); welcomeLbl.setForeground(Color.WHITE); welcomeLbl.setLocation(dx, dy); welcomeLbl.setFont(welcomeLbl.getFont().deriveFont(20.0f)); welcomeLbl.setSize(welcomeLbl.getPreferredSize()); desktop.add(welcomeLbl, (Integer) (JLayere... | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ... | |
awtRoot.setLayout(null); awtRoot.add(desktop); final int h = awtRoot.getHeight(); | awtRoot.setLayout(new BorderLayout()); | public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ... |
desktop.setBounds(0, 0, w, h - controlBarHeight); awtRoot.add(taskBar); taskBar.setBounds(0, h - controlBarHeight, w, controlBarHeight); | taskBar.setPreferredSize(new Dimension(w, controlBarHeight)); awtRoot.add(desktop, BorderLayout.CENTER); awtRoot.add(taskBar, BorderLayout.SOUTH); | public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ... |
System.out.println("taskBar.bounds=" + taskBar.getBounds()); System.out.println("desktop.bounds=" + desktop.getBounds()); | public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ... | |
final int dx = 30; final int dy = dx; final JLabel welcomeLbl = new JLabel("Welcome to JNode"); welcomeLbl.setForeground(Color.WHITE); welcomeLbl.setLocation(dx, dy); welcomeLbl.setFont(welcomeLbl.getFont().deriveFont(20.0f)); welcomeLbl.setSize(welcomeLbl.getPreferredSize()); desktop.add(welcomeLbl, (Integer) (JLayere... | public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ... | |
System.out.println("screenres1: " + ss); System.out.println("screenres2: " + Toolkit.getDefaultToolkit().getScreenSize()); | public void run() { Dimension ss = ((JNodeToolkit) Toolkit.getDefaultToolkit()).changeScreenSize(resolution); AccessController.doPrivileged(new SetPropertyAction("jnode.awt.screensize", resolution)); ctx.adjustDesktopSize(ss.width,... | |
dest.append(negativePrefix, negativePrefixRanges, negativePrefixAttrs); | { dest.append(substituteCurrency(negativePrefix, number), negativePrefixRanges, negativePrefixAttrs); } | private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE... |
dest.append(positivePrefix, positivePrefixRanges, positivePrefixAttrs); | dest.append(substituteCurrency(positivePrefix, number), positivePrefixRanges, positivePrefixAttrs); | private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE... |
dest.append(positivePrefix, positivePrefixRanges, positivePrefixAttrs); | { dest.append(substituteCurrency(positivePrefix, number), positivePrefixRanges, positivePrefixAttrs); } | private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE... |
dest.append(negativeSuffix, negativeSuffixRanges, negativeSuffixAttrs); | { dest.append(substituteCurrency(negativeSuffix, number), negativeSuffixRanges, negativeSuffixAttrs); } | private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE... |
dest.append(positiveSuffix, positiveSuffixRanges, positiveSuffixAttrs); | { dest.append(substituteCurrency(positiveSuffix, number), positiveSuffixRanges, positiveSuffixAttrs); } | private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE... |
long multiplier = 1; | long parsedMultiplier = 1; | public Number parse (String str, ParsePosition pos) { /* * Our strategy is simple: copy the text into separate buffers: one for the int part, * one for the fraction part and for the exponential part. * We translate or omit locale-specific information. * If exponential is sufficiently big we merg... |
if (index + 1 < len && pattern.charAt(index + 1) == '\u00a4') { buf.append(syms.getInternationalCurrencySymbol(), NumberFormat.Field.CURRENCY); index++; } else buf.append(syms.getCurrencySymbol(), NumberFormat.Field.CURRENCY); | buf.append(c); | private int scanFix (String pattern, int index, FormatBuffer buf, String patChars, DecimalFormatSymbols syms, boolean is_suffix) { int len = pattern.length(); boolean quoteStarted = false; buf.clear(); boolean multiplierSet = false; while (index < len) { char c = pattern.charAt(in... |
} | private int scanFix (String pattern, int index, FormatBuffer buf, String patChars, DecimalFormatSymbols syms, boolean is_suffix) { int len = pattern.length(); boolean quoteStarted = false; buf.clear(); boolean multiplierSet = false; while (index < len) { char c = pattern.charAt(in... | |
Line.Info[] getSourceLineInfo(Line.Info info); | Line.Info[] getSourceLineInfo(); | Line.Info[] getSourceLineInfo(Line.Info info); |
Line.Info[] getTargetLineInfo(Line.Info info); | Line.Info[] getTargetLineInfo(); | Line.Info[] getTargetLineInfo(Line.Info info); |
align = 0.0F; | switch (justification) { case StyleConstants.ALIGN_RIGHT: align = 1.0F; break; case StyleConstants.ALIGN_CENTER: case StyleConstants.ALIGN_JUSTIFIED: align = 0.5F; break; case StyleConstants.ALIGN_LEFT: default: align = 0.0F; } | public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = 0.0F; // TODO: Implement according to justification else align = super.getAlignment(axis); return align; } |
SizeRequirements result; if (axis == myAxis) result = calculateMajorAxisRequirements(axis, sr); else result = calculateMinorAxisRequirements(axis, sr); return result; | SizeRequirements[] childReqs = getChildRequirements(axis); return SizeRequirements.getAlignedSizeRequirements(childReqs); | protected SizeRequirements baselineRequirements(int axis, SizeRequirements sr) { SizeRequirements result; if (axis == myAxis) result = calculateMajorAxisRequirements(axis, sr); else result = calculateMinorAxisRequirements(axis, sr); return result... |
if (axis == myAxis) layoutMajorAxis(span, axis, offsets, spans); else layoutMinorAxis(span, axis, offsets, spans); | SizeRequirements[] childReqs = getChildRequirements(axis); SizeRequirements.calculateAlignedPositions(span, requirements[axis], childReqs, offsets, spans); layoutValid[axis] = true; | protected void baselineLayout(int span, int axis, int[] offsets, int[] spans) { if (axis == myAxis) layoutMajorAxis(span, axis, offsets, spans); else layoutMinorAxis(span, axis, offsets, spans); } |
offset++; return array[offset]; | if (count == 0) return DONE; if ((current + 1) >= getEndIndex()) { current = getEndIndex(); return DONE; } current++; return array[current]; | public char next() { offset++; return array[offset]; } |
public long getFramePosition() | public final long getFramePosition() | public long getFramePosition() { return framePosition; } |
public Line getLine() | public final Line getLine() | public Line getLine() { return line; } |
public Type getType() | public final Type getType() | public Type getType() { return type; } |
Insets ins = frame.getInsets(); | Insets ins = getInsets(); | public Graphics getGraphics() { Insets ins = frame.getInsets(); Graphics g = frame.getGraphics(); g.translate(ins.left, ins.top); return g; } |
int selectionForKey(char value0, ComboBoxModel value1); | int selectionForKey(char aKey, ComboBoxModel aModel); | int selectionForKey(char value0, ComboBoxModel value1); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.