rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) {
result = SEG_MOVETO; break; case 1:
public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(...
return SEG_QUADTO; } throw new NoSuchElementException("quad iterator out of bounds");
return result;
public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(...
public boolean isDone() { return current < 2;
public boolean isDone() { return current >= 2;
public boolean isDone() { return current < 2; }
public boolean intersects(double x, double y, double w, double h) { if (w < 0 || h < 0) { return false; } double x1 = getX1(); double y1 = getY1(); int x1tag = getTag(x1, x, x + w); int y1tag = getTag(y1, y, y + h); if (x1tag == INSIDE && y1tag == INSIDE) { return true; } double x2 = getX2(); double y2 = getY2();...
public boolean intersects(double x, double y, double w, double h) { throw new Error("not implemented");
public boolean intersects(double x, double y, double w, double h) { // Trivially reject non-existant rectangles if (w < 0 || h < 0) { return false; } // Trivially accept if either endpoint is inside the rectangle // (not on its border since it may end there and not go inside) // Record where they lie with resp...
public void subdivide(QuadCurve2D l, QuadCurve2D r) { if (l == null) l = new QuadCurve2D.Double(); if (r == null) r = new QuadCurve2D.Double();
public void subdivide(QuadCurve2D left, QuadCurve2D right) {
public void subdivide(QuadCurve2D l, QuadCurve2D r) { if (l == null) l = new QuadCurve2D.Double(); if (r == null) r = new QuadCurve2D.Double(); // Use empty slots at end to share single array. double[] d = new double[] { getX1(), getY1(), getCtrlX(), getCtrlY(), getX2(), getY2(), 0, 0, 0, 0 }; subdivide(d, 0,...
l.setCurve(d, 0); r.setCurve(d, 4);
if (left != null) left.setCurve(d, 0); if (right != null) right.setCurve(d, 4);
public void subdivide(QuadCurve2D l, QuadCurve2D r) { if (l == null) l = new QuadCurve2D.Double(); if (r == null) r = new QuadCurve2D.Double(); // Use empty slots at end to share single array. double[] d = new double[] { getX1(), getY1(), getCtrlX(), getCtrlY(), getX2(), getY2(), 0, 0, 0, 0 }; subdivide(d, 0,...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return JobKOctets.class; }
public final String getName()
public String getName()
public final String getName() { return "job-k-octets"; }
setDisabledIcon(activeIcon);
disabledIcon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) activeIcon).getImage()));
public Icon getDisabledIcon() { //FIXME: We should be gray-scaling the active icon and then returning it if (disabledIcon == null && activeIcon instanceof ImageIcon) setDisabledIcon(activeIcon); return disabledIcon; }
public void setDisplayedMnemonic(char aChar)
public void setDisplayedMnemonic(int key)
public void setDisplayedMnemonic(char aChar) { if (aChar != mnemonicKey) { char oldKey = mnemonicKey; mnemonicKey = aChar; firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, oldKey, mnemonicKey); if (labelText != null) setDisplayedMnemonicIndex(labelText.indexOf(mnemonicKey)); ...
if (aChar != mnemonicKey) { char oldKey = mnemonicKey; mnemonicKey = aChar; firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, oldKey, mnemonicKey); if (labelText != null) setDisplayedMnemonicIndex(labelText.indexOf(mnemonicKey)); }
setDisplayedMnemonic((char) key);
public void setDisplayedMnemonic(char aChar) { if (aChar != mnemonicKey) { char oldKey = mnemonicKey; mnemonicKey = aChar; firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, oldKey, mnemonicKey); if (labelText != null) setDisplayedMnemonicIndex(labelText.indexOf(mnemonicKey)); ...
else if (e.getClickCount() < 2) return;
public void mouseClicked(MouseEvent e) { Point p = e.getPoint(); int row = table.rowAtPoint(p); int col = table.columnAtPoint(p); if (table.isCellEditable(row, col)) { // If the cell editor is the default editor, we request the // number of the required clicks from i...
rendererPane = new CellRendererPane();
protected void installDefaults() { LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); ...
rendererPane = new CellRendererPane(); table.add(rendererPane);
public void installUI(JComponent comp) { table = (JTable)comp; installDefaults(); installKeyboardActions(); installListeners(); }
bounds.y += table.getRowHeight(r) + rowMargin;
bounds.y += table.getRowHeight(r);
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
bounds.height = table.getRowHeight(r + 1);
bounds.height = table.getRowHeight(r + 1) - rowMargin;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
y += table.getRowHeight(r) + rowMargin;
y += table.getRowHeight(r);
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
table.remove(rendererPane); rendererPane = null; table = null;
public void uninstallUI(JComponent c) { uninstallListeners(); uninstallKeyboardActions(); uninstallDefaults(); }
if (result == null)
if (result == null && parent != null)
public Object get(KeyStroke keystroke) { Object result = inputMap.get(keystroke); if (result == null) result = parent.get(keystroke); return result; }
public InvocationTargetException(Throwable targetException)
protected InvocationTargetException()
public InvocationTargetException(Throwable targetException) { this(targetException, null); }
this(targetException, null);
this(null, null);
public InvocationTargetException(Throwable targetException) { this(targetException, null); }
ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index;
ListDataEvent event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); ListDataListener[] listeners = getListDataListeners();
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHA...
event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); listeners = getListDataListeners(); for (index = 0; index < listeners.length; index++) { listener = (ListDataListener) listeners[index]; listener.contentsChanged(event); }
for (int index = 0; index < listeners.length; index++) listeners[index].contentsChanged(event);
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHA...
ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index;
ListDataEvent event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); ListDataListener[] listeners = getListDataListeners();
protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, start...
event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); listeners = getListDataListeners(); for (index = 0; index < listeners.length; index++) { listener = listeners[index]; listener.intervalAdded(event); }
for (int index = 0; index < listeners.length; index++) listeners[index].intervalAdded(event);
protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, start...
ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index;
ListDataEvent event = new ListDataEvent(source, ListDataEvent.INTERVAL_REMOVED, startIndex, endIndex); ListDataListener[] listeners = getListDataListeners();
protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REM...
event = new ListDataEvent(source, ListDataEvent.INTERVAL_REMOVED, startIndex, endIndex); listeners = getListDataListeners(); for (index = 0; index < listeners.length; index++) { listener = listeners[index]; listener.intervalRemoved(event); }
for (int index = 0; index < listeners.length; index++) listeners[index].intervalRemoved(event);
protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REM...
if (input instanceof cdrBufInput)
if (input instanceof BufferredCdrInput)
public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); if (input instanceof cdrBufInput) { // Highly probable. value.profile_data = ((cdrBufInput) input).read_sequence(); } else { value.profile_da...
value.profile_data = ((cdrBufInput) input).read_sequence();
value.profile_data = ((BufferredCdrInput) input).read_sequence();
public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); if (input instanceof cdrBufInput) { // Highly probable. value.profile_data = ((cdrBufInput) input).read_sequence(); } else { value.profile_da...
if (output instanceof cdrBufOutput)
if (output instanceof BufferedCdrOutput)
public static void write(OutputStream output, TaggedProfile value) { output.write_long(value.tag); if (output instanceof cdrBufOutput) { // Highly probable. output.write_long(value.profile_data.length); try { output.write(value.profile_data); } catc...
String hexVal = val1.substring(1);
String hexVal = val1.substring(1).trim(); try {
public static Color convertValue(String value) { Color color; String val1 = value.toLowerCase(); if (val1.charAt(0) != '#') val1 = (String) COLOR_MAP.get(val1); if (val1 != null) { String hexVal = val1.substring(1); int rgb = Integer.parseInt(hexVal, 16); color = new Color(...
} catch (NumberFormatException ex) { color = Color.BLACK; }
public static Color convertValue(String value) { Color color; String val1 = value.toLowerCase(); if (val1.charAt(0) != '#') val1 = (String) COLOR_MAP.get(val1); if (val1 != null) { String hexVal = val1.substring(1); int rgb = Integer.parseInt(hexVal, 16); color = new Color(...
public InvalidNameException (String msg)
public InvalidNameException ()
public InvalidNameException (String msg) { super (msg); }
super (msg);
super ();
public InvalidNameException (String msg) { super (msg); }
onInitialize();
AccessController.doPrivileged(new PrivilegedAction() { public Object run() { onInitialize(); return null; } });
private final int incRefCount() { final boolean initialize; final int rc; synchronized (initCloseLock) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDevice dev = (JNodeFrameBufferDevice) GraphicsEnvironment .getLo...
break; case SCALE_AREA_AVERAGING: filter = new AreaAveragingScaleFilter(width, height); break; case SCALE_SMOOTH: throw new Error("SCALE_SMOOTH: not implemented"); default: throw new Error("Unknown flag or not implemented: " + flags);
public Image getScaledInstance(int width, int height, int flags) { ImageFilter filter; switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: filter = new ReplicateScaleFilter(width, height); break; case SCALE_AREA_AVERAGING: filter = new AreaAveragingScaleFilter(wid...
public abstract void addConsumer(ImageConsumer ic);
void addConsumer(ImageConsumer ic);
public abstract void addConsumer(ImageConsumer ic);
public abstract boolean isConsumer(ImageConsumer ic);
boolean isConsumer(ImageConsumer ic);
public abstract boolean isConsumer(ImageConsumer ic);
public abstract void removeConsumer(ImageConsumer ic);
void removeConsumer(ImageConsumer ic);
public abstract void removeConsumer(ImageConsumer ic);
public abstract void requestTopDownLeftRightResend(ImageConsumer ic);
void requestTopDownLeftRightResend(ImageConsumer ic);
public abstract void requestTopDownLeftRightResend(ImageConsumer ic);
public abstract void startProduction(ImageConsumer ic);
void startProduction(ImageConsumer ic);
public abstract void startProduction(ImageConsumer ic);
public abstract void imageComplete(int status);
void imageComplete(int status);
public abstract void imageComplete(int status);
hwCursor.setCursorPosition(x, y);
hwCursor.setCursorPosition(0, 0);
public MouseHandler(Device fbDevice, Dimension screenSize) { HardwareCursorAPI hwCursor = null; Device pointerDevice = null; PointerAPI pointerAPI = null; try { hwCursor = (HardwareCursorAPI) fbDevice .getAPI(HardwareCursorAPI.class); } catch (ApiNotFoundException ex) { log.info("No hardware-cursor found ...
{
public static final byte[] I2OSP(final BigInteger s, final int k) { byte[] result = s.toByteArray(); if (result.length < k) { final byte[] newResult = new byte[k]; System.arraycopy(result, 0, newResult, k - result.length, result.length); result = newResult; } else if (result.l...
}
public static final byte[] I2OSP(final BigInteger s, final int k) { byte[] result = s.toByteArray(); if (result.length < k) { final byte[] newResult = new byte[k]; System.arraycopy(result, 0, newResult, k - result.length, result.length); result = newResult; } else if (result.l...
Unsafe.debug("<mark/>");
if (verbose) { Unsafe.debug("<mark/>"); }
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
Unsafe.debug("<sweep/>");
if (verbose) { Unsafe.debug("<sweep/>"); }
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
Unsafe.debug("<cleanup/>");
if (verbose) { Unsafe.debug("<cleanup/>"); }
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
Unsafe.debug("<verify/>");
if (verbose) { Unsafe.debug("<verify/>"); }
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
Unsafe.debug("</gc free="); Unsafe.debug(heapManager.getFreeMemory()); Unsafe.debug("/>"); if (debug) { System.out.println(stats);
if (verbose) { Unsafe.debug("</gc free="); Unsafe.debug(heapManager.getFreeMemory()); Unsafe.debug("/>"); if (debug) { System.out.println(stats); }
final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); helper.stopThreadsAtSafePoint(); ...
return ((offset < buffer.length) && (buffer[ offset] > 0));
return ((offset < buffer.length) && LittleEndian.getUInt8(buffer, offset) > 0);
public Iterator<FSEntry> iterator() throws IOException { return new Iterator<FSEntry>() { int offset = 0; final EntryRecord parent = ISO9660Directory.this.entry .getCDFSentry(); final byte[] buffer = parent.getExtentData(); public boolean hasNext...
return ((offset < buffer.length) && (buffer[ offset] > 0));
return ((offset < buffer.length) && LittleEndian.getUInt8(buffer, offset) > 0);
public boolean hasNext() { return ((offset < buffer.length) && (buffer[ offset] > 0)); }
public abstract void dispose();
void dispose();
public abstract void dispose();
paintFocus(g, tr, null);
paintFocus(g, tr, c.getSize());
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); ButtonModel m = b.getModel(); Icon currentIcon = null; if (m.isSelected()...
return "ToggleButton";
return "ToggleButton.";
protected String getPropertyPrefix() { return "ToggleButton"; }
return null;
return getMinimumSize();
public Dimension getMinimumSize(int s) { return null; }
return null;
return getPreferredSize();
public Dimension getPreferredSize(int s) { return null; }
public String getItem(int index) { return ((String) items.elementAt(index)); }
getItem(int index) { return((String)items.elementAt(index)); }
public String getItem(int index) { return ((String) items.elementAt(index)); }
public abstract void clear();
void clear();
public abstract void clear();
public abstract void setMultipleSelections(boolean multi);
void setMultipleSelections(boolean multi);
public abstract void setMultipleSelections(boolean multi);
BootLog.info("Starting Application Processor " + cpu.getId());
Unsafe.debug("Starting Application Processor " + cpu.getIdString());
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); BootLog.info("Starting Application Processor " + cpu.getId()); // First force a load of CPUID cpu.getCPUID(); // Detect and start logical CPU's try { detectAndst...
Unsafe.debug("Running normal threads on " + cpu.getIdString()); cpu.getIdleThread().run();
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); BootLog.info("Starting Application Processor " + cpu.getId()); // First force a load of CPUID cpu.getCPUID(); // Detect and start logical CPU's try { detectAndst...
BootLog.info("Adding logical CPU 0x" + NumberUtils.hex(logId, 2));
Unsafe.debug("Adding logical CPU 0x" + NumberUtils.hex(logId, 2));
static final void detectAndstartLogicalProcessors(ResourceManager rm) throws ResourceNotFreeException { final VmX86Processor cpu = (VmX86Processor) current(); if (cpu.logical) { return; } final X86CpuID cpuid = (X86CpuID) cpu.getCPUID(); if (!cpuid.hasFeature...
this.stackEnd = ((VmX86Thread)currentThread).getStackEnd().toAddress();
protected final void setupStructures() { // Clone GDT this.gdt = new GDT(); setupGDT(gdt); // Create user stack final byte[] userStack = new byte[VmThread.DEFAULT_STACK_SLOTS * getArchitecture().getReferenceSize()]; setupUserStack(userStack); this.currentThread = cre...
BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " + NumberUtils.hex(me.getId(), 2));
Unsafe.debug("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " + NumberUtils.hex(me.getId(), 2) + "\n");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
BootLog.info("Enabling APIC current state " + apic.isEnabled());
Unsafe.debug("Enabling APIC: current state " + apic.isEnabled() + "\n");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
BootLog.info("Sending INIT IPI");
Unsafe.debug("Sending INIT IPI\n");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
BootLog.info("Sending INIT-DeAssert IPI");
Unsafe.debug("Sending INIT-DeAssert IPI\n");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
BootLog.info("Sending STARTUP IPI");
Unsafe.debug("Sending STARTUP IPI to " + getId() + "\n");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
Unsafe.debug("X86 CPU Start finished\n");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = current(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId(), 2) + " from " ...
public abstract void childResized(int width, int height);
void childResized(int width, int height);
public abstract void childResized(int width, int height);
public abstract int getHScrollbarHeight();
int getHScrollbarHeight();
public abstract int getHScrollbarHeight();
public abstract int getVScrollbarWidth();
int getVScrollbarWidth();
public abstract int getVScrollbarWidth();
public abstract void setScrollPosition(int h, int v);
void setScrollPosition(int h, int v);
public abstract void setScrollPosition(int h, int v);
public abstract void setUnitIncrement(Adjustable item, int inc);
void setUnitIncrement(Adjustable item, int inc);
public abstract void setUnitIncrement(Adjustable item, int inc);
public abstract void setValue(Adjustable item, int value);
void setValue(Adjustable item, int value);
public abstract void setValue(Adjustable item, int value);
return (int)interval;
return delay;
public int getDelay() { return (int)interval; }
toolTip = new JToolTip(toolTipText);
{ toolTip = new JToolTip(); toolTip.setTipText(toolTipText); }
public JToolTip createToolTip() { if (toolTip == null) toolTip = new JToolTip(toolTipText); return toolTip; }
return new Popup.JWindowPopup(owner, contents, x, y);
Popup popup = null; boolean lightweightEnabled = true; if (contents instanceof JPopupMenu) { JPopupMenu menu = (JPopupMenu) contents; lightweightEnabled = menu.isLightWeightPopupEnabled(); } JRootPane root = SwingUtilities.getRootPane(owner); Point rootLoc = root.getLocationOnScreen(); Dimension contentsSize = c...
public Popup getPopup(Component owner, Component contents, int x, int y) { return new Popup.JWindowPopup(owner, contents, x, y); }
private static synchronized HashMap timezones()
static synchronized HashMap timezones()
private static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0....
public String[] [] getZoneStrings () { return zoneStrings; }
private String[][] getZoneStrings(ResourceBundle res) { try { int index = 0; String data = res.getString("zoneStrings"); String[] zones = data.split("\u00a9"); String[][] array = new String[zones.length][]; for (int a = 0; a < zones.length; ++a) array[a] = zones[a].split("\u00ae"); return array; } catch (MissingResourc...
public String[] [] getZoneStrings () { return zoneStrings; }
if (DEBUG) debug ("checkExplicitPolicy depth=" + depth); for (Iterator it = explicitPolicies.iterator(); it.hasNext(); )
if (Configuration.DEBUG) log.fine("checkExplicitPolicy depth=" + depth); for (Iterator it = explicitPolicies.iterator(); it.hasNext();)
private boolean checkExplicitPolicy (int depth, List explicitPolicies) { if (DEBUG) debug ("checkExplicitPolicy depth=" + depth); for (Iterator it = explicitPolicies.iterator(); it.hasNext(); ) { int[] i = (int[]) it.next(); int caDepth = i[0]; int limit = i[1]; if (DEBUG) debu...
if (DEBUG) debug (" caDepth=" + caDepth + " limit=" + limit);
if (Configuration.DEBUG) log.fine(" caDepth=" + caDepth + " limit=" + limit);
private boolean checkExplicitPolicy (int depth, List explicitPolicies) { if (DEBUG) debug ("checkExplicitPolicy depth=" + depth); for (Iterator it = explicitPolicies.iterator(); it.hasNext(); ) { int[] i = (int[]) it.next(); int caDepth = i[0]; int limit = i[1]; if (DEBUG) debu...
{ policyConstraints.add (new int[] { p.length-i, constr.getRequireExplicitPolicy() }); } updatePolicyTree(p[i], rootNode, p.length-i, (PKIXParameters) params, checkExplicitPolicy (p.length-i, policyConstraints));
policyConstraints.add(new int[] { p.length - i, constr.getRequireExplicitPolicy() }); updatePolicyTree(p[i], rootNode, p.length - i, (PKIXParameters) params, checkExplicitPolicy(p.length - i, policyConstraints));
public CertPathValidatorResult engineValidate(CertPath path, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException { if (!(params instanceof PKIXParameters)) throw new InvalidAlgorithmParameterException("not a PKIXPa...
if (DEBUG) debug("updatePolicyTree depth == " + depth);
if (Configuration.DEBUG) log.fine("updatePolicyTree depth == " + depth);
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
if (DEBUG) debug("visiting node == " + p);
if (Configuration.DEBUG) log.fine("visiting node == " + p);
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
if (DEBUG) debug("added node");
if (Configuration.DEBUG) log.fine("added node");
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
if (DEBUG) debug("skipped node");
if (Configuration.DEBUG) log.fine("skipped node");
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
if (DEBUG) debug("nodes are == " + nodes); if (DEBUG) debug("cert policies are == " + cp); for (Iterator it = nodes.iterator(); it.hasNext(); )
if (Configuration.DEBUG) { log.fine("nodes are == " + nodes); log.fine("cert policies are == " + cp); } for (Iterator it = nodes.iterator(); it.hasNext();)
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
if (DEBUG) debug("adding policies to " + parent); for (Iterator it2 = cp.iterator(); it2.hasNext(); )
if (Configuration.DEBUG) log.fine("adding policies to " + parent); for (Iterator it2 = cp.iterator(); it2.hasNext();)
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
if (DEBUG) debug("trying to add policy == " + policy); if (policy.toString().equals(ANY_POLICY) && params.isAnyPolicyInhibited())
if (Configuration.DEBUG) log.fine("trying to add policy == " + policy); if (policy.toString().equals(ANY_POLICY) && params.isAnyPolicyInhibited())
private static void updatePolicyTree(X509Certificate cert, PolicyNodeImpl root, int depth, PKIXParameters params, boolean explicitPolicy) throws CertPathValidatorException { if (DEBUG) debug("updatePolicyTree depth == " + depth); Se...
final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(IOPORTS_PERM); }
public IOResource claimIOResource(ResourceOwner owner, int startPort, int length) throws ResourceNotFreeException { return IOResourceImpl.claimIOResource(owner, startPort, length); }
public MemoryResourceImpl(Object arrayData, int length, int elementSize) { super(BYTE_ARRAY_OWNER); this.parent = null; this.data = arrayData; this.size = Extent.fromIntZeroExtend(length * elementSize); this.start = VmMagic.getArrayData(arrayData); this.offset = start.toWord().toOffset(); this.end = start.add(length * ...
private MemoryResourceImpl(MemoryResourceImpl parent, ResourceOwner owner, Address start, Extent size) { super(owner); this.parent = parent; this.start = start; if (parent != null) { this.offset = start.toWord().sub(parent.start.toWord()).toOffset(); } else { this.offset = start.toWord().toOffset(); } this.end = start....
public MemoryResourceImpl(Object arrayData, int length, int elementSize) { super(BYTE_ARRAY_OWNER); this.parent = null; this.data = arrayData; this.size = Extent.fromIntZeroExtend(length * elementSize); this.start = VmMagic.getArrayData(arrayData); this.offset = start.toWord().toOffset(); this.end = start.add(l...
this.data = null;
public MemoryResourceImpl(Object arrayData, int length, int elementSize) { super(BYTE_ARRAY_OWNER); this.parent = null; this.data = arrayData; this.size = Extent.fromIntZeroExtend(length * elementSize); this.start = VmMagic.getArrayData(arrayData); this.offset = start.toWord().toOffset(); this.end = start.add(l...
if (currentScrollLocation == tabCount - 1) incrButton.setEnabled(false);
int width = 0; for (int i = currentScrollLocation - 1; i < tabCount; i++) width += rects[i].width; if (width < viewport.getWidth()) currentScrollLocation--;
public void mousePressed(MouseEvent e) { int x = e.getX(); int y = e.getY(); int tabCount = tabPane.getTabCount(); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { if (e.getSource() == incrButton) { if (++currentScrollLocation >= tabCount) currentScroll...
tabPane.layout();
tabPane.revalidate();
public void mousePressed(MouseEvent e) { int x = e.getX(); int y = e.getY(); int tabCount = tabPane.getTabCount(); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { if (e.getSource() == incrButton) { if (++currentScrollLocation >= tabCount) currentScroll...
width = calculateMaxTabWidth(tabPlacement) * tabPane.getTabCount(); calcRect = tabPane.getParent().getBounds(); width = Math.max(width, componentWidth);
int min = calculateMaxTabWidth(tabPlacement); width = Math.max(min, componentWidth);
protected Dimension calculateSize(boolean minimum) { int tabPlacement = tabPane.getTabPlacement(); int width = 0; int height = 0; int componentHeight = 0; int componentWidth = 0; Component c; Dimension dims; for (int i = 0; i < tabPane.getTabCount(); i++) { c = ta...
height = calculateMaxTabHeight(tabPlacement) * tabPane.getTabCount(); calcRect = tabPane.getParent().getBounds(); height = Math.max(height, componentHeight);
int min = calculateMaxTabHeight(tabPlacement); height = Math.max(min, componentHeight);
protected Dimension calculateSize(boolean minimum) { int tabPlacement = tabPane.getTabPlacement(); int width = 0; int height = 0; int componentHeight = 0; int componentWidth = 0; Component c; Dimension dims; for (int i = 0; i < tabPane.getTabCount(); i++) { c = ta...
+ (runCount - i) * tabRunOverlay;
- (runCount - i) * tabRunOverlay;
protected void calculateTabRects(int tabPlacement, int tabCount) { if (tabCount == 0) return; assureRectsCreated(tabCount); FontMetrics fm = getFontMetrics(); SwingUtilities.calculateInnerArea(tabPane, calcRect); Insets tabAreaInsets = getTabAreaInsets(tabPlacement); Insets insets =...
if (selectedRun == 1 || selectedRun == -1)
if (runCount == 1 || selectedRun == 1 || selectedRun == -1)
protected void rotateTabRuns(int tabPlacement, int selectedRun) { if (selectedRun == 1 || selectedRun == -1) return; int[] newTabRuns = new int[tabRuns.length]; int currentRun = selectedRun; int i = 1; do { newTabRuns[i] = tabRuns[currentRun]; currentRun = getNextTabRun(curren...