rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
controls.revalidate(); controls.repaint();
protected void removeControlButtons() { controls.removeAll(); }
fileList.revalidate();
if (!listView) updateTable(); else createList(fc);
public void rescanCurrentDirectory(JFileChooser fc) { // FIXME: this will need to take into account whether the list view or // the table view is current directoryModel.setSelectedItem(fc.getCurrentDirectory()); getModel().validateFileCache(); fileList.revalidate(); }
fc.remove(fileTablePanel); fileTablePanel = null;
public void uninstallComponents(JFileChooser fc) { fc.remove(bottomPanel); bottomPanel = null; fc.remove(fileListPanel); fileListPanel = null; fc.remove(topPanel); topPanel = null; directoryModel = null; fileTextField = null; directoryComboBox = null; }
directoryComboBox.setAction(null); fileList.removeListSelectionListener(listSelList); fileList.removeMouseListener(doubleClickList); fileList.removeMouseListener(singleClickList); if (fileTable != null) fileTable.removeMouseListener(tableClickList);
protected void uninstallListeners(JFileChooser fc) { super.uninstallListeners(fc); fc.removePropertyChangeListener(filterModel); }
if (cellHasFocus) setBorder(UIManager.getBorder("List.focusCellHighlightBorder")); else setBorder(noFocusBorder);
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); if (isSelected) { ...
setTitle(String title) {
public synchronized void setTitle(String title) {
setTitle(String title){ // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setTitle (title); }}
d.setTitle (title);
d.setTitle(title); }
setTitle(String title){ // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setTitle (title); }}
}
setTitle(String title){ // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setTitle (title); }}
public void setMnemonic(int mne)
public void setMnemonic(char mne)
public void setMnemonic(int mne) { int old = mne; getModel().setMnemonic(mne); if (old != getModel().getMnemonic()) { firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, mne); revalidate(); repaint(); } }
int old = mne;
int old = getModel().getMnemonic();
public void setMnemonic(int mne) { int old = mne; getModel().setMnemonic(mne); if (old != getModel().getMnemonic()) { firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, mne); revalidate(); repaint(); } }
firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, mne);
firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, (int) mne);
public void setMnemonic(int mne) { int old = mne; getModel().setMnemonic(mne); if (old != getModel().getMnemonic()) { firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, mne); revalidate(); repaint(); } }
public JButton(Action a)
public JButton()
public JButton(Action a) { this(); setAction(a); }
this(); setAction(a);
this(null, null);
public JButton(Action a) { this(); setAction(a); }
if (old != i) {
public void setIcon(Icon i) { Icon old = default_icon; default_icon = i; if (old != i) { firePropertyChange(ICON_CHANGED_PROPERTY, old, i); revalidate(); repaint(); } }
v.addElement(b);
buttons.addElement(b);
public void add(AbstractButton b) { b.getModel().setGroup(this); v.addElement(b); }
boxEntries();
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection bug. if (e.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHAN...
public String toString()
public final String toString()
public String toString() { return super.toString() + "; name=" + name + "; isSource=" + isSource; }
public UNKNOWN(String reason, int minor, CompletionStatus completed)
public UNKNOWN(String message)
public UNKNOWN(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
super(reason, minor, completed);
super(message, 0, CompletionStatus.COMPLETED_NO);
public UNKNOWN(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
setModel(new DefaultButtonModel());
protected void init(String text, Icon icon) { super.init(text, icon); // Initializes properties for this menu item, that are different // from Abstract button properties. /* NOTE: According to java specifications paint_border should be set to false, since menu item should not have a border. However...
AbstractButton(String txt, Icon icon)
public AbstractButton()
AbstractButton(String txt, Icon icon) { text = txt; default_icon = icon; model = new DefaultButtonModel(); actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChangeListener(ch...
text = txt; default_icon = icon; model = new DefaultButtonModel(); actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChangeListener(changeListener); model.addItemListener(itemListener); hori_align = ...
this("",null);
AbstractButton(String txt, Icon icon) { text = txt; default_icon = icon; model = new DefaultButtonModel(); actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChangeListener(ch...
actionPropertyChangeListener = createActionPropertyChangeListener(a);
public void setAction(Action a) { if (action != null) { action.removePropertyChangeListener(actionPropertyChangeListener); removeActionListener(action); if (actionPropertyChangeListener != null) { action.removePropertyChangeListener(actionPropertyChangeListener); ...
actionPropertyChangeListener = createActionPropertyChangeListener(a);
public void setAction(Action a) { if (action != null) { action.removePropertyChangeListener(actionPropertyChangeListener); removeActionListener(action); if (actionPropertyChangeListener != null) { action.removePropertyChangeListener(actionPropertyChangeListener); ...
if (a.getValue(Action.MNEMONIC_KEY) != null)
protected void configurePropertiesFromAction(Action a) { if (a == null) { setText(null); setIcon(null); setEnabled(true); setToolTipText(null); } else { setText((String)(a.getValue(Action.NAME))); setIcon((Icon)(a.getValue(Action.SMALL_ICON))); s...
Action act = (Action)(e.getSource()); AbstractButton.this.configurePropertiesFromAction(act);
Action act = (Action) (e.getSource()); if (e.getPropertyName().equals(AbstractAction.ENABLED_PROPERTY)) setEnabled(act.isEnabled()); else if (e.getPropertyName().equals(Action.NAME)) setText((String)(act.getValue(Action.NAME))); else if (e.getPropertyName().equals(Action.SMALL_ICON)) setIcon((Icon)(act.getValue(Action....
protected PropertyChangeListener createActionPropertyChangeListener(Action a) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { Action act = (Action)(e.getSource()); AbstractButton.this.configurePropertiesFromAction(act); } ...
stateMask = ENABLED; mnemonic = java.awt.event.KeyEvent.VK_UNDEFINED; listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this);
public DefaultButtonModel() { stateMask = ENABLED; mnemonic = java.awt.event.KeyEvent.VK_UNDEFINED; listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); }
void addChangeListener(ChangeListener l);
void addChangeListener(ChangeListener listener);
void addChangeListener(ChangeListener l);
void removeChangeListener(ChangeListener l);
void removeChangeListener(ChangeListener listener);
void removeChangeListener(ChangeListener l);
public SimpleAttributeSet(AttributeSet a)
public SimpleAttributeSet()
public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); addAttributes(a); }
tab = new Hashtable(); addAttributes(a);
this(null);
public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); addAttributes(a); }
return new Enumerator<K>(KEYS);
return new KeyEnumerator();
public Enumeration<K> keys() { return new Enumerator<K>(KEYS); }
ret.width += d.width;
public Dimension getPreferredSize(JComponent c) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && header...
ret.width = cmod.getTotalColumnWidth();
public Dimension getPreferredSize(JComponent c) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && header...
if (background != null && c != null) if (background.equals(c)) return;
public void setBackground(Color c) { // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); firePropertyChange("background", background, c); if (peer != null && c != null) peer.setBackground(c); background = c; }
return getBounds();
if (bounds == null) { if (npoints == 0) return bounds = new Rectangle (); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { int x = xpoints[i]; int y = ypoints[i]; if (x < minx) minx = x; else if (x > maxx) maxx = x; if (y < miny) miny = y; else if (...
public Rectangle getBoundingBox() { return getBounds(); }
if (bounds == null) { if (npoints == 0) return bounds = new Rectangle(); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { int x = xpoints[i]; int y = ypoints[i]; if (x < minx) minx = x; else if (x > maxx) maxx = x; if (y < miny) miny = y; else if (y...
return getBoundingBox ();
public Rectangle getBounds() { if (bounds == null) { if (npoints == 0) return bounds = new Rectangle(); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { int x =...
xpoints[i] += dy;
ypoints[i] += dy;
public void translate(int dx, int dy) { int i = npoints; while (--i >= 0) { xpoints[i] += dx; xpoints[i] += dy; } if (bounds != null) { bounds.x += dx; bounds.y += dy; } condensed = null; }
String s = value.toString(); FontMetrics fm = getToolkit().getFontMetrics(list.getFont()); int strWidth = SwingUtilities.computeStringWidth(fm, s); int cbWidth = getSize().width; if (cbWidth != 0 && strWidth > cbWidth) { char[] str = s.toCharArray(); int currWidth = 0; int i = 0; String postStr = "... "; cbWidth -= S...
if (isSelected)
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); // String maybe larger than comboBox. FontMetrics fm =...
setEnabled(list.isEnabled()); setFont(list.getFont());
if (value instanceof Icon) setIcon((Icon) value); else setText(value == null ? "" : value.toString());
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); // String maybe larger than comboBox. FontMetrics fm =...
public void setBounds(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height;
public void setBounds(Rectangle r) { setBounds (r.x, r.y, r.width, r.height);
public void setBounds(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }
button = BUTTON1;
this.button = BUTTON1;
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
button = BUTTON2;
this.button = BUTTON2;
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
button = BUTTON3;
this.button = BUTTON3;
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
public Component getFocusOwner() { try
public Component getFocusOwner ()
public Component getFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusOwner(); } catch (SecurityException e) { return null; } }
return getGlobalFocusOwner(); } catch (SecurityException e) { return null; }
return (Component) getObject (currentFocusOwners);
public Component getFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusOwner(); } catch (SecurityException e) { return null; } }
public ActionEvent(Object source, int id, String command, int modifiers)
public ActionEvent(Object source, int id, String command)
public ActionEvent(Object source, int id, String command, int modifiers) { this(source, id, command, EventQueue.getMostRecentEventTime(), modifiers); }
this(source, id, command, EventQueue.getMostRecentEventTime(), modifiers);
this(source, id, command, EventQueue.getMostRecentEventTime(), 0);
public ActionEvent(Object source, int id, String command, int modifiers) { this(source, id, command, EventQueue.getMostRecentEventTime(), modifiers); }
if (parentMap != this)
public void setParent(ActionMap parentMap) { parent = parentMap; }
public UserException()
protected UserException()
public UserException() { }
super(TYPE_FLOAT, size);
super(TYPE_FLOAT, size, 1, 0); bankData = new float[1][];
public DataBufferFloat(int size) { super(TYPE_FLOAT, size); data = new float[size]; }
bankData[0] = data;
public DataBufferFloat(int size) { super(TYPE_FLOAT, size); data = new float[size]; }
public UnsupportedLookAndFeelException(String a)
public UnsupportedLookAndFeelException(String s)
public UnsupportedLookAndFeelException(String a) { super(a); }
super(a);
super(s);
public UnsupportedLookAndFeelException(String a) { super(a); }
if(src == null) return null;
public Shape createTransformedShape(Shape src) { GeneralPath p = new GeneralPath(src); p.transform(this); return p; }
double det = getDeterminant(); if (det == 0) throw new NoninvertibleTransformException("couldn't invert transform"); if (dst == null) dst = new Point2D.Double(); double x = src.getX(); double y = src.getY(); double nx = (m11 * x + -m10 * y) / det - m02; double ny = (m01 * x + -m00 * y) / det - m12; dst.setLocation(nx, ...
return createInverse().transform(src, dst);
public Point2D inverseTransform(Point2D src, Point2D dst) throws NoninvertibleTransformException { double det = getDeterminant(); if (det == 0) throw new NoninvertibleTransformException("couldn't invert transform"); if (dst == null) dst = new Point2D.Double(); double x = src.getX(); double y = src.getY()...
public GeneralPath(Shape s)
public GeneralPath()
public GeneralPath(Shape s) { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
this(WIND_NON_ZERO, INIT_SIZE); }
public GeneralPath(Shape s) { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return JobImpressionsCompleted.class; }
public final String getName()
public String getName()
public final String getName() { return "job-impressions"; }
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException
UnicastServerRef()
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf); }
super(id); manager = UnicastConnectionManager.getInstance(port, ssf);
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf); }
throw new NoSuchMethodException();
throw new NoSuchMethodException( myself.getClass().getName()+" hash "+hash);
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception { // System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == - 1) ...
{ throw new NoSuchMethodException(); }
throw new NoSuchMethodException("JDK 1.1 call - Skeleton required");
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception { // System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == - 1) ...
public UnicastRef(ObjID objid)
public UnicastRef()
public UnicastRef(ObjID objid) { this.objid = objid; }
this.objid = objid;
public UnicastRef(ObjID objid) { this.objid = objid; }
public NoSuchMethodException(String s)
public NoSuchMethodException()
public NoSuchMethodException(String s) { super(s); }
super(s);
public NoSuchMethodException(String s) { super(s); }
if (obj instanceof ActivatableServerRef) { ActivationID id = ((ActivatableServerRef) obj).actId; unregisterActivatable(id); }
public static boolean unexportObject(UnicastServerRef obj, boolean force) { objects.remove(obj.objid); refcache.remove(obj.myself); obj.manager.stopServer(); return true; }
public abstract void setEnabled(boolean enabled);
void setEnabled(boolean enabled);
public abstract void setEnabled(boolean enabled);
void actionPerformed(ActionEvent e);
void actionPerformed(ActionEvent event);
void actionPerformed(ActionEvent e);
public abstract void setLabel(String text);
void setLabel(String text);
public abstract void setLabel(String text);
setDeadCode(true);
public ConstantRefAssignQuad(int address, IRBasicBlock block, int lhsIndex, Constant rhs) { super(address, block, lhsIndex); this.rhs = rhs; setDeadCode(true); // this will change if this is a phi operand }
public void doPass2(BootableHashMap liveVariables) { setDeadCode(true);
public void doPass2() {
public void doPass2(BootableHashMap liveVariables) { setDeadCode(true); }
setDeadCode(true);
public Operand propagate(Variable operand) { return rhs; }
public abstract void doPass2(BootableHashMap liveVariables);
public abstract void doPass2();
public abstract void doPass2(BootableHashMap liveVariables);
orb.connect(namer, getDefaultKey());
orb.connect(namer, "NameService".getBytes());
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args [ i ].end...
System.out.println("GNU Classpath, transient naming service. " + "Copyright (C) 2005 Free Software Foundation\n" + "This tool comes with ABSOLUTELY NO WARRANTY. " + "This is free software, and you are\nwelcome to " + "redistribute it under conditions, defined in " + "GNU Classpath license.\n\n" + ior );
System.out.println("GNU Classpath transient naming service " + "started at " + iorr.Internet.host + ":" + iorr.Internet.port + " key 'NameService'.\n\n" + "Copyright (C) 2005 Free Software Foundation\n" + "This tool comes with ABSOLUTELY NO WARRANTY. " + "This is free software, and you are\nwelcome to " + "redistribute...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args [ i ].end...
public byte[] getBytes(String enc) throws UnsupportedEncodingException
public void getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin)
public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); i...
try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); if(bbuf.hasArray()) return bbuf.array(); byte[] bytes = new byte[bbuf.remaining()]; ...
if (srcBegin < 0 || srcBegin > srcEnd || srcEnd > count) throw new StringIndexOutOfBoundsException(); int i = srcEnd - srcBegin; srcBegin += offset; while (--i >= 0) dst[dstBegin++] = (byte) value[srcBegin++];
public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); i...
StringBuffer key = new StringBuffer();
int start = pos; boolean needsEscape = line.indexOf('\\', pos) != -1; StringBuilder key = needsEscape ? new StringBuilder() : null;
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
if (c == '\\')
if (needsEscape && c == '\\')
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
else
else if (needsEscape)
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
StringBuffer element = new StringBuffer(line.length() - pos);
if (!needsEscape) { put(keyString, line.substring(pos)); continue; } StringBuilder element = new StringBuilder(line.length() - pos);
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
put(key.toString(), element.toString());
put(keyString, element.toString());
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
public UnsupportedOperationException(String s)
public UnsupportedOperationException()
public UnsupportedOperationException(String s) { super(s); }
super(s);
public UnsupportedOperationException(String s) { super(s); }
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) {
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int size = w*h;
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { //int size = w * h; int outOffset = 0; int[] pixel = null; if (iArray == null) iArray = new int[w * h * numBands]; for (int yy = y; yy < (y + h); yy++) { for (int xx = x; xx < (x + w); xx++) { getPixel(xx, yy, pixel, data);...
if (iArray == null) { iArray = new int[size]; } for (int yy = y; yy < (y + h); yy++) { for (int xx = x; xx < (x + w); xx++) {
if (iArray == null) iArray = new int[size]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) {
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w * h; int outOffset = 0; if (iArray == null) { iArray = new int[size]; } for (int yy = y; yy < (y + h); yy++) { for (int xx = x; xx < (x + w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); ...
void fireStateChanged()
protected void fireStateChanged()
void fireStateChanged() { ChangeListener[] listeners = getChangeListeners(); for (int i = 0; i < listeners.length; ++i) listeners[i].stateChanged(changeEvent); }
}
public void setView(Component v) { add(v); fireStateChanged(); }
throws BadKind, Bounds;
throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
public abstract TypeCode member_type(int index) throws BadKind, Bounds;
throws BadKind, Bounds;
throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
public abstract String member_name(int index) throws BadKind, Bounds;
return super.getPropertyPrefix();
return "CheckBox.";
public String getPropertyPrefix() { return super.getPropertyPrefix(); }
return defaults.getIcon(getPropertyPrefix() + ".icon");
return defaults.getIcon(getPropertyPrefix() + "icon");
public Icon getDefaultIcon() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon(getPropertyPrefix() + ".icon"); }
return "RadioButton";
return "RadioButton.";
protected String getPropertyPrefix() { return "RadioButton"; }
private Decoder (Charset cs)
Decoder (Charset cs)
private Decoder (Charset cs) { super (cs, 1.0f, 1.0f); }
private Encoder (Charset cs)
Encoder (Charset cs)
private Encoder (Charset cs) { super (cs, 1.0f, 1.0f); }
protected CharsetDecoder (Charset cs, float averageCharsPerByte, float maxCharsPerByte)
private CharsetDecoder (Charset cs, float averageCharsPerByte, float maxCharsPerByte, String replacement)
protected CharsetDecoder (Charset cs, float averageCharsPerByte, float maxCharsPerByte) { this (cs, averageCharsPerByte, maxCharsPerByte, DEFAULT_REPLACEMENT); }
this (cs, averageCharsPerByte, maxCharsPerByte, DEFAULT_REPLACEMENT);
if (averageCharsPerByte <= 0.0f) throw new IllegalArgumentException ("Non-positive averageCharsPerByte"); if (maxCharsPerByte <= 0.0f) throw new IllegalArgumentException ("Non-positive maxCharsPerByte"); this.charset = cs; this.averageCharsPerByte = averageCharsPerByte; this.maxCharsPerByte = maxCharsPerByte; this.rep...
protected CharsetDecoder (Charset cs, float averageCharsPerByte, float maxCharsPerByte) { this (cs, averageCharsPerByte, maxCharsPerByte, DEFAULT_REPLACEMENT); }