rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
LookAndFeel.installBorder(p, "Panel.border");
protected void installDefaults(JPanel p) { LookAndFeel.installColorsAndFont(p, "Panel.background", "Panel.foreground", "Panel.font"); }
LookAndFeel.uninstallBorder(p);
protected void uninstallDefaults(JPanel p) { // Nothing to do here. }
public void startProduction(ImageConsumer ic) { addConsumer(ic); Vector list = (Vector) consumers.clone(); try { FileInputStream is = (url == null) ? new FileInputStream(filename) : (FileInputStream) url.openStream();
public void startProduction (ImageConsumer ic) { addConsumer (ic); Vector list = (Vector) consumers.clone (); try { if (url != null) input = url.openStream(); else { if (filename != null) input = new FileInputStream (filename); else input = new ByteArrayInputStream (data, offset, length); }
public void startProduction(ImageConsumer ic) { addConsumer(ic); Vector list = (Vector) consumers.clone(); try { FileInputStream is = (url == null) ? new FileInputStream(filename) : (FileInputStream) url.openStream(); produce(list, is); } catch (Exception e) { for (int i = 0; i < list.size(); i++) { Image...
produce(list, is); } catch (Exception e) { for (int i = 0; i < list.size(); i++) { ImageConsumer ic2 = (ImageConsumer) list.elementAt(i); ic2.imageComplete(ImageConsumer.IMAGEERROR); } } }
produce (list, input); } catch (Exception e) { for (int i = 0; i < list.size (); i++) { ImageConsumer ic2 = (ImageConsumer) list.elementAt (i); ic2.imageComplete (ImageConsumer.IMAGEERROR); } } }
public void startProduction(ImageConsumer ic) { addConsumer(ic); Vector list = (Vector) consumers.clone(); try { FileInputStream is = (url == null) ? new FileInputStream(filename) : (FileInputStream) url.openStream(); produce(list, is); } catch (Exception e) { for (int i = 0; i < list.size(); i++) { Image...
public static ComponentUI createUI(final JComponent component)
public static ComponentUI createUI(JComponent component)
public static ComponentUI createUI(final JComponent component) { return new BasicToggleButtonUI(); }
public final void cancel()
public final synchronized void cancel()
public final void cancel() { if (isValid()) { ((AbstractSelector) selector()).cancelKey(this); cancelled = true; } }
public final boolean isValid()
public final synchronized boolean isValid()
public final boolean isValid() { return ! cancelled; }
Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) {
Provider[] p = Security.getProviders(); NoSuchAlgorithmException lastException = null; for (int i = 0; i < p.length; i++)
public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithm...
return getInstance(algorithm, provs[i]);
return getInstance(algorithm, p[i]);
public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithm...
catch (NoSuchAlgorithmException ignore)
catch (NoSuchAlgorithmException x)
public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithm...
}
if (lastException != null) throw lastException;
public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithm...
"TabbedPane.tabsOpaque", Boolean.TRUE,
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU...
throws NotImplementedException
protected void loadSystemColors(UIDefaults defaults, String[] systemColors, boolean useNative) { // TODO }
submitData("");
submitData(getFormData()); else if (type.equals("reset")) resetForm();
public void actionPerformed(ActionEvent ev) { Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML.Attribute.TYPE); ...
Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute);
AttributeSet atts = el.getAttributes(); Object tag = atts.getAttribute(StyleConstants.NameAttribute); Object model = atts.getAttribute(StyleConstants.ModelAttribute);
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
AttributeSet atts = el.getAttributes();
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
String value = (String) atts.getAttribute(HTML.Attribute.VALUE);
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
comp = new JButton(value);
{ String value = (String) atts.getAttribute(HTML.Attribute.VALUE); JButton b = new JButton(value); if (model != null) { b.setModel((ButtonModel) model); b.addActionListener(this); } comp = b; maxIsPreferred = true; }
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
comp = new JCheckBox(value);
{ if (model instanceof ResetableToggleButtonModel) { ResetableToggleButtonModel m = (ResetableToggleButtonModel) model; JCheckBox c = new JCheckBox(); c.setModel(m); comp = c; maxIsPreferred = true; } }
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
comp = new JButton(value);
{ String src = (String) atts.getAttribute(HTML.Attribute.SRC); JButton b; try { URL base = ((HTMLDocument) el.getDocument()).getBase(); URL srcURL = new URL(base, src); ImageIcon icon = new ImageIcon(srcURL); b = new JButton(icon); } catch (MalformedURLException ex) { b = new JButton(src); } if (model != null) { b.setM...
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
comp = new JPasswordField(value);
{ int size = HTML.getIntegerAttributeValue(atts, HTML.Attribute.SIZE, -1); JTextField tf = new JPasswordField(); if (size > 0) tf.setColumns(size); else tf.setColumns(20); if (model != null) tf.setDocument((Document) model); tf.addActionListener(this); comp = tf; maxIsPreferred = true; }
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
comp = new JRadioButton(value);
{ if (model instanceof ResetableToggleButtonModel) { ResetableToggleButtonModel m = (ResetableToggleButtonModel) model; JRadioButton c = new JRadioButton(); c.setModel(m); comp = c; maxIsPreferred = true; } }
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
if (value == null || value.equals("")) value = RESET; comp = new JButton(value);
String value = (String) atts.getAttribute(HTML.Attribute.VALUE); if (value == null) value = UIManager.getString("FormView.resetButtonText"); JButton b = new JButton(value); if (model != null) { b.setModel((ButtonModel) model); b.addActionListener(this); } comp = b; maxIsPreferred = true;
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
if (value == null || value.equals("")) value = SUBMIT; comp = new JButton(value);
String value = (String) atts.getAttribute(HTML.Attribute.VALUE); if (value == null) value = UIManager.getString("FormView.submitButtonText"); JButton b = new JButton(value); if (model != null) { b.setModel((ButtonModel) model); b.addActionListener(this); } comp = b; maxIsPreferred = true;
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
comp = new JTextField(value);
{ int size = HTML.getIntegerAttributeValue(atts, HTML.Attribute.SIZE, -1); JTextField tf = new JTextField(); if (size > 0) tf.setColumns(size); else tf.setColumns(20); if (model != null) tf.setDocument((Document) model); tf.addActionListener(this); comp = tf; maxIsPreferred = true; }
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
else if (tag == HTML.Tag.TEXTAREA) { JTextArea textArea = new JTextArea((Document) model); int rows = HTML.getIntegerAttributeValue(atts, HTML.Attribute.ROWS, 1); textArea.setRows(rows); int cols = HTML.getIntegerAttributeValue(atts, HTML.Attribute.COLS, 20); textArea.setColumns(cols); maxIsPreferred = true; comp = new...
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height;
if (maxIsPreferred) span = getPreferredSpan(axis);
public float getMaximumSpan(int axis) { // FIXME: The specs say that for some components the maximum span == the // preferred span of the component. This should be figured out and // implemented accordingly. float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if ...
throw new IllegalArgumentException("Invalid axis parameter");
span = super.getMaximumSpan(axis);
public float getMaximumSpan(int axis) { // FIXME: The specs say that for some components the maximum span == the // preferred span of the component. This should be figured out and // implemented accordingly. float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if ...
SubmitThread submitThread = new SubmitThread(data); submitThread.start();
protected void submitData(String data) { // FIXME: Implement this. }
Component root = SwingUtilities.getRoot(component);
Component root = getRoot(component);
public Image getOffscreenBuffer(Component component, int proposedWidth, int proposedHeight) { Component root = SwingUtilities.getRoot(component); Image buffer = (Image) offscreenBuffers.get(root); if (buffer == null || buffer.getWidth(null) < proposedWidth ||...
} else {
} else if (gcColor != GC_YELLOW) {
public final boolean visit(Object object) { final int gcColor = helper.getObjectColor(object); if (gcColor == GC_WHITE) { final boolean finalized = helper.isFinalized(object); if (finalized) { // Already finalized, we can free it now currentHeap.free...
while (!vstack.isEmpty()) { Item v = vstack.pop(); if (v.isStack()) { if (VirtualStack.checkOperandStack) { vstack.operandStack.pop(v); } } v.release(eContext); }
public final void visit_return() { if(countBytecode) { counters.getCounter("return").inc(); } stackFrame.emitReturn(); assertCondition(vstack.isEmpty(), "vstack should be empty; it is ", vstack); }
new Random().nextBytes(tmp);
generateSeed(tmp);
public static byte[] getSeed(int numBytes) { byte[] tmp = new byte[numBytes]; new Random().nextBytes(tmp); return tmp; //return secureRandomSpi.engineGenerateSeed( numBytes ); }
isSeeded = true;
public void setSeed(byte[] seed) { secureRandomSpi.engineSetSeed(seed); }
throws NotImplementedException
public boolean doAccessibleAction(int value0) { return false; // TODO }
throws NotImplementedException
public AccessibleAction getAccessibleAction() { return null; // TODO }
throws NotImplementedException
public String getAccessibleActionDescription(int value0) { return null; // TODO }
throws NotImplementedException
public AccessibleIcon[] getAccessibleIcon() { return null; // TODO }
return null;
String result = super.getAccessibleName(); if (result == null) result = text; return result;
public String getAccessibleName() { return null; // TODO }
throws NotImplementedException
public AccessibleRelationSet getAccessibleRelationSet() { // TODO: What should be modified here? return super.getAccessibleRelationSet(); }
throws NotImplementedException
public AccessibleStateSet getAccessibleStateSet() { return null; // TODO }
throws NotImplementedException
public AccessibleText getAccessibleText() { return null; // TODO }
throws NotImplementedException
public AccessibleValue getAccessibleValue() { return null; // TODO }
throws NotImplementedException
public String getAfterIndex(int value0, int value1) { return null; // TODO }
throws NotImplementedException
public String getAtIndex(int value0, int value1) { return null; // TODO }
throws NotImplementedException
public String getBeforeIndex(int value0, int value1) { return null; // TODO }
throws NotImplementedException
public int getCaretPosition() { return 0; // TODO }
throws NotImplementedException
public int getCharCount() { return 0; // TODO }
throws NotImplementedException
public AttributeSet getCharacterAttribute(int value0) { return null; // TODO }
throws NotImplementedException
public Rectangle getCharacterBounds(int value0) { return null; // TODO }
throws NotImplementedException
public Number getCurrentAccessibleValue() { return null; // TODO }
throws NotImplementedException
public int getIndexAtPoint(Point value0) { return 0; // TODO }
throws NotImplementedException
public Number getMaximumAccessibleValue() { return null; // TODO }
throws NotImplementedException
public Number getMinimumAccessibleValue() { return null; // TODO }
throws NotImplementedException
public String getSelectedText() { return null; // TODO }
throws NotImplementedException
public int getSelectionEnd() { return 0; // TODO }
throws NotImplementedException
public int getSelectionStart() { return 0; // TODO }
throws NotImplementedException
private Rectangle getTextRectangle() { return null; // TODO }
throws NotImplementedException
public boolean setCurrentAccessibleValue(Number value0) { return false; // TODO }
boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b);
public void setContentAreaFilled(boolean b) { if (contentAreaFilled == b) return; boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b); // The JDK sets the opaque property to the value of the contentAreaFilled ...
boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b);
public void setContentAreaFilled(boolean b) { if (contentAreaFilled == b) return; boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b); // The JDK sets the opaque property to the value of the contentAreaFilled ...
fireStateChanged();
firePropertyChange("iconTextGap", new Integer(old), new Integer(i));
public void setIconTextGap(int i) { if (iconTextGap == i) return; int old = iconTextGap; iconTextGap = i; fireStateChanged(); revalidate(); repaint(); }
private Cache () { synchronized (this)
Cache ()
private Cache () { // If we didn't synchronize on this, then cache would be initialized // without holding a lock. Undefined behavior would occur if the // first thread to call get(int) was not the same as the one that // called the constructor. synchronized (this) { cac...
}
private Cache () { // If we didn't synchronize on this, then cache would be initialized // without holding a lock. Undefined behavior would occur if the // first thread to call get(int) was not the same as the one that // called the constructor. synchronized (this) { cac...
private synchronized CoderResult get (int length)
synchronized CoderResult get (int length)
private synchronized CoderResult get (int length) { if (length <= 0) throw new IllegalArgumentException ("Non-positive length"); Integer len = new Integer (length); CoderResult cr = null; Object o; if ((o = cache.get (len)) != null) cr = (CoderResult) ((WeakReference) o).ge...
private CoderResult (int type, int length)
CoderResult (int type, int length)
private CoderResult (int type, int length) { this.type = type; this.length = length; }
this.image = Toolkit.getDefaultToolkit().createImage(image.getSource());
loadImage(image); this.image = image;
public void setImage(Image image) { this.image = Toolkit.getDefaultToolkit().createImage(image.getSource()); }
invalidate(); repaint();
public void updateUI() { setUI((SliderUI) UIManager.getUI(this)); invalidate(); repaint(); }
throws NotImplementedException
public TextLayout nextLayout (float wrappingWidth) { throw new Error ("not implemented"); }
throws NotImplementedException
public int nextOffset (float wrappingWidth) { throw new Error ("not implemented"); }
public final Object attach(Object obj)
public final synchronized Object attach(Object obj)
public final Object attach(Object obj) { Object old = attached; attached = obj; return old; }
});
}, "packet processor");
private void _doInitialization () throws TransportException { _group = new ThreadGroup ("JDWP threads"); // initialize transport ITransport transport = TransportFactory.newInstance (_properties); _connection = new JdwpConnection (_group, transport); _connection.initialize (); _connection.start (...
VMVirtualMachine.suspendThread (this);
VMVirtualMachine.suspendThread (Thread.currentThread ());
private void _enforceSuspendPolicy (byte suspendPolicy) throws JdwpException { switch (suspendPolicy) { case EventRequest.SUSPEND_NONE: // do nothing break; case EventRequest.SUSPEND_THREAD: VMVirtualMachine.suspendThread (this); break; case EventRequest.SUSPEND_ALL: VMVirtualMachine.suspen...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return Compression.class; }
public final String getName()
public String getName()
public final String getName() { return "compression"; }
count = Math.min(count, buffer.length - offset);
public void set(int offset, char ch, int count, int color) { final char v = (char)((ch & 0xFF) | ((color & 0xFF) << 8)); for (int i = 0; i < count; i++) { buffer[offset+i] = v; } }
revalidate(); }
}
public void updateUI() { setUI((ColorChooserUI) UIManager.getUI(this)); revalidate(); } // updateUI()
fireStateChanged(changeEvent);
fireStateChanged();
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s...
EventListener[] ll = listenerList.getListeners(ActionListener.class);
ActionListener[] ll = getActionListeners();
public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); }
((ActionListener)ll[i]).actionPerformed(e);
ll[i].actionPerformed(e);
public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); }
EventListener[] ll = listenerList.getListeners(ItemListener.class);
ItemListener[] ll = getItemListeners();
public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); }
((ItemListener)ll[i]).itemStateChanged(e);
ll[i].itemStateChanged(e);
public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); }
public void fireStateChanged(ChangeEvent e)
public void fireStateChanged()
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); }
EventListener[] ll = listenerList.getListeners(ChangeListener.class);
ChangeListener[] ll = getChangeListeners();
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); }
((ChangeListener)ll[i]).stateChanged(e);
ll[i].stateChanged(changeEvent);
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); }
fireStateChanged(changeEvent);
fireStateChanged();
public void setActionCommand(String s) { if (actionCommand != s) { actionCommand = s; fireStateChanged(changeEvent); } }
fireStateChanged(changeEvent);
fireStateChanged();
public void setGroup(ButtonGroup g) { if (group != g) { group = g; fireStateChanged(changeEvent); } }
fireStateChanged(changeEvent);
fireStateChanged();
public void setMnemonic(int key) { if (mnemonic != key) { mnemonic = key; fireStateChanged(changeEvent); } }
static private Icon currentIcon(AbstractButton b)
private static Icon currentIcon(AbstractButton b)
static private Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = ...
super(q, p, g); this.y = y;
this(Registry.RAW_ENCODING_ID, q, p, g, y);
public GnuDHPublicKey(BigInteger q, BigInteger p, BigInteger g, BigInteger y) { super(q, p, g); this.y = y; }
private void readSignatures() throws IOException
void readSignatures() throws IOException
private void readSignatures() throws IOException { Map pkcs7Dsa = new HashMap(); Map pkcs7Rsa = new HashMap(); Map sigFiles = new HashMap(); // Phase 1: Read all signature files. These contain the user // certificates as well as the signatures themselves. for (Enumeration e = super.entries(); e.has...
c.setOpaque(true);
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } installDefault...
public void append(byte[] src, int srcOffset, int length) {
public void append(int count) {
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
next.append(src, srcOffset, length);
next.append(count);
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length);
setSize(size + count);
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
private static final void checkPermission()
private static void checkPermission()
private static final void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new ReflectPermission("suppressAccessChecks")); }
BoxPainter(AttributeSet as)
BoxPainter(AttributeSet as, StyleSheet ss)
BoxPainter(AttributeSet as) { Length l = (Length) as.getAttribute(CSS.Attribute.MARGIN_LEFT); if (l != null) leftInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_RIGHT); if (l != null) rightInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attrib...
l = (Length) as.getAttribute(CSS.Attribute.PADDING_LEFT); if (l != null) { l.setFontBases(emBase, exBase); leftPadding = l.getValue(); } l = (Length) as.getAttribute(CSS.Attribute.PADDING_RIGHT); if (l != null) { l.setFontBases(emBase, exBase); rightPadding = l.getValue(); } l = (Length) as.getAttribute(CSS.Attribute.P...
BoxPainter(AttributeSet as) { Length l = (Length) as.getAttribute(CSS.Attribute.MARGIN_LEFT); if (l != null) leftInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_RIGHT); if (l != null) rightInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attrib...
if (border != null) inset += border.getBorderInsets(null).right; inset += rightPadding;
public float getInset(int size, View v) { float inset; switch (size) { case View.TOP: inset = topInset; break; case View.BOTTOM: inset = bottomInset; break; case View.LEFT: inset = leftInset; break; case View.RIGHT...
int inX = (int) (x + leftInset); int inY = (int) (y + topInset); int inW = (int) (w - leftInset - rightInset); int inH = (int) (h - topInset - bottomInset); if (background != null) { g.setColor(background); g.fillRect(inX, inY, inW, inH); } if (border != null) { border.paintBorder(null, g, inX, inY, inW, inH); }
public void paint(Graphics g, float x, float y, float w, float h, View v) { // FIXME: Not implemented. }