Lines Matching refs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
52 * styles in a manner similar to the Rich Text Format. The element
57 * assigned to paragraph boundaries.
65 * has been added to the <code>java.beans</code> package.
120 * Initialize the document to reflect the given element
167 * Inserts new elements in bulk. This is useful to allow
170 * takes an array of tokens that describe how to update an
177 * to Use Threads</A> for more information.
202 // Nothing to insert, bail.
246 * instead, preceding leaf element is extended to cover the
256 * @param elem the element to remove
274 throw new IllegalArgumentException("element doesn't belong to document");
337 // preceding leaf element should be extended to cover orphaned "\n"
389 * Removes a named style previously added to the document.
391 * @param nm the name of the style to remove
420 * Sets the logical style to use for the paragraph at the
423 * through the logical style assigned to the paragraph, which
430 * to Use Threads</A> for more information.
433 * @param s the logical style to assign to the paragraph, null if none
457 * Fetches the logical style assigned to the paragraph
460 * @param p the location to translate to a paragraph
481 * are being made, and a DocumentEvent is sent to the listeners
487 * to Use Threads</A> for more information.
509 // PENDING(prinz) - this isn't a very efficient way to iterate
540 * to Use Threads</A> for more information.
545 * @param replace whether to replace existing attributes, or merge them
722 // Join to the fracture if NOT inserting at the end
729 // Join to next if parent of pParagraph has another
757 // Don't try joining to a branch!
764 // If not inserting at boundary and there is going to be a
814 // Need to find the common parent of pParagraph and paragraph.
864 // down the right subtree and there will be an element to
865 // join to.
888 * Creates the root element to be used to represent the
897 // to mutate attributes.
948 * Subclasses may wish to be intelligent about what gets damaged.
1040 * Adds a ChangeListener to new styles, and removes ChangeListener from
1106 /** Styles listening to. */
1109 /** Listens to Styles. */
1112 /** Listens to Styles. */
1115 /** Run to create a change event for the document */
1128 * has been added to the <code>java.beans</code> package.
1159 * has been added to the <code>java.beans</code> package.
1189 * be joined to what precedes it.
1196 * be joined to what follows it.
1203 * be used to originate a new element. This would be
1211 * be joined to the fractured element.
1340 * Converts the element to a string.
1385 * Class to manage changes to the element
1394 * has been added to the <code>java.beans</code> package.
1425 * @param data the data to insert
1446 // PENDING(prinz) this needs to be fixed to create a new
1447 // root element as well, but requires changes to the
1448 // DocumentEvent to inform the views that there is a new
1451 // Recreate the ending fake element to have the correct offsets.
1529 * @param data the elements to insert
1583 // Make sure an edit is going to be created for each of the
1592 // PENDING(sky): Do I need to worry about order here?
1599 // this will find what element need to be removed and remove it.
1615 * Updates the element structure in response to a removal from the
1624 * Updates the element structure in response to a change in the
1630 // need to do the other end
1654 // make sure there is something to do... if the
1656 // nothing to do.
1658 // we need to split, now see if the other end is within
1842 throw new StateInvariantError("Join next to leaf");
1844 // Not really a fracture, but need to treat it like
1886 // to NOT due this again, as more than likely fracture()
1924 * <code>canJoin</code> and <code>join</code> to handle joining
1952 // interior and forward to the endpoints.
2023 // Don't join a leaf to a branch.
2062 Element to = createBranchElement(p, left.getAttributes());
2077 children.addElement(clone(to, left.getElement(i)));
2082 Element e = join(to, lj, rj, rmOffs0, rmOffs1);
2086 children.addElement(cloneAsNecessary(to, lj, rmOffs0, rmOffs1));
2089 children.addElement(cloneAsNecessary(to, rj, rmOffs0, rmOffs1));
2096 children.addElement(clone(to, right.getElement(i)));
2102 ((BranchElement)to).replace(0, 0, c);
2103 return to;
2106 "No support to join leaf element with non-leaf element");
2115 * @param clonee the element to be cloned
2161 * Determines if a fracture needs to be performed. A fracture
2162 * can be thought of as moving the right part of a tree to a
2164 * been inserted. <code>depth</code> is used to indicate a
2165 * JoinToFracture is needed to an element at a depth
2169 * a fracture needs to happen.
2176 // Use childAltered to determine when a child has been altered,
2184 // Determine where to start recreating from.
2204 // Recreate all children to right of parent starting
2213 * Recreates the elements to the right of the insertion point.
2215 * and calls duplicate to duplicate existing elements.
2218 * reached, at which point only the elements to the right of
2245 // Recreate all the elements to the right of the
2258 // Determine the child to duplicate, won't have to duplicate
2310 // Last leaf, need to recreate part of it.
2330 * element needs to be created as the result of an insertion. This
2331 * will recurse and create all the children. This is similiar to
2362 // Inserts at offset 0 do not need to recreate child (it would
2380 * Inserts the first content. This needs to be separate to handle
2422 // to see if JoinNextDirection is valid here!
2434 // else nothin to do.
2438 // Inserted into middle, need to recreate split left
2453 // Signals need to recreate right split later.
2474 /** For insert, path to inserted elements. */
2476 /** Only for insert, set to true when the fracture has been created. */
2482 /** Used to indicate when fracturing that the last leaf should be
2485 /** Used to indicate that the parent of the deepest leaf should
2491 * Internal record used to hold element change specifications
2517 * An UndoableEdit used to remember AttributeSet changes to an
2527 // If not replacing, it may be more efficient to only copy the
2600 /** Element to change resolve parent of. */
2613 /* This has an implicit reference to the handler object. */
2621 * Return a reference to the style change handler object.
2632 /** A weak reference to the document object. */
2684 * Added to all the Styles. When instances of this receive a
2705 * Added to the StyleContext. When the StyleContext changes, this invokes