8055326: Fix typos in client-related packages
Reviewed-by: prr, azvegint, alexsch
This commit is contained in:
parent
b61f8cc4ec
commit
8be77eed11
@ -55,7 +55,7 @@ import sun.awt.SunToolkit;
|
||||
* windows using a translucency-capable graphics configuration.
|
||||
* The {@code isTranslucencyCapable()} method must
|
||||
* be used to verify whether any given GraphicsConfiguration supports
|
||||
* the trasnlcency effects.
|
||||
* the translucency effects.
|
||||
* <p>
|
||||
* <b>WARNING</b>: This class is an implementation detail and only meant
|
||||
* for limited use outside of the core platform. This API may change
|
||||
|
@ -106,7 +106,7 @@ public final class SecurityWarning {
|
||||
* the window. The "absolute" in this case means that the position of the
|
||||
* security warning is not effected by resizing of the window.
|
||||
* <p>
|
||||
* Note that the security warning managment code guarantees that:
|
||||
* Note that the security warning management code guarantees that:
|
||||
* <ul>
|
||||
* <li>The security warning cannot be located farther than two pixels from
|
||||
* the rectangular bounds of the window (see {@link Window#getBounds}), and
|
||||
|
@ -38,7 +38,7 @@ import java.security.AccessController;
|
||||
|
||||
/**
|
||||
* The root event class for all AWT events.
|
||||
* This class and its subclasses supercede the original
|
||||
* This class and its subclasses supersede the original
|
||||
* java.awt.Event class.
|
||||
* Subclasses of this root AWTEvent class defined outside of the
|
||||
* java.awt.event package should define event ID values greater than
|
||||
|
@ -379,7 +379,7 @@ public class AWTEventMulticaster implements
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles the windowDeiconfied event by invoking the
|
||||
* Handles the windowDeiconified event by invoking the
|
||||
* windowDeiconified methods on listener-a and listener-b.
|
||||
* @param e the window event
|
||||
*/
|
||||
@ -1053,7 +1053,7 @@ public class AWTEventMulticaster implements
|
||||
}
|
||||
|
||||
/*
|
||||
* Recusive method which populates EventListener array a with EventListeners
|
||||
* Recursive method which populates EventListener array a with EventListeners
|
||||
* from l. l is usually an AWTEventMulticaster. Bug 4513402 revealed that
|
||||
* if l differed in type from the element type of a, an ArrayStoreException
|
||||
* would occur. Now l is only inserted into a if it's of the appropriate
|
||||
|
@ -83,7 +83,7 @@ public class AWTKeyStroke implements Serializable {
|
||||
/*
|
||||
* Reads keystroke class from AppContext and if null, puts there the
|
||||
* AWTKeyStroke class.
|
||||
* Must be called under locked AWTKeyStro
|
||||
* Must be called under locked AWTKeyStroke
|
||||
*/
|
||||
private static Class<AWTKeyStroke> getAWTKeyStrokeClass() {
|
||||
@SuppressWarnings("unchecked")
|
||||
@ -225,7 +225,7 @@ public class AWTKeyStroke implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
/* returns noarg Constructor for class with accessible flag. No security
|
||||
/* returns no-arg Constructor for class with accessible flag. No security
|
||||
threat as accessible flag is set only for this Constructor object,
|
||||
not for Class constructor.
|
||||
*/
|
||||
|
@ -304,7 +304,7 @@ import sun.java2d.SunCompositeContext;
|
||||
* <p>
|
||||
* Alternately, an implementation that uses floating point math
|
||||
* might produce more accurate results and end up returning to the
|
||||
* original pixel value with little, if any, roundoff error.
|
||||
* original pixel value with little, if any, round-off error.
|
||||
* Or, an implementation using integer math might decide that since
|
||||
* the equations boil down to a virtual NOP on the color values
|
||||
* if performed in a floating point space, it can transfer the
|
||||
|
@ -74,7 +74,7 @@ import java.util.Hashtable;
|
||||
* For example, if you add components using both the <code>NORTH</code>
|
||||
* and <code>PAGE_START</code> constants in a container whose
|
||||
* orientation is <code>LEFT_TO_RIGHT</code>, only the
|
||||
* <code>PAGE_START</code> will be layed out.
|
||||
* <code>PAGE_START</code> will be laid out.
|
||||
* <p>
|
||||
* NOTE: Currently (in the Java 2 platform v1.2),
|
||||
* <code>BorderLayout</code> does not support vertical
|
||||
@ -211,7 +211,7 @@ public class BorderLayout implements LayoutManager2,
|
||||
* For example, if you add components using both the <code>NORTH</code>
|
||||
* and <code>BEFORE_FIRST_LINE</code> constants in a container whose
|
||||
* orientation is <code>LEFT_TO_RIGHT</code>, only the
|
||||
* <code>BEFORE_FIRST_LINE</code> will be layed out.
|
||||
* <code>BEFORE_FIRST_LINE</code> will be laid out.
|
||||
* This will be the same for lastLine, firstItem, lastItem.
|
||||
* @serial
|
||||
*/
|
||||
|
@ -109,7 +109,7 @@ public class CardLayout implements LayoutManager2,
|
||||
|
||||
/**
|
||||
* @serialField tab Hashtable
|
||||
* deprectated, for forward compatibility only
|
||||
* deprecated, for forward compatibility only
|
||||
* @serialField hgap int
|
||||
* @serialField vgap int
|
||||
* @serialField vector Vector
|
||||
|
@ -167,7 +167,7 @@ import sun.util.logging.PlatformLogger;
|
||||
* }
|
||||
* </pre>
|
||||
* <p>
|
||||
* <b>Note</b>: For more information on the paint mechanisms utilitized
|
||||
* <b>Note</b>: For more information on the paint mechanisms utilized
|
||||
* by AWT and Swing, including information on how to write the most
|
||||
* efficient painting code, see
|
||||
* <a href="http://www.oracle.com/technetwork/java/painting-140037.html">Painting in AWT and Swing</a>.
|
||||
@ -355,7 +355,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
|
||||
/**
|
||||
* True when the object is valid. An invalid object needs to
|
||||
* be layed out. This flag is set to false when the object
|
||||
* be laid out. This flag is set to false when the object
|
||||
* size is changed.
|
||||
*
|
||||
* @serial
|
||||
@ -418,7 +418,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
private static final int FOCUS_TRAVERSABLE_SET = 2;
|
||||
|
||||
/**
|
||||
* Tracks whether this Component is relying on default focus travesability.
|
||||
* Tracks whether this Component is relying on default focus traversability.
|
||||
*
|
||||
* @serial
|
||||
* @since 1.4
|
||||
@ -661,7 +661,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* can lead to a deadlock if client code also uses synchronization
|
||||
* by a component object. For every such situation revealed we should
|
||||
* consider possibility of replacing "this" with the package private
|
||||
* objectLock object introduced below. So far there're 3 issues known:
|
||||
* objectLock object introduced below. So far there are 3 issues known:
|
||||
* - CR 6708322 (the getName/setName methods);
|
||||
* - CR 6608764 (the PropertyChangeListener machinery);
|
||||
* - CR 7108598 (the Container.paint/KeyboardFocusManager.clearMostRecentFocusOwner methods).
|
||||
@ -783,7 +783,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
}
|
||||
|
||||
/*
|
||||
* The shape set with the applyCompoundShape() method. It uncludes the result
|
||||
* The shape set with the applyCompoundShape() method. It includes the result
|
||||
* of the HW/LW mixing related shape computation. It may also include
|
||||
* the user-specified shape of the component.
|
||||
* The 'null' value means the component has normal shape (or has no shape at all)
|
||||
@ -808,7 +808,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
|
||||
/**
|
||||
* Should only be used in subclass getBounds to check that part of bounds
|
||||
* is actualy changing
|
||||
* is actually changing
|
||||
*/
|
||||
int getBoundsOp() {
|
||||
assert Thread.holdsLock(getTreeLock());
|
||||
@ -1691,7 +1691,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
}
|
||||
|
||||
/*
|
||||
* Delete references from LightweithDispatcher of a heavyweight parent
|
||||
* Delete references from LightweightDispatcher of a heavyweight parent
|
||||
*/
|
||||
void clearLightweightDispatcherOnRemove(Component removedComponent) {
|
||||
if (parent != null) {
|
||||
@ -2337,10 +2337,10 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
boolean needNotify = true;
|
||||
mixOnReshaping();
|
||||
if (peer != null) {
|
||||
// LightwightPeer is an empty stub so can skip peer.reshape
|
||||
// LightweightPeer is an empty stub so can skip peer.reshape
|
||||
if (!(peer instanceof LightweightPeer)) {
|
||||
reshapeNativePeer(x, y, width, height, getBoundsOp());
|
||||
// Check peer actualy changed coordinates
|
||||
// Check peer actually changed coordinates
|
||||
resized = (oldWidth != this.width) || (oldHeight != this.height);
|
||||
moved = (oldX != this.x) || (oldY != this.y);
|
||||
// fix for 5025858: do not send ComponentEvents for toplevel
|
||||
@ -5106,7 +5106,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
// ancestor, there is no need trying to find descendant
|
||||
// lightweights to dispatch event to.
|
||||
// If we dispatch the event to toplevel ancestor,
|
||||
// this could encolse the loop: 6480024.
|
||||
// this could enclose the loop: 6480024.
|
||||
anc.dispatchEventToSelf(newMWE);
|
||||
if (newMWE.isConsumed()) {
|
||||
e.consume();
|
||||
@ -6203,7 +6203,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
* Indicates whether this class overrides coalesceEvents.
|
||||
* It is assumed that all classes that are loaded from the bootstrap
|
||||
* do not.
|
||||
* The boostrap class loader is assumed to be represented by null.
|
||||
* The bootstrap class loader is assumed to be represented by null.
|
||||
* We do not check that the method really overrides
|
||||
* (it might be static, private or package private).
|
||||
*/
|
||||
@ -6251,7 +6251,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
Class<?> superclass = clazz.getSuperclass();
|
||||
if (superclass == null) {
|
||||
// Only occurs on implementations that
|
||||
// do not use null to represent the bootsrap class loader.
|
||||
// do not use null to represent the bootstrap class loader.
|
||||
return false;
|
||||
}
|
||||
if (superclass.getClassLoader() != null) {
|
||||
@ -7761,7 +7761,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
while ( (window != null) && !(window instanceof Window)) {
|
||||
if (!window.isVisible()) {
|
||||
if (focusLog.isLoggable(PlatformLogger.Level.FINEST)) {
|
||||
focusLog.finest("component is recurively invisible");
|
||||
focusLog.finest("component is recursively invisible");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@ -7865,7 +7865,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
// in activation. We do request focus on component which
|
||||
// has got temporary focus lost and then on component which is
|
||||
// most recent focus owner. But most recent focus owner can be
|
||||
// changed by requestFocsuXXX() call only, so this transfer has
|
||||
// changed by requestFocusXXX() call only, so this transfer has
|
||||
// been already approved.
|
||||
if (focusLog.isLoggable(PlatformLogger.Level.FINEST)) {
|
||||
focusLog.finest("cause is activation");
|
||||
@ -8692,7 +8692,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
Package swingPackage = Package.getPackage("javax.swing");
|
||||
// For Swing serialization to correctly work Swing needs to
|
||||
// be notified before Component does it's serialization. This
|
||||
// hack accomodates this.
|
||||
// hack accommodates this.
|
||||
//
|
||||
// Swing classes MUST be loaded by the bootstrap class loader,
|
||||
// otherwise we don't consider them.
|
||||
@ -9040,7 +9040,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks that this component meets the prerequesites to be focus owner:
|
||||
* Checks that this component meets the prerequisites to be focus owner:
|
||||
* - it is enabled, visible, focusable
|
||||
* - it's parents are all enabled and showing
|
||||
* - top-level window is focusable
|
||||
@ -9649,7 +9649,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
/**
|
||||
* Returns the size of this object in the form of a
|
||||
* <code>Dimension</code> object. The height field of the
|
||||
* <code>Dimension</code> object contains this objects's
|
||||
* <code>Dimension</code> object contains this object's
|
||||
* height, and the width field of the <code>Dimension</code>
|
||||
* object contains this object's width.
|
||||
*
|
||||
@ -9833,7 +9833,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
||||
/**
|
||||
* Check whether we can trust the current bounds of the component.
|
||||
* The return value of false indicates that the container of the
|
||||
* component is invalid, and therefore needs to be layed out, which would
|
||||
* component is invalid, and therefore needs to be laid out, which would
|
||||
* probably mean changing the bounds of its children.
|
||||
* Null-layout of the container or absence of the container mean
|
||||
* the bounds of the component are final and can be trusted.
|
||||
|
@ -154,7 +154,7 @@ public final class ComponentOrientation implements java.io.Serializable
|
||||
public static ComponentOrientation getOrientation(Locale locale) {
|
||||
// A more flexible implementation would consult a ResourceBundle
|
||||
// to find the appropriate orientation. Until pluggable locales
|
||||
// are introduced however, the flexiblity isn't really needed.
|
||||
// are introduced however, the flexibility isn't really needed.
|
||||
// So we choose efficiency instead.
|
||||
String lang = locale.getLanguage();
|
||||
if( "iw".equals(lang) || "ar".equals(lang)
|
||||
|
@ -547,8 +547,8 @@ public class Container extends Component {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes component comp from this container without making unneccessary changes
|
||||
* and generating unneccessary events. This function intended to perform optimized
|
||||
* Removes component comp from this container without making unnecessary changes
|
||||
* and generating unnecessary events. This function intended to perform optimized
|
||||
* remove, for example, if newParent and current parent are the same it just changes
|
||||
* index without calling removeNotify.
|
||||
* Note: Should be called while holding treeLock
|
||||
@ -1407,11 +1407,11 @@ public class Container extends Component {
|
||||
return;
|
||||
|
||||
descendantsCount += num;
|
||||
adjustDecendantsOnParent(num);
|
||||
adjustDescendantsOnParent(num);
|
||||
}
|
||||
|
||||
// Should only be called while holding tree lock
|
||||
void adjustDecendantsOnParent(int num) {
|
||||
void adjustDescendantsOnParent(int num) {
|
||||
if (parent != null) {
|
||||
parent.adjustDescendants(num);
|
||||
}
|
||||
@ -2338,7 +2338,7 @@ public class Container extends Component {
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetchs the top-most (deepest) lightweight component that is interested
|
||||
* Fetches the top-most (deepest) lightweight component that is interested
|
||||
* in receiving mouse events.
|
||||
*/
|
||||
Component getMouseEventTarget(int x, int y, boolean includeSelf) {
|
||||
@ -2887,7 +2887,7 @@ public class Container extends Component {
|
||||
modalAppContext = AppContext.getAppContext();
|
||||
|
||||
// keep the KeyEvents from being dispatched
|
||||
// until the focus has been transfered
|
||||
// until the focus has been transferred
|
||||
long time = Toolkit.getEventQueue().getMostRecentKeyEventTime();
|
||||
Component predictedFocusOwner = (Component.isInstanceOf(this, "javax.swing.JInternalFrame")) ? ((javax.swing.JInternalFrame)(this)).getMostRecentFocusOwner() : null;
|
||||
if (predictedFocusOwner != null) {
|
||||
@ -3673,7 +3673,7 @@ public class Container extends Component {
|
||||
* <ul>
|
||||
* <li>Writes default serializable fields to the stream.</li>
|
||||
* <li>Writes a list of serializable ContainerListener(s) as optional
|
||||
* data. The non-serializable ContainerListner(s) are detected and
|
||||
* data. The non-serializable ContainerListener(s) are detected and
|
||||
* no attempt is made to serialize them.</li>
|
||||
* <li>Write this Container's FocusTraversalPolicy if and only if it
|
||||
* is Serializable; otherwise, <code>null</code> is written.</li>
|
||||
|
@ -166,7 +166,7 @@ public class ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy
|
||||
retComp = cont.getFocusTraversalPolicy().getDefaultComponent(cont);
|
||||
|
||||
if (retComp != null && log.isLoggable(PlatformLogger.Level.FINE)) {
|
||||
log.fine("### Transfered focus down-cycle to " + retComp +
|
||||
log.fine("### Transferred focus down-cycle to " + retComp +
|
||||
" in the focus cycle root " + cont);
|
||||
}
|
||||
} else {
|
||||
@ -178,7 +178,7 @@ public class ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy
|
||||
cont.getFocusTraversalPolicy().getLastComponent(cont));
|
||||
|
||||
if (retComp != null && log.isLoggable(PlatformLogger.Level.FINE)) {
|
||||
log.fine("### Transfered focus to " + retComp + " in the FTP provider " + cont);
|
||||
log.fine("### Transferred focus to " + retComp + " in the FTP provider " + cont);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -228,7 +228,7 @@ public class ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy
|
||||
return null;
|
||||
}
|
||||
|
||||
// Before all the ckecks below we first see if it's an FTP provider or a focus cycle root.
|
||||
// Before all the checks below we first see if it's an FTP provider or a focus cycle root.
|
||||
// If it's the case just go down cycle (if it's set to "implicit").
|
||||
Component comp = getComponentDownCycle(aComponent, FORWARD_TRAVERSAL);
|
||||
if (comp != null) {
|
||||
|
@ -230,7 +230,7 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager {
|
||||
* If the Component is in a different AppContext, then the event is
|
||||
* posted to the other AppContext's EventQueue, and this method blocks
|
||||
* until the event is handled or target AppContext is disposed.
|
||||
* Returns true if successfuly dispatched event, false if failed
|
||||
* Returns true if successfully dispatched event, false if failed
|
||||
* to dispatch.
|
||||
*/
|
||||
static boolean sendMessage(Component target, AWTEvent e) {
|
||||
@ -349,7 +349,7 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager {
|
||||
new WindowEvent(oldFocusedWindow,
|
||||
WindowEvent.WINDOW_LOST_FOCUS,
|
||||
newFocusedWindow));
|
||||
// Failed to dispatch, clear by ourselfves
|
||||
// Failed to dispatch, clear by ourselves
|
||||
if (!isEventDispatched) {
|
||||
setGlobalFocusOwner(null);
|
||||
setGlobalFocusedWindow(null);
|
||||
@ -466,7 +466,7 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager {
|
||||
new WindowEvent(oldActiveWindow,
|
||||
WindowEvent.WINDOW_DEACTIVATED,
|
||||
newActiveWindow));
|
||||
// Failed to dispatch, clear by ourselfves
|
||||
// Failed to dispatch, clear by ourselves
|
||||
if (!isEventDispatched) {
|
||||
setGlobalActiveWindow(null);
|
||||
}
|
||||
@ -513,7 +513,7 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager {
|
||||
FocusEvent.FOCUS_LOST,
|
||||
fe.isTemporary(),
|
||||
newFocusOwner, cause));
|
||||
// Failed to dispatch, clear by ourselfves
|
||||
// Failed to dispatch, clear by ourselves
|
||||
if (!isEventDispatched) {
|
||||
setGlobalFocusOwner(null);
|
||||
if (!fe.isTemporary()) {
|
||||
@ -749,7 +749,7 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager {
|
||||
typeAheadAssertions(currentFocusedWindow, we);
|
||||
|
||||
if (oppositeWindow == null) {
|
||||
// Then we need to deactive the active Window as well.
|
||||
// Then we need to deactivate the active Window as well.
|
||||
// No need to synthesize in other cases, because
|
||||
// WINDOW_ACTIVATED will handle it if necessary.
|
||||
sendMessage(activeWindow,
|
||||
@ -954,7 +954,7 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager {
|
||||
// the Component which just gained focus. Then remove
|
||||
// that marker, any markers which immediately follow
|
||||
// and are tied to the same component, and all markers
|
||||
// that preceed it. This handles the case where
|
||||
// that precede it. This handles the case where
|
||||
// multiple focus requests were made for the same
|
||||
// Component in a row and when we lost some of the
|
||||
// earlier requests. Since FOCUS_GAINED events will
|
||||
|
@ -387,7 +387,7 @@ public class Desktop {
|
||||
return;
|
||||
}
|
||||
|
||||
// Calling thread doesn't have necessary priviledges.
|
||||
// Calling thread doesn't have necessary privileges.
|
||||
// Delegate to DesktopBrowse so that it can work in
|
||||
// applet/webstart.
|
||||
URL url = null;
|
||||
|
@ -260,7 +260,7 @@ public class Dialog extends Window {
|
||||
* The "toolkitModality" <code>AWTPermission</code> must be granted
|
||||
* for this exclusion. If an exclusion property is being changed to
|
||||
* <code>TOOLKIT_EXCLUDE</code> and this permission is not granted, a
|
||||
* <code>SecurityEcxeption</code> will be thrown, and the exclusion
|
||||
* <code>SecurityException</code> will be thrown, and the exclusion
|
||||
* property will be left unchanged.
|
||||
*/
|
||||
TOOLKIT_EXCLUDE
|
||||
@ -554,7 +554,7 @@ public class Dialog extends Window {
|
||||
*
|
||||
* @param owner the owner of the dialog. The owner must be an instance of
|
||||
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
|
||||
* of their descendents or <code>null</code>
|
||||
* of their descendants or <code>null</code>
|
||||
*
|
||||
* @exception java.lang.IllegalArgumentException if the <code>owner</code>
|
||||
* is not an instance of {@link java.awt.Dialog Dialog} or {@link
|
||||
@ -578,7 +578,7 @@ public class Dialog extends Window {
|
||||
*
|
||||
* @param owner the owner of the dialog. The owner must be an instance of
|
||||
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
|
||||
* of their descendents or <code>null</code>
|
||||
* of their descendants or <code>null</code>
|
||||
* @param title the title of the dialog or <code>null</code> if this dialog
|
||||
* has no title
|
||||
*
|
||||
@ -604,7 +604,7 @@ public class Dialog extends Window {
|
||||
*
|
||||
* @param owner the owner of the dialog. The owner must be an instance of
|
||||
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
|
||||
* of their descendents or <code>null</code>
|
||||
* of their descendants or <code>null</code>
|
||||
* @param modalityType specifies whether dialog blocks input to other
|
||||
* windows when shown. <code>null</code> value and unsupported modality
|
||||
* types are equivalent to <code>MODELESS</code>
|
||||
@ -637,7 +637,7 @@ public class Dialog extends Window {
|
||||
*
|
||||
* @param owner the owner of the dialog. The owner must be an instance of
|
||||
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
|
||||
* of their descendents or <code>null</code>
|
||||
* of their descendants or <code>null</code>
|
||||
* @param title the title of the dialog or <code>null</code> if this dialog
|
||||
* has no title
|
||||
* @param modalityType specifies whether dialog blocks input to other
|
||||
@ -685,7 +685,7 @@ public class Dialog extends Window {
|
||||
*
|
||||
* @param owner the owner of the dialog. The owner must be an instance of
|
||||
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
|
||||
* of their descendents or <code>null</code>
|
||||
* of their descendants or <code>null</code>
|
||||
* @param title the title of the dialog or <code>null</code> if this dialog
|
||||
* has no title
|
||||
* @param modalityType specifies whether dialog blocks input to other
|
||||
@ -796,7 +796,7 @@ public class Dialog extends Window {
|
||||
* @param modal specifies whether dialog blocks input to other windows
|
||||
* when shown; calling to <code>setModal(true)</code> is equivalent to
|
||||
* <code>setModalityType(Dialog.DEFAULT_MODALITY_TYPE)</code>, and
|
||||
* calling to <code>setModal(false)</code> is equvivalent to
|
||||
* calling to <code>setModal(false)</code> is equivalent to
|
||||
* <code>setModalityType(Dialog.ModalityType.MODELESS)</code>
|
||||
*
|
||||
* @see java.awt.Dialog#DEFAULT_MODALITY_TYPE
|
||||
@ -926,7 +926,7 @@ public class Dialog extends Window {
|
||||
if (toFocus != null && time != null && isFocusable() &&
|
||||
isEnabled() && !isModalBlocked()) {
|
||||
// keep the KeyEvents from being dispatched
|
||||
// until the focus has been transfered
|
||||
// until the focus has been transferred
|
||||
time.set(Toolkit.getEventQueue().getMostRecentKeyEventTime());
|
||||
KeyboardFocusManager.getCurrentKeyboardFocusManager().
|
||||
enqueueKeyEvents(time.get(), toFocus);
|
||||
|
@ -43,7 +43,7 @@ import sun.awt.dnd.SunDragSourceContextPeer;
|
||||
* pumpEvents(Conditional) in its run() method. Event handlers can choose to
|
||||
* block this event pump at any time, but should start a new pump (<b>not</b>
|
||||
* a new EventDispatchThread) by again calling pumpEvents(Conditional). This
|
||||
* secondary event pump will exit automatically as soon as the Condtional
|
||||
* secondary event pump will exit automatically as soon as the Conditional
|
||||
* evaluate()s to false and an additional Event is pumped and dispatched.
|
||||
*
|
||||
* @author Tom Ball
|
||||
|
@ -32,7 +32,7 @@ interface EventFilter {
|
||||
*/
|
||||
static enum FilterAction {
|
||||
/**
|
||||
* ACCEPT means that this filter do not filter the event and allowes other
|
||||
* ACCEPT means that this filter do not filter the event and allows other
|
||||
* active filters to proceed it. If all the active filters accept the event, it
|
||||
* is dispatched by the <code>EventDispatchThread</code>
|
||||
* @see EventDispatchThread#pumpEventsForFilter
|
||||
|
@ -418,7 +418,7 @@ public class EventQueue {
|
||||
/*
|
||||
* Should avoid of calling this method by any means
|
||||
* as it's working time is dependant on EQ length.
|
||||
* In the wors case this method alone can slow down the entire application
|
||||
* In the worst case this method alone can slow down the entire application
|
||||
* 10 times by stalling the Event processing.
|
||||
* Only here by backward compatibility reasons.
|
||||
*/
|
||||
|
@ -161,7 +161,7 @@ public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
int newAlign; // This is the one we actually use
|
||||
|
||||
/**
|
||||
* The flow layout manager allows a seperation of
|
||||
* The flow layout manager allows a separation of
|
||||
* components with gaps. The horizontal gap will
|
||||
* specify the space between components and between
|
||||
* the components and the borders of the
|
||||
@ -174,7 +174,7 @@ public class FlowLayout implements LayoutManager, java.io.Serializable {
|
||||
int hgap;
|
||||
|
||||
/**
|
||||
* The flow layout manager allows a seperation of
|
||||
* The flow layout manager allows a separation of
|
||||
* components with gaps. The vertical gap will
|
||||
* specify the space between rows and between the
|
||||
* the rows and the borders of the <code>Container</code>.
|
||||
|
@ -335,7 +335,7 @@ public class Font implements java.io.Serializable
|
||||
public static final int CENTER_BASELINE = 1;
|
||||
|
||||
/**
|
||||
* The baseline used in Devanigiri and similar scripts when laying
|
||||
* The baseline used in Devanagari and similar scripts when laying
|
||||
* out text.
|
||||
*/
|
||||
public static final int HANGING_BASELINE = 2;
|
||||
@ -852,7 +852,7 @@ public class Font implements java.io.Serializable
|
||||
* <p>
|
||||
* To make the <code>Font</code> available to Font constructors the
|
||||
* returned <code>Font</code> must be registered in the
|
||||
* <code>GraphicsEnviroment</code> by calling
|
||||
* <code>GraphicsEnvironment</code> by calling
|
||||
* {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}.
|
||||
* @param fontFormat the type of the <code>Font</code>, which is
|
||||
* {@link #TRUETYPE_FONT TRUETYPE_FONT} if a TrueType resource is specified.
|
||||
@ -1018,7 +1018,7 @@ public class Font implements java.io.Serializable
|
||||
* <p>
|
||||
* To make the <code>Font</code> available to Font constructors the
|
||||
* returned <code>Font</code> must be registered in the
|
||||
* <code>GraphicsEnviroment</code> by calling
|
||||
* <code>GraphicsEnvironment</code> by calling
|
||||
* {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}.
|
||||
* @param fontFile a <code>File</code> object representing the
|
||||
* input data for the font.
|
||||
@ -1685,7 +1685,7 @@ public class Font implements java.io.Serializable
|
||||
|
||||
|
||||
/** Serialization support. A <code>readObject</code>
|
||||
* method is neccessary because the constructor creates
|
||||
* method is necessary because the constructor creates
|
||||
* the font's peer, and we can't serialize the peer.
|
||||
* Similarly the computed font "family" may be different
|
||||
* at <code>readObject</code> time than at
|
||||
|
@ -348,7 +348,7 @@ public class Frame extends Window implements MenuContainer {
|
||||
|
||||
/*
|
||||
* The Windows owned by the Frame.
|
||||
* Note: in 1.2 this has been superceded by Window.ownedWindowList
|
||||
* Note: in 1.2 this has been superseded by Window.ownedWindowList
|
||||
*
|
||||
* @serial
|
||||
* @see java.awt.Window#ownedWindowList
|
||||
|
@ -97,12 +97,13 @@ public abstract class GraphicsEnvironment {
|
||||
// long t0 = System.currentTimeMillis();
|
||||
Class<?> geCls;
|
||||
try {
|
||||
// First we try if the bootclassloader finds the requested
|
||||
// class. This way we can avoid to run in a privileged block.
|
||||
// First we try if the bootstrap class loader finds the
|
||||
// requested class. This way we can avoid to run in a privileged
|
||||
// block.
|
||||
geCls = Class.forName(nm);
|
||||
} catch (ClassNotFoundException ex) {
|
||||
// If the bootclassloader fails, we try again with the
|
||||
// application classloader.
|
||||
// If the bootstrap class loader fails, we try again with the
|
||||
// application class loader.
|
||||
ClassLoader cl = ClassLoader.getSystemClassLoader();
|
||||
geCls = Class.forName(nm, true, cl);
|
||||
}
|
||||
|
@ -556,7 +556,7 @@ public class GridBagConstraints implements Cloneable, java.io.Serializable {
|
||||
transient int ascent;
|
||||
transient int descent;
|
||||
transient Component.BaselineResizeBehavior baselineResizeBehavior;
|
||||
// The folllowing two fields are used if the baseline type is
|
||||
// The following two fields are used if the baseline type is
|
||||
// CENTER_OFFSET.
|
||||
// centerPadding is either 0 or 1 and indicates if
|
||||
// the height needs to be padded by one when calculating where the
|
||||
|
@ -1096,7 +1096,7 @@ java.io.Serializable {
|
||||
}
|
||||
|
||||
/* Adjust the grid width and height
|
||||
* fix for 5005945: unneccessary loops removed
|
||||
* fix for 5005945: unnecessary loops removed
|
||||
*/
|
||||
px = curX + curWidth;
|
||||
if (layoutWidth < px) {
|
||||
@ -1358,7 +1358,7 @@ java.io.Serializable {
|
||||
/*
|
||||
* Pass #3
|
||||
*
|
||||
* Distribute the minimun widths and weights:
|
||||
* Distribute the minimum widths and weights:
|
||||
*/
|
||||
|
||||
nextSize = Integer.MAX_VALUE;
|
||||
@ -1578,7 +1578,7 @@ java.io.Serializable {
|
||||
// Component has a baseline resize behavior of
|
||||
// CENTER_OFFSET, calculate centerPadding and
|
||||
// centerOffset (see the description of
|
||||
// CENTER_OFFSET in the enum for detais on this
|
||||
// CENTER_OFFSET in the enum for details on this
|
||||
// algorithm).
|
||||
int nextBaseline = c.getBaseline(w, h + 1);
|
||||
constraints.centerOffset = baseline - h / 2;
|
||||
|
@ -298,8 +298,8 @@ public final class JobAttributes implements Cloneable {
|
||||
* @param defaultSelection <code>DefaultSelectionType.ALL</code>,
|
||||
* <code>DefaultSelectionType.RANGE</code>, or
|
||||
* <code>DefaultSelectionType.SELECTION</code>
|
||||
* @param destination <code>DesintationType.FILE</code> or
|
||||
* <code>DesintationType.PRINTER</code>
|
||||
* @param destination <code>DestinationType.FILE</code> or
|
||||
* <code>DestinationType.PRINTER</code>
|
||||
* @param dialog <code>DialogType.COMMON</code>,
|
||||
* <code>DialogType.NATIVE</code>, or
|
||||
* <code>DialogType.NONE</code>
|
||||
@ -462,7 +462,7 @@ public final class JobAttributes implements Cloneable {
|
||||
* these attributes. This attribute is updated to the value chosen by the
|
||||
* user.
|
||||
*
|
||||
* @return DesintationType.FILE or DesintationType.PRINTER
|
||||
* @return DestinationType.FILE or DestinationType.PRINTER
|
||||
*/
|
||||
public DestinationType getDestination() {
|
||||
return destination;
|
||||
@ -471,9 +471,9 @@ public final class JobAttributes implements Cloneable {
|
||||
/**
|
||||
* Specifies whether output will be to a printer or a file for jobs using
|
||||
* these attributes. Not specifying this attribute is equivalent to
|
||||
* specifying DesintationType.PRINTER.
|
||||
* specifying DestinationType.PRINTER.
|
||||
*
|
||||
* @param destination DesintationType.FILE or DesintationType.PRINTER.
|
||||
* @param destination DestinationType.FILE or DestinationType.PRINTER.
|
||||
* @throws IllegalArgumentException if destination is null.
|
||||
*/
|
||||
public void setDestination(DestinationType destination) {
|
||||
|
@ -2244,7 +2244,7 @@ public abstract class KeyboardFocusManager
|
||||
}
|
||||
public String toString() {
|
||||
boolean first = true;
|
||||
String str = "HeavyweightFocusRequest[heavweight=" + heavyweight +
|
||||
String str = "HeavyweightFocusRequest[heavyweight=" + heavyweight +
|
||||
",lightweightRequests=";
|
||||
if (lightweightRequests == null) {
|
||||
str += null;
|
||||
@ -2666,7 +2666,7 @@ public abstract class KeyboardFocusManager
|
||||
* We allow to trigger restoreFocus() in the dispatching process
|
||||
* only if we have the last request to dispatch. If the last request
|
||||
* fails, focus will be restored to either the component of the last
|
||||
* previously succedded request, or to to the focus owner that was
|
||||
* previously succeeded request, or to to the focus owner that was
|
||||
* before this clearing process.
|
||||
*/
|
||||
if (!iter.hasNext()) {
|
||||
@ -2765,7 +2765,7 @@ public abstract class KeyboardFocusManager
|
||||
if (source == hwFocusRequest.getFirstLightweightRequest().component)
|
||||
{
|
||||
source = hwFocusRequest.heavyweight;
|
||||
nativeSource = source; // source is heavuweight itself
|
||||
nativeSource = source; // source is heavyweight itself
|
||||
}
|
||||
}
|
||||
if (hwFocusRequest != null &&
|
||||
@ -2783,7 +2783,7 @@ public abstract class KeyboardFocusManager
|
||||
if (currentFocusOwner != null) {
|
||||
/*
|
||||
* Since we receive FOCUS_GAINED when current focus
|
||||
* owner is not null, correcponding FOCUS_LOST is supposed
|
||||
* owner is not null, corresponding FOCUS_LOST is supposed
|
||||
* to be lost. And so, we keep new focus owner
|
||||
* to determine synthetic FOCUS_LOST event which will be
|
||||
* generated by KeyboardFocusManager for this FOCUS_GAINED.
|
||||
|
@ -1652,7 +1652,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
|
||||
|
||||
//
|
||||
// AccessibleComponent delegatation to parent List
|
||||
// AccessibleComponent delegation to parent List
|
||||
//
|
||||
|
||||
/**
|
||||
@ -1859,7 +1859,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
* screen's coordinate space.
|
||||
*
|
||||
* @return An instance of Point representing the top-left corner of
|
||||
* the objects's bounds in the coordinate space of the screen; null
|
||||
* the object's bounds in the coordinate space of the screen; null
|
||||
* if this object or its parent are not on the screen
|
||||
* @see #getBounds
|
||||
* @see #getLocationOnScreen
|
||||
@ -1907,7 +1907,7 @@ public class List extends Component implements ItemSelectable, Accessible {
|
||||
/**
|
||||
* Returns the size of this object in the form of a Dimension
|
||||
* object. The height field of the Dimension object contains this
|
||||
* objects's height, and the width field of the Dimension object
|
||||
* object's height, and the width field of the Dimension object
|
||||
* contains this object's width.
|
||||
*
|
||||
* @return A Dimension object that indicates the size of this
|
||||
|
@ -76,7 +76,7 @@ public class MenuShortcut implements java.io.Serializable
|
||||
int key;
|
||||
|
||||
/**
|
||||
* Indicates whether the shft key was pressed.
|
||||
* Indicates whether the shift key was pressed.
|
||||
* If true, the shift key was pressed.
|
||||
* If false, the shift key was not pressed
|
||||
*
|
||||
|
@ -145,8 +145,8 @@ public class Polygon implements Shape, java.io.Serializable {
|
||||
* @since 1.0
|
||||
*/
|
||||
public Polygon(int xpoints[], int ypoints[], int npoints) {
|
||||
// Fix 4489009: should throw IndexOutofBoundsException instead
|
||||
// of OutofMemoryException if npoints is huge and > {x,y}points.length
|
||||
// Fix 4489009: should throw IndexOutOfBoundsException instead
|
||||
// of OutOfMemoryError if npoints is huge and > {x,y}points.length
|
||||
if (npoints > xpoints.length || npoints > ypoints.length) {
|
||||
throw new IndexOutOfBoundsException("npoints > xpoints.length || "+
|
||||
"npoints > ypoints.length");
|
||||
@ -559,7 +559,7 @@ public class Polygon implements Shape, java.io.Serializable {
|
||||
* coordinates as they are returned in the iteration, or
|
||||
* <code>null</code> if untransformed coordinates are desired
|
||||
* @param flatness the maximum amount that the control points
|
||||
* for a given curve can vary from colinear before a subdivided
|
||||
* for a given curve can vary from collinear before a subdivided
|
||||
* curve is replaced by a straight line connecting the
|
||||
* endpoints. Since polygons are already flat the
|
||||
* <code>flatness</code> parameter is ignored.
|
||||
|
@ -33,7 +33,7 @@ import java.awt.image.ColorModel;
|
||||
|
||||
/**
|
||||
* Provides the actual implementation for the RadialGradientPaint.
|
||||
* This is where the pixel processing is done. A RadialGradienPaint
|
||||
* This is where the pixel processing is done. A RadialGradientPaint
|
||||
* only supports circular gradients, but it should be possible to scale
|
||||
* the circle to look approximately elliptical, by means of a
|
||||
* gradient transform passed into the RadialGradientPaint constructor.
|
||||
@ -133,7 +133,7 @@ final class RadialGradientPaintContext extends MultipleGradientPaintContext {
|
||||
this.isSimpleFocus = (focusX == centerX) && (focusY == centerY);
|
||||
this.isNonCyclic = (cycleMethod == CycleMethod.NO_CYCLE);
|
||||
|
||||
// for use in the quadractic equation
|
||||
// for use in the quadratic equation
|
||||
radiusSq = radius * radius;
|
||||
|
||||
float dX = focusX - centerX;
|
||||
|
@ -49,10 +49,10 @@ import java.beans.Transient;
|
||||
* will include the location of the {@code Rectangle} on that axis in the
|
||||
* result as if the {@link #add(Point)} method were being called.
|
||||
* <p>
|
||||
* <a name="NonExistant">
|
||||
* <a name="NonExistent">
|
||||
* A {@code Rectangle} whose width or height is negative has neither
|
||||
* location nor dimension along those axes with negative dimensions.
|
||||
* Such a {@code Rectangle} is treated as non-existant along those axes.
|
||||
* Such a {@code Rectangle} is treated as non-existent along those axes.
|
||||
* Such a {@code Rectangle} is also empty with respect to containment
|
||||
* calculations and methods which test if it contains or intersects a
|
||||
* point or rectangle will always return false.
|
||||
@ -106,7 +106,7 @@ import java.beans.Transient;
|
||||
* moved to store it into its pair of 32-bit fields then the dimensions
|
||||
* will be adjusted relative to the "best representation" of the location.
|
||||
* If the true result had a negative dimension and was therefore
|
||||
* non-existant along one or both axes, the stored dimensions will be
|
||||
* non-existent along one or both axes, the stored dimensions will be
|
||||
* negative numbers in those axes.
|
||||
* If the true result had a location that could be represented within
|
||||
* the range of 32-bit integers, but zero dimension along one or both
|
||||
@ -381,7 +381,7 @@ public class Rectangle extends Rectangle2D
|
||||
// We cannot even reach the left side of the specified
|
||||
// rectangle even with both x & width set to MAX_VALUE.
|
||||
// The intersection with the "maximal integer rectangle"
|
||||
// is non-existant so we should use a width < 0.
|
||||
// is non-existent so we should use a width < 0.
|
||||
// REMIND: Should we try to determine a more "meaningful"
|
||||
// adjusted value for neww than just "-1"?
|
||||
newx = Integer.MAX_VALUE;
|
||||
@ -845,7 +845,7 @@ public class Rectangle extends Rectangle2D
|
||||
* represents the union of the two rectangles.
|
||||
* <p>
|
||||
* If either {@code Rectangle} has any dimension less than zero
|
||||
* the rules for <a href=#NonExistant>non-existant</a> rectangles
|
||||
* the rules for <a href=#NonExistent>non-existent</a> rectangles
|
||||
* apply.
|
||||
* If only one has a dimension less than zero, then the result
|
||||
* will be a copy of the other {@code Rectangle}.
|
||||
@ -867,8 +867,8 @@ public class Rectangle extends Rectangle2D
|
||||
if ((tx2 | ty2) < 0) {
|
||||
// This rectangle has negative dimensions...
|
||||
// If r has non-negative dimensions then it is the answer.
|
||||
// If r is non-existant (has a negative dimension), then both
|
||||
// are non-existant and we can return any non-existant rectangle
|
||||
// If r is non-existent (has a negative dimension), then both
|
||||
// are non-existent and we can return any non-existent rectangle
|
||||
// as an answer. Thus, returning r meets that criterion.
|
||||
// Either way, r is our answer.
|
||||
return new Rectangle(r);
|
||||
@ -905,7 +905,7 @@ public class Rectangle extends Rectangle2D
|
||||
* to the bounds of this {@code Rectangle}.
|
||||
* <p>
|
||||
* If this {@code Rectangle} has any dimension less than zero,
|
||||
* the rules for <a href=#NonExistant>non-existant</a>
|
||||
* the rules for <a href=#NonExistent>non-existent</a>
|
||||
* rectangles apply.
|
||||
* In that case, the new bounds of this {@code Rectangle} will
|
||||
* have a location equal to the specified coordinates and
|
||||
@ -956,7 +956,7 @@ public class Rectangle extends Rectangle2D
|
||||
* {@code Rectangle}.
|
||||
* <p>
|
||||
* If this {@code Rectangle} has any dimension less than zero,
|
||||
* the rules for <a href=#NonExistant>non-existant</a>
|
||||
* the rules for <a href=#NonExistent>non-existent</a>
|
||||
* rectangles apply.
|
||||
* In that case, the new bounds of this {@code Rectangle} will
|
||||
* have a location equal to the coordinates of the specified
|
||||
@ -1075,7 +1075,7 @@ public class Rectangle extends Rectangle2D
|
||||
y1 += v;
|
||||
|
||||
if (x1 < x0) {
|
||||
// Non-existant in X direction
|
||||
// Non-existent in X direction
|
||||
// Final width must remain negative so subtract x0 before
|
||||
// it is clipped so that we avoid the risk that the clipping
|
||||
// of x0 will reverse the ordering of x0 and x1.
|
||||
@ -1098,7 +1098,7 @@ public class Rectangle extends Rectangle2D
|
||||
}
|
||||
|
||||
if (y1 < y0) {
|
||||
// Non-existant in Y direction
|
||||
// Non-existent in Y direction
|
||||
y1 -= y0;
|
||||
if (y1 < Integer.MIN_VALUE) y1 = Integer.MIN_VALUE;
|
||||
if (y0 < Integer.MIN_VALUE) y0 = Integer.MIN_VALUE;
|
||||
|
@ -670,7 +670,7 @@ public class RenderingHints
|
||||
* When images are rendered upright with no scaling onto a
|
||||
* destination, the choice of which image pixels map to which
|
||||
* device pixels is obvious and the samples at the integer
|
||||
* coordinate locations in the image are transfered to the
|
||||
* coordinate locations in the image are transferred to the
|
||||
* pixels at the corresponding integer locations on the device
|
||||
* pixel grid one for one.
|
||||
* When images are rendered in a scaled, rotated, or otherwise
|
||||
@ -1167,7 +1167,7 @@ public class RenderingHints
|
||||
|
||||
/**
|
||||
* Returns a <code>Collection</code> view of the values
|
||||
* contained in this <code>RenderinHints</code>.
|
||||
* contained in this <code>RenderingHints</code>.
|
||||
* The <code>Collection</code> is backed by the
|
||||
* <code>RenderingHints</code>, so changes to
|
||||
* the <code>RenderingHints</code> are reflected in
|
||||
|
@ -333,7 +333,7 @@ public class ScrollPaneAdjustable implements Adjustable, Serializable {
|
||||
* If the value supplied is less than the current minimum or
|
||||
* greater than the current maximum, then one of those values is
|
||||
* substituted, as appropriate. Also, creates and dispatches
|
||||
* the AdjustementEvent with specified type and value.
|
||||
* the AdjustmentEvent with specified type and value.
|
||||
*
|
||||
* @param v the new value of the scrollbar
|
||||
* @param type the type of the scrolling operation occurred
|
||||
|
@ -716,7 +716,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* scroll bar, generally through a mouse or keyboard gesture
|
||||
* that the scroll bar receives as an adjustment event.
|
||||
* The unit increment must be greater than zero.
|
||||
* Attepts to set the unit increment to a value lower than 1
|
||||
* Attempts to set the unit increment to a value lower than 1
|
||||
* will result in a value of 1 being set.
|
||||
* <p>
|
||||
* In some operating systems, this property
|
||||
@ -794,7 +794,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
|
||||
* scroll bar, generally through a mouse or keyboard gesture
|
||||
* that the scroll bar receives as an adjustment event.
|
||||
* The block increment must be greater than zero.
|
||||
* Attepts to set the block increment to a value lower than 1
|
||||
* Attempts to set the block increment to a value lower than 1
|
||||
* will result in a value of 1 being set.
|
||||
*
|
||||
* @param v the amount by which to increment or decrement
|
||||
|
@ -952,7 +952,7 @@ public class TextComponent extends Component implements Accessible {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of characters (valid indicies)
|
||||
* Returns the number of characters (valid indices)
|
||||
*
|
||||
* @return the number of characters >= 0
|
||||
*/
|
||||
|
@ -684,7 +684,7 @@ public class Window extends Container implements Accessible {
|
||||
* appropriate dimensions from the beginning. If the list contains
|
||||
* several images of the same size, the first will be used.
|
||||
* <p>
|
||||
* Ownerless windows with no icon specified use platfrom-default icon.
|
||||
* Ownerless windows with no icon specified use platform-default icon.
|
||||
* The icon of an owned window may be inherited from the owner
|
||||
* unless explicitly overridden.
|
||||
* Setting the icon to {@code null} or empty list restores
|
||||
@ -1239,9 +1239,9 @@ public class Window extends Container implements Accessible {
|
||||
}
|
||||
|
||||
// Should only be called while holding tree lock
|
||||
void adjustDecendantsOnParent(int num) {
|
||||
void adjustDescendantsOnParent(int num) {
|
||||
// do nothing since parent == owner and we shouldn't
|
||||
// ajust counter on owner
|
||||
// adjust counter on owner
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -700,7 +700,7 @@ public class ICC_Profile implements Serializable {
|
||||
|
||||
|
||||
/**
|
||||
* ICC Profile Constant: tag type signaturE.
|
||||
* ICC Profile Constant: tag type signature.
|
||||
*/
|
||||
public static final int icTagType = 0; /* tag type signature */
|
||||
|
||||
@ -1874,7 +1874,7 @@ public class ICC_Profile implements Serializable {
|
||||
return canonicalFileName.startsWith(canonicalDirName);
|
||||
} catch (IOException e) {
|
||||
/* we do not expect the IOException here, because invocation
|
||||
* of this function is always preceeded by isFile() call.
|
||||
* of this function is always preceded by isFile() call.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
@ -1903,7 +1903,7 @@ public class ICC_Profile implements Serializable {
|
||||
* resolve the bogus deserialized profile object with one obtained
|
||||
* with getInstance as well.
|
||||
*
|
||||
* There're two primary factory methods for construction of ICC
|
||||
* There are two primary factory methods for construction of ICC
|
||||
* profiles: getInstance(int cspace) and getInstance(byte[] data).
|
||||
* This implementation of ICC_Profile uses the former to return a
|
||||
* cached singleton profile object, other implementations will
|
||||
|
@ -233,7 +233,7 @@ MimeTypeParameterList(rawdata.substring(semIndex));
|
||||
/**
|
||||
* Remove any value associated with the given name.
|
||||
*
|
||||
* @throw IllegalArgumentExcpetion if parameter may not be deleted
|
||||
* @throw IllegalArgumentException if parameter may not be deleted
|
||||
*/
|
||||
public void removeParameter(String name) {
|
||||
parameters.remove(name);
|
||||
|
@ -163,7 +163,7 @@ class MimeTypeParameterList implements Cloneable {
|
||||
lastIndex = currentIndex;
|
||||
|
||||
if(currentIndex < length) {
|
||||
// find the next unescqped quote
|
||||
// find the next unescaped quote
|
||||
foundit = false;
|
||||
while((currentIndex < length) && !foundit) {
|
||||
currentChar = rawdata.charAt(currentIndex);
|
||||
@ -171,7 +171,7 @@ class MimeTypeParameterList implements Cloneable {
|
||||
// found an escape sequence so pass this and the next character
|
||||
currentIndex += 2;
|
||||
} else if(currentChar == '"') {
|
||||
// foundit!
|
||||
// found it!
|
||||
foundit = true;
|
||||
} else {
|
||||
++currentIndex;
|
||||
|
@ -714,7 +714,7 @@ public final class SystemFlavorMap implements FlavorMap, FlavorTable {
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
private static final String [] htmlDocumntTypes =
|
||||
private static final String [] htmlDocumentTypes =
|
||||
new String [] {"all", "selection", "fragment"};
|
||||
|
||||
private static LinkedHashSet<String> handleHtmlMimeTypes(String baseType,
|
||||
@ -723,7 +723,7 @@ public final class SystemFlavorMap implements FlavorMap, FlavorTable {
|
||||
LinkedHashSet<String> returnValues = new LinkedHashSet<>();
|
||||
|
||||
if (HTML_TEXT_BASE_TYPE.equals(baseType)) {
|
||||
for (String documentType : htmlDocumntTypes) {
|
||||
for (String documentType : htmlDocumentTypes) {
|
||||
returnValues.add(mimeType + ";document=" + documentType);
|
||||
}
|
||||
} else {
|
||||
|
@ -547,7 +547,7 @@ public class DragSource implements Serializable {
|
||||
/**
|
||||
* Adds the specified <code>DragSourceListener</code> to this
|
||||
* <code>DragSource</code> to receive drag source events during drag
|
||||
* operations intiated with this <code>DragSource</code>.
|
||||
* operations initiated with this <code>DragSource</code>.
|
||||
* If a <code>null</code> listener is specified, no action is taken and no
|
||||
* exception is thrown.
|
||||
*
|
||||
@ -607,7 +607,7 @@ public class DragSource implements Serializable {
|
||||
/**
|
||||
* Adds the specified <code>DragSourceMotionListener</code> to this
|
||||
* <code>DragSource</code> to receive drag motion events during drag
|
||||
* operations intiated with this <code>DragSource</code>.
|
||||
* operations initiated with this <code>DragSource</code>.
|
||||
* If a <code>null</code> listener is specified, no action is taken and no
|
||||
* exception is thrown.
|
||||
*
|
||||
|
@ -453,7 +453,7 @@ public class DropTarget implements DropTargetListener, Serializable {
|
||||
|
||||
if (dtListener != null && active)
|
||||
dtListener.drop(dtde);
|
||||
else { // we should'nt get here ...
|
||||
else { // we shouldn't get here ...
|
||||
dtde.rejectDrop();
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ public interface DropTargetListener extends EventListener {
|
||||
* gesture. The <code>DropTargetDropEvent</code>
|
||||
* provides a means to obtain a <code>Transferable</code>
|
||||
* object that represents the data object(s) to
|
||||
* be transfered.<P>
|
||||
* be transferred.<P>
|
||||
* From this method, the <code>DropTargetListener</code>
|
||||
* shall accept or reject the drop via the
|
||||
* acceptDrop(int dropAction) or rejectDrop() methods of the
|
||||
|
@ -32,7 +32,7 @@ import java.awt.dnd.DropTarget;
|
||||
* The DropTargetPeer class is the interface to the platform dependent
|
||||
* DnD facilities. Since the DnD system is based on the native platform's
|
||||
* facilities, a DropTargetPeer will be associated with a ComponentPeer
|
||||
* of the nearsest enclosing native Container (in the case of lightweights)
|
||||
* of the nearest enclosing native Container (in the case of lightweights)
|
||||
* </p>
|
||||
*
|
||||
* @since 1.2
|
||||
|
@ -167,7 +167,7 @@ public abstract class InputEvent extends ComponentEvent {
|
||||
private static final int [] BUTTON_DOWN_MASK = new int [] { BUTTON1_DOWN_MASK,
|
||||
BUTTON2_DOWN_MASK,
|
||||
BUTTON3_DOWN_MASK,
|
||||
1<<14, //4th phisical button (this is not a wheel!)
|
||||
1<<14, //4th physical button (this is not a wheel!)
|
||||
1<<15, //(this is not a wheel!)
|
||||
1<<16,
|
||||
1<<17,
|
||||
@ -245,7 +245,7 @@ public abstract class InputEvent extends ComponentEvent {
|
||||
*/
|
||||
public static int getMaskForButton(int button) {
|
||||
if (button <= 0 || button > BUTTON_DOWN_MASK.length) {
|
||||
throw new IllegalArgumentException("button doesn\'t exist " + button);
|
||||
throw new IllegalArgumentException("button doesn't exist " + button);
|
||||
}
|
||||
return BUTTON_DOWN_MASK[button - 1];
|
||||
}
|
||||
|
@ -1814,7 +1814,7 @@ public class KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Sets new modifiers by the old ones. The key modifiers
|
||||
* override overlaping mouse modifiers.
|
||||
* override overlapping mouse modifiers.
|
||||
*/
|
||||
private void setNewModifiers() {
|
||||
if ((modifiers & SHIFT_MASK) != 0) {
|
||||
@ -1863,7 +1863,7 @@ public class KeyEvent extends InputEvent {
|
||||
|
||||
/**
|
||||
* Sets new modifiers by the old ones. The key modifiers
|
||||
* override overlaping mouse modifiers.
|
||||
* override overlapping mouse modifiers.
|
||||
* @serial
|
||||
*/
|
||||
private void readObject(ObjectInputStream s)
|
||||
|
@ -34,7 +34,7 @@ import sun.awt.SunToolkit;
|
||||
* A low-level event that indicates that a window has changed its status. This
|
||||
* low-level event is generated by a Window object when it is opened, closed,
|
||||
* activated, deactivated, iconified, or deiconified, or when focus is
|
||||
* transfered into or out of the Window.
|
||||
* transferred into or out of the Window.
|
||||
* <P>
|
||||
* The event is passed to every <code>WindowListener</code>
|
||||
* or <code>WindowAdapter</code> object which registered to receive such
|
||||
|
@ -39,7 +39,7 @@ import java.util.EventListener;
|
||||
* using the <code>Window</code>'s <code>addWindowFocusListener</code> method.
|
||||
* When the <code>Window</code>'s
|
||||
* status changes by virtue of it being opened, closed, activated, deactivated,
|
||||
* iconified, or deiconified, or by focus being transfered into or out of the
|
||||
* iconified, or deiconified, or by focus being transferred into or out of the
|
||||
* <code>Window</code>, the relevant method in the listener object is invoked,
|
||||
* and the <code>WindowEvent</code> is passed to it.
|
||||
*
|
||||
|
@ -62,7 +62,7 @@ import java.awt.font.GlyphJustificationInfo;
|
||||
* A <code>GlyphVector</code> is associated with exactly one
|
||||
* <code>Font</code>, and can provide data useful only in relation to
|
||||
* this <code>Font</code>. In addition, metrics obtained from a
|
||||
* <code>GlyphVector</code> are not generally geometrically scaleable
|
||||
* <code>GlyphVector</code> are not generally geometrically scalable
|
||||
* since the pixelization and spacing are dependent on grid-fitting
|
||||
* algorithms within a <code>Font</code>. To facilitate accurate
|
||||
* measurement of a <code>GlyphVector</code> and its component
|
||||
|
@ -58,7 +58,7 @@ public final class ImageGraphicAttribute extends GraphicAttribute {
|
||||
private float fOriginX, fOriginY;
|
||||
|
||||
/**
|
||||
* Constucts an <code>ImageGraphicAttribute</code> from the specified
|
||||
* Constructs an <code>ImageGraphicAttribute</code> from the specified
|
||||
* {@link Image}. The origin is at (0, 0).
|
||||
* @param image the <code>Image</code> rendered by this
|
||||
* <code>ImageGraphicAttribute</code>.
|
||||
|
@ -89,7 +89,7 @@ import sun.misc.SharedSecrets;
|
||||
* or creating a {@code Set} with the {@link NumericShaper.Range}
|
||||
* constants, such as:
|
||||
* <blockquote><pre>
|
||||
* EnumSet.of(NumericShaper.Scirpt.ARABIC, NumericShaper.Range.TAMIL)
|
||||
* EnumSet.of(NumericShaper.Range.ARABIC, NumericShaper.Range.TAMIL)
|
||||
* </pre></blockquote>
|
||||
* The enum-based ranges are a super set of the bit mask-based ones.
|
||||
*
|
||||
@ -475,7 +475,7 @@ public final class NumericShaper implements java.io.Serializable {
|
||||
/** Identifies all ranges, for full contextual shaping.
|
||||
*
|
||||
* <p>This constant specifies all of the bit mask-based
|
||||
* ranges. Use {@code EmunSet.allOf(NumericShaper.Range.class)} to
|
||||
* ranges. Use {@code EnumSet.allOf(NumericShaper.Range.class)} to
|
||||
* specify all of the enum-based ranges.
|
||||
*/
|
||||
public static final int ALL_RANGES = 0x0007ffff;
|
||||
@ -1068,14 +1068,14 @@ public final class NumericShaper implements java.io.Serializable {
|
||||
shapingRange = defaultContext;
|
||||
rangeSet = EnumSet.copyOf(ranges); // throws NPE if ranges is null.
|
||||
|
||||
// Give precedance to EASTERN_ARABIC if both ARABIC and
|
||||
// Give precedence to EASTERN_ARABIC if both ARABIC and
|
||||
// EASTERN_ARABIC are specified.
|
||||
if (rangeSet.contains(Range.EASTERN_ARABIC)
|
||||
&& rangeSet.contains(Range.ARABIC)) {
|
||||
rangeSet.remove(Range.ARABIC);
|
||||
}
|
||||
|
||||
// As well as the above case, give precedance to TAI_THAM_THAM if both
|
||||
// As well as the above case, give precedence to TAI_THAM_THAM if both
|
||||
// TAI_THAM_HORA and TAI_THAM_THAM are specified.
|
||||
if (rangeSet.contains(Range.TAI_THAM_THAM)
|
||||
&& rangeSet.contains(Range.TAI_THAM_HORA)) {
|
||||
|
@ -47,7 +47,7 @@ import sun.font.FontResolver;
|
||||
* on a paragraph of styled text.
|
||||
* <p>
|
||||
* Currently, this class is optimized for a small number of intervals
|
||||
* (preferrably 1).
|
||||
* (preferably 1).
|
||||
*/
|
||||
final class StyledParagraph {
|
||||
|
||||
@ -262,7 +262,7 @@ final class StyledParagraph {
|
||||
|
||||
/**
|
||||
* Return the index at which there is a different Font, GraphicAttribute, or
|
||||
* Dcoration than at the given index.
|
||||
* Decoration than at the given index.
|
||||
* @param index a valid index in the paragraph
|
||||
* @return the first index where there is a change in attributes from
|
||||
* those at index
|
||||
|
@ -644,7 +644,7 @@ public final class TextAttribute extends Attribute {
|
||||
* be no other attributes in the <code>Map</code> except the
|
||||
* <code>FONT</code> attribute. With <code>Map</code>-based APIs
|
||||
* the common case is to specify all attributes individually, so
|
||||
* <code>FONT</code> is not needed or desireable.
|
||||
* <code>FONT</code> is not needed or desirable.
|
||||
*
|
||||
* <p>However, if both <code>FONT</code> and other attributes are
|
||||
* present in the <code>Map</code>, the rendering system will
|
||||
@ -686,7 +686,7 @@ public final class TextAttribute extends Attribute {
|
||||
/**
|
||||
* Attribute key for a user-defined glyph to display in lieu
|
||||
* of the font's standard glyph for a character. Values are
|
||||
* intances of GraphicAttribute. The default value is null,
|
||||
* instances of GraphicAttribute. The default value is null,
|
||||
* indicating that the standard glyphs provided by the font
|
||||
* should be used.
|
||||
*
|
||||
@ -1098,7 +1098,7 @@ public final class TextAttribute extends Attribute {
|
||||
* tracking values will inhibit formation of optional ligatures.
|
||||
* Tracking values are typically between <code>-0.1</code> and
|
||||
* <code>0.3</code>; values outside this range are generally not
|
||||
* desireable.
|
||||
* desirable.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
|
@ -195,7 +195,7 @@ import sun.font.LayoutPathImpl;
|
||||
* Color selectionColor = ...;
|
||||
* Shape selection = layout.getLogicalHighlightShape(selStart, selLimit);
|
||||
* // selection may consist of disjoint areas
|
||||
* // graphics is assumed to be tranlated to origin of layout
|
||||
* // graphics is assumed to be translated to origin of layout
|
||||
* g.setColor(selectionColor);
|
||||
* g.fill(selection);
|
||||
* </pre></blockquote>
|
||||
@ -292,7 +292,7 @@ public final class TextLayout implements Cloneable {
|
||||
private Rectangle2D boundsRect = null;
|
||||
|
||||
/*
|
||||
* flag to supress/allow carets inside of ligatures when hit testing or
|
||||
* flag to suppress/allow carets inside of ligatures when hit testing or
|
||||
* arrow-keying
|
||||
*/
|
||||
private boolean caretsInLigaturesAreAllowed = false;
|
||||
@ -767,7 +767,7 @@ public final class TextLayout implements Cloneable {
|
||||
}
|
||||
|
||||
/*
|
||||
* Utility to throw an expection if an invalid TextHitInfo is passed
|
||||
* Utility to throw an exception if an invalid TextHitInfo is passed
|
||||
* as a parameter. Avoids code duplication.
|
||||
*/
|
||||
private void checkTextHit(TextHitInfo hit) {
|
||||
@ -833,7 +833,7 @@ public final class TextLayout implements Cloneable {
|
||||
* punctuation and trailing whitespace to overhang the justification width.
|
||||
* Once justified, the layout may not be rejustified.
|
||||
* <p>
|
||||
* Some code may rely on immutablity of layouts. Subclassers should not
|
||||
* Some code may rely on immutability of layouts. Subclassers should not
|
||||
* call this directly, but instead should call getJustifiedLayout, which
|
||||
* will call this method on a clone of this layout, preserving
|
||||
* the original.
|
||||
|
@ -196,7 +196,7 @@ public interface InputMethod {
|
||||
|
||||
/**
|
||||
* Dispatches the event to the input method. If input method support is
|
||||
* enabled for the focussed component, incoming events of certain types
|
||||
* enabled for the focused component, incoming events of certain types
|
||||
* are dispatched to the current input method for this component before
|
||||
* they are dispatched to the component's methods or event listeners.
|
||||
* The input method decides whether it needs to handle the event. If it
|
||||
|
@ -856,7 +856,7 @@ public class BufferedImage extends java.awt.Image
|
||||
|
||||
/**
|
||||
* Returns the {@link WritableRaster}.
|
||||
* @return the <code>WriteableRaster</code> of this
|
||||
* @return the <code>WritableRaster</code> of this
|
||||
* <code>BufferedImage</code>.
|
||||
*/
|
||||
public WritableRaster getRaster() {
|
||||
|
@ -631,7 +631,7 @@ public abstract class ColorModel implements Transparency{
|
||||
* <code>inData</code> is not large enough to hold a pixel value
|
||||
* for this <code>ColorModel</code>
|
||||
* @throws UnsupportedOperationException if this
|
||||
* <code>tranferType</code> is not supported by this
|
||||
* <code>transferType</code> is not supported by this
|
||||
* <code>ColorModel</code>
|
||||
*/
|
||||
public int getRed(Object inData) {
|
||||
@ -698,7 +698,7 @@ public abstract class ColorModel implements Transparency{
|
||||
* <code>inData</code> is not large enough to hold a pixel value
|
||||
* for this <code>ColorModel</code>
|
||||
* @throws UnsupportedOperationException if this
|
||||
* <code>tranferType</code> is not supported by this
|
||||
* <code>transferType</code> is not supported by this
|
||||
* <code>ColorModel</code>
|
||||
*/
|
||||
public int getGreen(Object inData) {
|
||||
@ -765,7 +765,7 @@ public abstract class ColorModel implements Transparency{
|
||||
* <code>inData</code> is not large enough to hold a pixel value
|
||||
* for this <code>ColorModel</code>
|
||||
* @throws UnsupportedOperationException if this
|
||||
* <code>tranferType</code> is not supported by this
|
||||
* <code>transferType</code> is not supported by this
|
||||
* <code>ColorModel</code>
|
||||
*/
|
||||
public int getBlue(Object inData) {
|
||||
@ -1722,7 +1722,7 @@ public abstract class ColorModel implements Transparency{
|
||||
// is from the IEC 61966-2-1 International Standard,
|
||||
// Colour Management - Default RGB colour space - sRGB,
|
||||
// First Edition, 1999-10,
|
||||
// avaiable for order at http://www.iec.ch
|
||||
// available for order at http://www.iec.ch
|
||||
for (int i = 0; i <= 255; i++) {
|
||||
input = ((float) i) / 255.0f;
|
||||
if (input <= 0.0031308f) {
|
||||
|
@ -37,7 +37,7 @@ import java.awt.image.ColorModel;
|
||||
* takes an existing image and a filter object and uses them to produce
|
||||
* image data for a new filtered version of the original image.
|
||||
* Here is an example which filters an image by swapping the red and
|
||||
* blue compents:
|
||||
* blue components:
|
||||
* <pre>
|
||||
*
|
||||
* Image src = getImage("doc:///demo/images/duke/T1.gif");
|
||||
|
@ -393,7 +393,7 @@ public class Raster {
|
||||
}
|
||||
int banks = maxBank + 1;
|
||||
int size = maxBandOff +
|
||||
scanlineStride * (h - 1) + // fisrt (h - 1) scans
|
||||
scanlineStride * (h - 1) + // first (h - 1) scans
|
||||
w; // last scan
|
||||
|
||||
switch(dataType) {
|
||||
|
@ -37,7 +37,7 @@ package java.awt.image;
|
||||
import java.awt.Point;
|
||||
|
||||
/**
|
||||
* WriteableRenderedImage is a common interface for objects which
|
||||
* WritableRenderedImage is a common interface for objects which
|
||||
* contain or can produce image data in the form of Rasters and
|
||||
* which can be modified and/or written over. The image
|
||||
* data may be stored/produced as a single tile or a regular array
|
||||
|
@ -61,7 +61,7 @@ public interface ContextualRenderedImageFactory extends RenderedImageFactory {
|
||||
* alterations in the RenderContext, such as an affine mapping, or
|
||||
* operations that wish to obtain lower quality renderings of
|
||||
* their sources in order to save processing effort or
|
||||
* transmission bandwith. Some operations, such as blur, can also
|
||||
* transmission bandwidth. Some operations, such as blur, can also
|
||||
* use this mechanism to avoid obtaining sources of higher quality
|
||||
* than necessary.
|
||||
*
|
||||
|
@ -168,7 +168,7 @@ public interface RenderableImage {
|
||||
RenderedImage createScaledRendering(int w, int h, RenderingHints hints);
|
||||
|
||||
/**
|
||||
* Returnd a RenderedImage instance of this image with a default
|
||||
* Returns a RenderedImage instance of this image with a default
|
||||
* width and height in pixels. The RenderContext is built
|
||||
* automatically with an appropriate usr2dev transform and an area
|
||||
* of interest of the full image. The rendering hints are
|
||||
|
@ -415,7 +415,7 @@ public interface ComponentPeer {
|
||||
boolean prepareImage(Image img, int w, int h, ImageObserver o);
|
||||
|
||||
/**
|
||||
* Determines the status of the construction of the screen representaion
|
||||
* Determines the status of the construction of the screen representation
|
||||
* of the specified image.
|
||||
*
|
||||
* @param img the image to check
|
||||
|
@ -71,7 +71,7 @@ public class PageFormat implements Cloneable
|
||||
|
||||
/**
|
||||
* The orientation of the current page. This will be
|
||||
* one of the constants: PORTRIAT, LANDSCAPE, or
|
||||
* one of the constants: PORTRAIT, LANDSCAPE, or
|
||||
* REVERSE_LANDSCAPE,
|
||||
*/
|
||||
private int mOrientation = PORTRAIT;
|
||||
|
@ -68,7 +68,7 @@ public class Paper implements Cloneable {
|
||||
|
||||
/**
|
||||
* The area of the page on which drawing will
|
||||
* be visable. The area outside of this
|
||||
* be visible. The area outside of this
|
||||
* rectangle but on the Page generally
|
||||
* reflects the printer's hardware margins.
|
||||
* The origin of the physical page is
|
||||
|
@ -524,7 +524,7 @@ public abstract class PrinterJob {
|
||||
* <p>
|
||||
* Note that some attributes may be set directly on the PrinterJob
|
||||
* by equivalent method calls, (for example), copies:
|
||||
* <code>setcopies(int)</code>, job name: <code>setJobName(String)</code>
|
||||
* <code>setCopies(int)</code>, job name: <code>setJobName(String)</code>
|
||||
* and specifying media size and orientation though the
|
||||
* <code>PageFormat</code> object.
|
||||
* <p>
|
||||
|
@ -876,7 +876,7 @@ public class CSS implements Serializable {
|
||||
int size = getFontSize(a, defaultSize, ss);
|
||||
|
||||
/*
|
||||
* If the vertical alignment is set to either superscirpt or
|
||||
* If the vertical alignment is set to either superscript or
|
||||
* subscript we reduce the font size by 2 points.
|
||||
*/
|
||||
StringValue vAlignV = (StringValue)a.getAttribute
|
||||
|
Loading…
x
Reference in New Issue
Block a user