rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
g.drawChars(sChar, 0, 1, x+1, cy -2);
if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x+1, cy -2); else g.drawChars(sChar, 0, 1, x+1, cy -2);
public final void drawChar(Graphics2D g) { if (attributePlace && s.getShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y...
g.drawChars(sChar, 0, 1, x, cy -2);
if (sChar[0] == 0x1C) g.drawChars(dupChar, 0, 1, x, cy -2); else g.drawChars(sChar, 0, 1, x, cy -2);
public final void drawChar(Graphics2D g) { if (attributePlace && s.getShowHex()) { Font f = g.getFont(); Font k = f.deriveFont(f.getSize2D()/2); g.setFont(k); g.setColor(s.colorHexAttr); char[] a = Integer.toHexString(attr).toCharArray(); g.drawChars(a, 0, 1, x, y...
protected void setPrehelpState(boolean setErrorCode) {
protected void setPrehelpState(boolean setErrorCode, boolean lockKeyboard, boolean unlockIfLocked) {
protected void setPrehelpState(boolean setErrorCode) { statusErrorCode = setErrorCode; setKeyboardLocked(setErrorCode); bufferedKeys = null; keysBuffered = false; setKBIndicatorOff(); }
setKeyboardLocked(setErrorCode);
if (isKeyboardLocked() && unlockIfLocked) setKeyboardLocked(false); else setKeyboardLocked(lockKeyboard);
protected void setPrehelpState(boolean setErrorCode) { statusErrorCode = setErrorCode; setKeyboardLocked(setErrorCode); bufferedKeys = null; keysBuffered = false; setKBIndicatorOff(); }
setPrehelpState(true);
setPrehelpState(true,true,false);
public void setStatus(byte attr,byte value,String s) { statusString = s; // draw the status information bi.setStatus(attr,value,s, fmWidth, fmHeight, lm, font, colorBg, ...
setPrehelpState(false);
setPrehelpState(false,true,true);
public void setStatus(byte attr,byte value,String s) { statusString = s; // draw the status information bi.setStatus(attr,value,s, fmWidth, fmHeight, lm, font, colorBg, ...
} setKBIndicatorOff();
setCursorOn(); } else { setPrehelpState(false,isKeyboardLocked(),false); }
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ...
if (delegate == null) throw new IllegalArgumentException("Null 'delegate' argument.");
public IconUIResource(Icon delegate) { this.delegate = delegate; }
else { if (sess.getCount() == 0) System.exit(0); }
void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ...
if (!initStageDone) super.addImpl(comp, constraints, index);
if (isRootPaneCheckingEnabled()) getContentPane().add(comp,constraints,index);
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
{ if (isRootPaneCheckingEnabled()) throw new Error("rootPaneChecking is enabled - adding components " + "disallowed."); getContentPane().add(comp,constraints,index); }
super.addImpl(comp, constraints, index);
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
initStageDone = true;
setRootPaneCheckingEnabled(true);
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); enableEvents(AWTEvent.WINDOW_EVENT_MASK); getRootPane(); // will do set/create // We're now done the init stage. initStageDone = true; }
if (initStageDone) {
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
throw new Error("Cannot set layout. Use getContentPane().setLayout()" + " instead.");
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
}
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane. if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLay...
hostFile.setText(ftpProtocol.getFullFileName(hostFile.getText()));
public void fileInfoReceived(FTPStatusEvent statusevent) { if (allFields.isSelected()) { doTransfer(); } else { selectFields(); } }
this(SwingConstants.HORIZONTAL);
BasicHorizontalLayoutManager() { // Nothing to do here. }
return containerSize.width - insets.left - insets.right;
int size; if (axis == SwingConstants.HORIZONTAL) size = containerSize.width - insets.left - insets.right; else size = containerSize.height - insets.top - insets.bottom; return size;
protected int getAvailableSize(Dimension containerSize, Insets insets) { return containerSize.width - insets.left - insets.right; }
return insets.left; return 0;
{ if (axis == SwingConstants.HORIZONTAL) loc = insets.left; else loc = insets.top; } return loc;
protected int getInitialLocation(Insets insets) { if (insets != null) return insets.left; return 0; }
return dims.width; return 0;
size = dims.height; } return size;
protected int getPreferredSizeOfComponent(Component c) { Dimension dims = c.getPreferredSize(); if (dims != null) return dims.width; return 0; }
return c.getWidth();
int size; if (axis == SwingConstants.HORIZONTAL) size = c.getHeight(); else size = c.getWidth(); return size;
protected int getSizeOfComponent(Component c) { return c.getWidth(); }
Insets insets = target.getInsets(); int height = 0; int width = 0;
int primary = 0; int secondary = 0;
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue;...
if (components[i] == null) continue; Dimension dims = components[i].getMinimumSize(); if (dims != null)
if (components[i] != null)
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue;...
width += dims.width; height = Math.max(height, dims.height);
Dimension dims = components[i].getMinimumSize(); primary += axis == SwingConstants.HORIZONTAL ? dims.width : dims.height; int sec = axis == SwingConstants.HORIZONTAL ? dims.height : dims.width; secondary = Math.max(sec, secondary);
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue;...
return new Dimension(width, height);
int width = axis == SwingConstants.HORIZONTAL ? primary : secondary; int height = axis == SwingConstants.VERTICAL ? secondary : primary; Insets i = splitPane.getInsets(); dim.setSize(width + i.left + i.right, height + i.top + i.bottom);
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue;...
return null;
return dim;
public Dimension minimumLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continue;...
return dims.width;
if (axis == SwingConstants.HORIZONTAL) size = dims.width;
int minimumSizeOfComponent(int index) { Dimension dims = components[index].getMinimumSize(); if (dims != null) return dims.width; else return 0; }
return 0;
size = dims.height; return size;
int minimumSizeOfComponent(int index) { Dimension dims = components[index].getMinimumSize(); if (dims != null) return dims.width; else return 0; }
Insets insets = target.getInsets(); int height = 0; int width = 0;
int primary = 0; int secondary = 0;
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu...
if (components[i] == null) continue; Dimension dims = components[i].getPreferredSize(); if (dims != null)
if (components[i] != null)
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu...
width += dims.width; if (!(components[i] instanceof BasicSplitPaneDivider)) height = Math.max(height, dims.height);
Dimension dims = components[i].getPreferredSize(); primary += axis == SwingConstants.HORIZONTAL ? dims.width : dims.height; int sec = axis == SwingConstants.HORIZONTAL ? dims.height : dims.width; secondary = Math.max(sec, secondary);
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu...
return new Dimension(width, height);
int width = axis == SwingConstants.HORIZONTAL ? primary : secondary; int height = axis == SwingConstants.VERTICAL ? secondary : primary; Insets i = splitPane.getInsets(); dim.setSize(width + i.left + i.right, height + i.top + i.bottom);
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu...
return null;
return dim;
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu...
int w = size; int h = containerSize.height - insets.top - insets.bottom; int x = location; int y = insets.top; c.setBounds(x, y, w, h);
if (insets != null) { if (axis == SwingConstants.HORIZONTAL) c.setBounds(location, insets.top, size, containerSize.height - insets.top - insets.bottom); else c.setBounds(insets.left, location, containerSize.width - insets.left - insets.right, size); } else { if (axis == SwingConstants.HORIZONTAL) c.setBounds(location, ...
protected void setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize) { int w = size; int h = containerSize.height - insets.top - insets.bottom; int x = location; int y = insets.top; c.setBounds(x, y, w, h); ...
resetSizeAt(2);
protected void updateComponents() { Component left = splitPane.getLeftComponent(); Component right = splitPane.getRightComponent(); if (left != null) { components[0] = left; resetSizeAt(0); } if (right != null) { components[1] = right; resetSizeAt(1); } ...
splitPane.setDividerSize(UIManager.getInt("SplitPane.dividerSize"));
dividerSize = UIManager.getInt("SplitPane.dividerSize"); splitPane.setDividerSize(dividerSize); divider.setDividerSize(dividerSize);
protected void installDefaults() { LookAndFeel.installColors(splitPane, "SplitPane.background", "SplitPane.foreground"); LookAndFeel.installBorder(splitPane, "SplitPane.border"); divider = createDefaultDivider(); divider.setBorder(UIManager.getBorder("SplitPaneDivider.border"...
if (sequence - 1 > 0) setTitle("tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else setTitle("tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer);
private void setTitle() { if (sequence - 1 > 0) setTitle("tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else setTitle("tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); if (getSessionAt(selectedIndex) != null && getSes...
setTitle(getTitle() + " - " + getSessionAt(selectedIndex).getAllocDeviceName());
setTitle(getSessionAt(selectedIndex).getAllocDeviceName()); if (sequence - 1 > 0) setTitle(getTitle() + " - tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else setTitle(getTitle() + " - tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer);
private void setTitle() { if (sequence - 1 > 0) setTitle("tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); else setTitle("tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer); if (getSessionAt(selectedIndex) != null && getSes...
setTitle();
public void stateChanged(ChangeEvent e) { JTabbedPane p = (JTabbedPane)e.getSource(); p.setForegroundAt(selectedIndex,Color.black); p.setIconAt(selectedIndex,unfocused); Session sg = (Session)p.getComponentAt(selectedIndex); sg.setVisible(false); sg = (Session)p.getSelectedComponent(); ...
public void connect(Stub self, javax.rmi.ORB orb)
public void connect(Stub self, ORB orb)
public void connect(Stub self, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for StubDelegate"); }
throw new Error("Not implemented for StubDelegate");
connect(self, orb, null);
public void connect(Stub self, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for StubDelegate"); }
public boolean equals(Stub self, Object obj)
public boolean equals(Stub self, java.lang.Object obj)
public boolean equals(Stub self, Object obj) { if(self == null || obj == null) return self == obj; if(!(obj instanceof Stub)) return false; return self.hashCode() == ((Stub)obj).hashCode(); }
if(self == null || obj == null) return self == obj; if(!(obj instanceof Stub)) return false; return self.hashCode() == ((Stub)obj).hashCode();
if (obj instanceof ObjectImpl) { ObjectImpl other = (ObjectImpl) obj; Delegate d1 = other._get_delegate(); Delegate d2 = self._get_delegate(); if (d1 == null || d2 == null) return d1 == d2; else return d1.equals(d2); } else return false;
public boolean equals(Stub self, Object obj) { if(self == null || obj == null) return self == obj; if(!(obj instanceof Stub)) return false; return self.hashCode() == ((Stub)obj).hashCode(); }
return hashCode;
Delegate d = self._get_delegate(); return d==null?0:d.hashCode();
public int hashCode(Stub self) { //FIX ME return hashCode; }
public void readObject(Stub self, ObjectInputStream s)
public void readObject(Stub self, ObjectInputStream input)
public void readObject(Stub self, ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("Not implemented for StubDelegate"); }
throw new Error("Not implemented for StubDelegate");
readObject(self, input, null);
public void readObject(Stub self, ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("Not implemented for StubDelegate"); }
catch(javax.rmi.BAD_OPERATION bad_operation)
catch (Exception ex)
public String toString(Stub self) { try { return self._orb().object_to_string(self); } // XXX javax.rmi.BAD_OPERATION -> org.omg.CORBA.BAD_OPERATION catch(javax.rmi.BAD_OPERATION bad_operation) { return null; } }
public void writeObject(Stub self, ObjectOutputStream s)
public void writeObject(Stub self, ObjectOutputStream output)
public void writeObject(Stub self, ObjectOutputStream s) throws IOException { throw new Error("Not implemented for StubDelegate"); }
throw new Error("Not implemented for StubDelegate");
writeObject(self, output, null);
public void writeObject(Stub self, ObjectOutputStream s) throws IOException { throw new Error("Not implemented for StubDelegate"); }
setLayout(new MetalDividerLayout());
public MetalSplitPaneDivider(MetalSplitPaneUI ui, Color light, Color dark) { super(ui); setLayout(new MetalDividerLayout()); this.splitPane = super.splitPane; this.orientation = super.orientation; this.light = light; this.dark = dark; }
MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4,
Insets i = getInsets(); MetalUtils.fillMetalPattern(splitPane, g, i.left + 2, i.top + 2, s.width - i.left - i.right - 4, s.height - i.top - i.bottom - 4,
public void paint(Graphics g) { Dimension s = getSize(); if (splitPane.hasFocus()) { g.setColor(UIManager.getColor("SplitPane.dividerFocusColor")); g.fillRect(0, 0, s.width, s.height); } // Paint border if one exists. Border border = getBorder(); if (border != null) bo...
if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButton).paint(g); }
super.paint(g);
public void paint(Graphics g) { Dimension s = getSize(); if (splitPane.hasFocus()) { g.setColor(UIManager.getColor("SplitPane.dividerFocusColor")); g.fillRect(0, 0, s.width, s.height); } // Paint border if one exists. Border border = getBorder(); if (border != null) bo...
public SortingFocusTraversalPolicy(Comparator comparator)
protected SortingFocusTraversalPolicy()
public SortingFocusTraversalPolicy(Comparator comparator) { this.comparator = comparator; }
this.comparator = comparator;
public SortingFocusTraversalPolicy(Comparator comparator) { this.comparator = comparator; }
return new CubicSegment(P1.getX(), P1.getY(), cp1.getX(), cp1.getY(), cp2.getX(), cp2.getY(), P2.getX(), P2.getY());
CubicSegment segment = null; try { segment = (CubicSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); segment.cp1 = (Point2D) cp1.clone(); segment.cp2 = (Point2D) cp2.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cn...
public Object clone() { return new CubicSegment(P1.getX(), P1.getY(), cp1.getX(), cp1.getY(), cp2.getX(), cp2.getY(), P2.getX(), P2.getY()); }
first = this;
public Segment() { P1 = P2 = null; next = null; last = this; }
int stop = formatCommandList.size(); for (int i = 0; i <stop; i++) { if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent);
int stop = formatCommandList.size(); for (int i = 0; i <stop; i++) { if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } ((XMLDataIOStyle) formatCommandList.get(i)).specificIOStyleToXDF(outputstream, indent);
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //write out nodes in formatCommandList synchronized (formatCommandList) { int stop = formatCommandList.size(); for (int i = 0; i <stop; i++) { if (Specification.getInstance().isPrettyXDFOutput()) { writ...
((XMLDataIOStyle) formatCommandList.get(i)).specificIOStyleToXDF(outputstream, indent); }
} while(numberOfAxes-- > 0) { if (Specification.getInstance().isPrettyXDFOutput()) { writeOut(outputstream, Constants.NEW_LINE); indent = indent.substring(0,indent.length() - Specification.getInstance().getPrettyXDFOutputIndentation().length()); writeOut(outputstream, indent); } writeOut(outputstream, "</for>");
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //write out nodes in formatCommandList synchronized (formatCommandList) { int stop = formatCommandList.size(); for (int i = 0; i <stop; i++) { if (Specification.getInstance().isPrettyXDFOutput()) { writ...
setBorder(tmpBorder);
public BasicSplitPaneDivider(BasicSplitPaneUI ui) { setLayout(new DividerLayout()); setBasicSplitPaneUI(ui); setDividerSize(splitPane.getDividerSize()); setBorder(tmpBorder); }
splitPane.removeMouseListener(mouseHandler); splitPane.removeMouseMotionListener(mouseHandler);
public void setBasicSplitPaneUI(BasicSplitPaneUI newUI) { /* Remove the connection to the existing JSplitPane. */ if (splitPane != null) { splitPane.removePropertyChangeListener(this); splitPane.removeMouseListener(mouseHandler); splitPane.removeMouseMotionListener(mouseHandler); removeMouseL...
splitPane.addMouseListener(mouseHandler); splitPane.addMouseMotionListener(mouseHandler);
public void setBasicSplitPaneUI(BasicSplitPaneUI newUI) { /* Remove the connection to the existing JSplitPane. */ if (splitPane != null) { splitPane.removePropertyChangeListener(this); splitPane.removeMouseListener(mouseHandler); splitPane.removeMouseMotionListener(mouseHandler); removeMouseL...
data = mouseChannel.read(50);
data = mouseChannel.read(COMMAND_TIMEOUT);
final boolean writeMouseCommand(int cmd) throws DeviceException { // First clear the mouse channel, otherwise we might read // old data back mouseChannel.clear(); // Transmit the command writeController(CCMD_WRITE_MOUSE); writeData(cmd); int data; try { data = mouseChannel.read(50); } catch (IOException ex)...
}
public UIDefaults getDefaults() { if (LAF_defaults == null) LAF_defaults = super.getDefaults(); // add custom theme entries to the table theme.addCustomEntriesToTable(LAF_defaults); // Returns the default values for this look and feel. return LAF_defaults; }
return (obj != null) && (obj instanceof SimpleAttributeSet) && ((SimpleAttributeSet)obj).tab.equals(this.tab);
return (obj instanceof AttributeSet) && this.isEqual((AttributeSet) obj);
public boolean equals(Object obj) { return (obj != null) && (obj instanceof SimpleAttributeSet) && ((SimpleAttributeSet)obj).tab.equals(this.tab); }
return this.equals(attr);
return attr != null && attr.containsAttributes(this) && this.containsAttributes(attr);
public boolean isEqual(AttributeSet attr) { return this.equals(attr); }
else if ("file".equals(newUrl.getProtocol()))
else if ("file".equals(protocol))
private void addURLImpl(URL newUrl) { synchronized (urlloaders) { if (newUrl == null) return; // Silently ignore... // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loader == null) { String file = newUrl.ge...
return (Class) AccessController.doPrivileged(new PrivilegedAction()
{ return (Class)AccessController.doPrivileged (new PrivilegedAction()
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
}
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
}
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
processQueues();
flush();
final synchronized IRQResource claimResources(ResourceOwner owner, int irq) throws DriverException { try { final ResourceManager rm; try { rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); } catch (NameNotFoundException ex) { throw new DriverException("Cannot find ResourceManager: ", ex);...
final int getMode() throws DeviceException { writeController(CCMD_READ_MODE); return readData();
final synchronized int getMode() throws DeviceException { try { writeController(CCMD_READ_MODE); if (waitRead()) { return readData(); } else { throw new DeviceException("Not return data from READ_MODE"); } } finally { processQueues(); }
final int getMode() throws DeviceException { writeController(CCMD_READ_MODE); return readData(); }
if (irqReadQueue) { processQueues(); }
processQueues();
public synchronized final void handleInterrupt(int irq) { if (irqReadQueue) { processQueues(); } }
final void processQueues() { int status; while (((status = readStatus()) & AUX_STAT_OBF) != 0) {
private final void processQueues() { int status; int loops = 0; while (((status = readStatus()) & STAT_OBF) != 0) { if (++loops > 1000) { log.error("A lot of PS2 data, probably wrong"); }
final void processQueues() { int status; //System.out.print('<'); while (((status = readStatus()) & AUX_STAT_OBF) != 0) { final int data = readData(); // determine which driver shall handle the scancode final PS2ByteChannel channel; if ((status & STAT_MOUSE_OBF) != 0) { channel = mouseChannel; } else {...
int mode = getMode(); if (enable) { mode |= MODE_INT; } else { mode &= ~MODE_INT; } setMode(mode);
final void setKeyboardEnabled(boolean enable) throws DeviceException { writeController(enable ? CCMD_KB_ENABLE : CCMD_KB_DISABLE); }
int mode = getMode(); if (enable) { mode |= MODE_MOUSE_INT; } else { mode &= ~MODE_MOUSE_INT; } setMode(mode);
final void setMouseEnabled(boolean enable) throws DeviceException { writeController(enable ? CCMD_MOUSE_ENABLE : CCMD_MOUSE_DISABLE); }
final boolean testMouse() throws DeviceException { irqReadQueue = false; try {
final synchronized boolean testMouse() throws DeviceException { try {
final boolean testMouse() throws DeviceException { irqReadQueue = false; try { writeController(CCMD_TEST_MOUSE); final int status = readStatus(); final int rc = readData(); log.debug("testMouse rc=0x" + NumberUtils.hex(rc, 2) + ", status 0x" + NumberUtils.hex(status, 2)); return (rc != 0xFF); } finally { ...
final int status = readStatus(); final int rc = readData(); log.debug("testMouse rc=0x" + NumberUtils.hex(rc, 2) + ", status 0x" + NumberUtils.hex(status, 2)); return (rc != 0xFF);
if (waitRead()) { final int status = readStatus(); final int rc = readData(); log.debug("testMouse rc=0x" + NumberUtils.hex(rc, 2) + ", status 0x" + NumberUtils.hex(status, 2)); return (rc != 0xFF); } else { log.debug("No return from TEST_MOUSE"); return false; }
final boolean testMouse() throws DeviceException { irqReadQueue = false; try { writeController(CCMD_TEST_MOUSE); final int status = readStatus(); final int rc = readData(); log.debug("testMouse rc=0x" + NumberUtils.hex(rc, 2) + ", status 0x" + NumberUtils.hex(status, 2)); return (rc != 0xFF); } finally { ...
irqReadQueue = true;
final boolean testMouse() throws DeviceException { irqReadQueue = false; try { writeController(CCMD_TEST_MOUSE); final int status = readStatus(); final int rc = readData(); log.debug("testMouse rc=0x" + NumberUtils.hex(rc, 2) + ", status 0x" + NumberUtils.hex(status, 2)); return (rc != 0xFF); } finally { ...
final boolean writeMouseCommands(int[] cmds) throws DeviceException { boolean ok = true; for (int i = 0; i < cmds.length; i++) { ok &= writeMouseCommand(cmds[i]); } return ok;
final synchronized boolean writeMouseCommands(int cmd, int[] params, int returnCnt) throws DeviceException { mouseChannel.clear(); if (params == null) { return sendMouseCommand(cmd, returnCnt); } else { if (!sendMouseCommand(cmd, 0)) { return false; } final int cnt = params.length; for (int i = 0; i < cnt - 1; i++) ...
final boolean writeMouseCommands(int[] cmds) throws DeviceException { boolean ok = true; for (int i = 0; i < cmds.length; i++) { ok &= writeMouseCommand(cmds[i]); } return ok; }
if (!(g instanceof Graphics2D) || true)
if (true || !(g instanceof Graphics2D))
public static void drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y) { Graphics2D g2; Rectangle2D.Double underline; FontRenderContext frc; FontMetrics fmet; LineMetrics lineM...
if (textComponent.isEditable()) textComponent.setBackground(background); else textComponent.setBackground(inactiveBackground); g.setColor(textComponent.getBackground()); g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); }
}
protected void paintBackground(Graphics g) { if (textComponent.isEditable()) textComponent.setBackground(background); else textComponent.setBackground(inactiveBackground); g.setColor(textComponent.getBackground()); g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); }
createDefaultTheme();
public MetalLookAndFeel() { createDefaultTheme(); }
if (theme == null) setCurrentTheme(new OceanTheme());
getCurrentTheme();
protected void createDefaultTheme() { if (theme == null) setCurrentTheme(new OceanTheme()); }
if (theme == null) { if ("steel".equals(SystemProperties.getProperty("swing.metalTheme"))) theme = new DefaultMetalTheme(); else theme = new OceanTheme(); }
public static MetalTheme getCurrentTheme() { return theme; }
createDefaultTheme();
public UIDefaults getDefaults() { if (LAF_defaults == null) { LAF_defaults = super.getDefaults(); // add custom theme entries to the table if (theme != null) theme.addCustomEntriesToTable(LAF_defaults); } // Returns the default values for this look and feel. return...
"TitledBorder.border", new LineBorderUIResource(getPrimaryControl(), 1),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
if (this.getMouseListeners().length == 0)
if (getMouseListeners().length == 0 && getMouseMotionListeners().length == 0)
Component findComponentForMouseEventAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; ...
return super.getAlignmentX();
LayoutManager layout = getLayout(); float alignmentX = 0.0F; if (layout != null && layout instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layout; alignmentX = lm2.getLayoutAlignmentX(this); } else alignmentX = super.getAlignmentX(); return alignmentX;
public float getAlignmentX() { return super.getAlignmentX(); }
return super.getAlignmentY();
LayoutManager layout = getLayout(); float alignmentY = 0.0F; if (layout != null && layout instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layout; alignmentY = lm2.getLayoutAlignmentY(this); } else alignmentY = super.getAlignmentY(); return alignmentY;
public float getAlignmentY() { return super.getAlignmentY(); }
super.paint(g);
paint(g);
public void paintComponents(Graphics g) { super.paint(g); visitChildren(g, GfxPaintAllVisitor.INSTANCE, true); }
if (r.isShowing())
public void remove(int index) { synchronized (getTreeLock ()) { Component r = component[index]; ComponentListener[] list = r.getComponentListeners(); for (int j = 0; j < list.length; j++) r.removeComponentListener(list[j]); r.removeNotify(); System.arra...
if (me.getID() == MouseEvent.MOUSE_RELEASED || me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0
if (me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0
Component acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component mouseEventTarget = null; // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candid...
pressCount = 0; }
Component acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component mouseEventTarget = null; // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candid...
pressCount = 0; }
boolean handleEvent(AWTEvent e) { if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; // Make the LightWeightDispatcher reentrant. This is necessary when // a lightweight component does its own modal event queue. Component mouseEventTarget = acquireComponentForMouseEven...
postEvent (e);
public void deliverEvent(Event e) { // XXX Add backward compatibility handling. }
public void list(PrintStream out, int indent)
public void list()
public void list(PrintStream out, int indent) { for (int i = 0; i < indent; ++i) out.print(' '); out.println(toString()); }
for (int i = 0; i < indent; ++i) out.print(' '); out.println(toString());
list(System.out, 0);
public void list(PrintStream out, int indent) { for (int i = 0; i < indent; ++i) out.print(' '); out.println(toString()); }
public void read(InputStream in, Object desc) throws IOException
public void read(InputStream in, Object desc) throws IOException { EditorKit kit = getEditorKit(); if (kit instanceof HTMLEditorKit && desc instanceof HTMLDocument) { Document doc = (Document) desc; try { kit.read(in, doc, 0); } catch (BadLocationException ex) { assert false : "BadLocationException must not be thrown h...
public void read(InputStream in, Object desc) throws IOException { }
Reader inRead = new InputStreamReader(in); super.read(inRead, desc); }
public void read(InputStream in, Object desc) throws IOException { }
private synchronized void doInitialize() {
private synchronized final void doInitialize() {
private synchronized void doInitialize() { if (!isInitialized()) { if (!isInitializing()) { state |= VmTypeState.ST_INITIALIZING; /* * Screen.debug("initialize("); Screen.debug(name); */ final VmMethod initMethod = getInitializerMethod(); if (initMethod != null) { try { VmReflection.inv...