Searched refs:Segment (Results 1 - 25 of 31) sorted by relevance

12

/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DSegmentCache.java31 * SegmentCache caches <code>Segment</code>s to avoid continually creating
32 * and destroying of <code>Segment</code>s. A common use of this class would
35 * Segment segment = segmentCache.getSegment();
51 private List<Segment> segments;
62 * A convenience method to get a Segment from the shared
65 public static Segment getSharedSegment() {
70 * A convenience method to release a Segment to the shared
73 public static void releaseSharedSegment(Segment segment) {
83 segments = new ArrayList<Segment>(11);
87 * Returns a <code>Segment</cod
[all...]
H A DSegment.java37 * The Segment implements the java.text.CharacterIterator
43 public class Segment implements Cloneable, CharacterIterator, CharSequence { class in inherits:Cloneable,CharacterIterator,CharSequence
69 public Segment() { method in class:Segment
80 public Segment(char[] array, int offset, int count) { method in class:Segment
89 * an implementation of the interface method Document.getText(position,length,Segment)
91 * state of the flag is false which will cause Document.getText(position,length,Segment)
291 Segment segment = new Segment();
H A DDocument.java63 * <li><a href="#getText(int, int, javax.swing.text.Segment)">getText(int, int, Segment)</a>
350 * data returned in the Segment will be the entire length requested and
361 * &nbsp; Segment text = new Segment();
376 * @param txt the Segment object to return the text in
382 public void getText(int offset, int length, Segment txt) throws BadLocationException;
H A DGlyphPainter1.java60 Segment text = v.getText(p0, p1);
96 Segment text;
132 Segment text;
174 Segment text = v.getText(p0, p1);
211 Segment s = v.getText(p0, v.getEndOffset());
H A DWrappedPlainView.java179 Segment segment = SegmentCache.getSharedSegment();
204 Segment segment = SegmentCache.getSharedSegment();
217 protected final Segment getLineBuffer() {
219 lineBuffer = new Segment();
234 Segment segment = SegmentCache.getSharedSegment();
306 final void loadText(Segment segment, int p0, int p1) {
512 Segment lineBuffer;
643 Segment segment = SegmentCache.getSharedSegment();
710 Segment segment = SegmentCache.getSharedSegment();
H A DUtilities.java82 public static final int drawTabbedText(Segment s, int x, int y, Graphics g,
104 Segment s, int x, int y, Graphics g,
117 Segment s, int x, int y, Graphics g,
206 public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x,
219 static final int getTabbedTextWidth(View view, Segment s, FontMetrics metrics, int x,
300 public static final int getTabbedTextOffset(Segment s, FontMetrics metrics,
306 static final int getTabbedTextOffset(View view, Segment s, FontMetrics metrics,
314 public static final int getTabbedTextOffset(Segment s,
330 Segment s,
449 public static final int getBreakLocation(Segment
[all...]
H A DPlainView.java152 Segment s = SegmentCache.getSharedSegment();
177 Segment s = SegmentCache.getSharedSegment();
190 protected final Segment getLineBuffer() {
192 lineBuffer = new Segment();
356 Segment s = SegmentCache.getSharedSegment();
426 Segment s = SegmentCache.getSharedSegment();
666 Segment s = SegmentCache.getSharedSegment();
698 Segment lineBuffer;
H A DTextLayoutStrategy.java209 Segment s = ((GlyphView)frag).getText(p0, p1);
254 Segment s = ((GlyphView)v).getText(startOffset, endOffset);
261 for (ch = s.next(); ch != Segment.DONE; ch = s.next()) {
345 static class AttributedSegment extends Segment implements AttributedCharacterIterator {
374 * not the same as the Segment coordinates.
H A DPlainDocument.java192 s = new Segment();
320 private transient Segment s;
H A DAbstractWriter.java100 private Segment segment;
299 segment = new Segment();
H A DGlyphView.java126 * @return the <code>Segment</code> containing the text
128 public Segment getText(int p0, int p1) {
129 // When done with the returned Segment it should be released by
132 Segment text = SegmentCache.getSharedSegment();
502 Segment s = getText(p0, p1);
791 Segment s = getText(pstart, pend);
1007 Segment segment = getText(startOffset, endOffset);
1255 Segment text;
H A DGapContent.java166 Segment s = new Segment();
179 * @param chars the Segment object to return the characters in
183 public void getChars(int where, int len, Segment chars) throws BadLocationException {
H A DDefaultCaret.java1242 Segment s = new Segment();
1712 Segment s = new Segment();
H A DFieldView.java211 Segment buff = SegmentCache.getSharedSegment();
H A DAbstractDocument.java781 * data returned in the Segment will be the entire length requested and
791 * &nbsp; Segment text = new Segment();
804 * @param txt the Segment object to retrieve the text into
808 public void getText(int offset, int length, Segment txt) throws BadLocationException {
971 Segment segment = SegmentCache.getSharedSegment();
980 } while (segment.next() != Segment.DONE);
1205 Segment seg = SegmentCache.getSharedSegment();
1211 // REMIND(bcb) we should really be using a Segment here.
1644 * Gets a sequence of characters and copies them into a Segment
[all...]
H A DGlyphPainter2.java244 Segment text;
H A DStringContent.java152 * @param chars the Segment object to return the characters in
156 public void getChars(int where, int len, Segment chars) throws BadLocationException {
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DConcurrentHashMap.java252 final Segment<K,V>[] segments;
350 static final class Segment<K,V> extends ReentrantLock implements Serializable { class in class:ConcurrentHashMap
425 Segment(float lf, int threshold, HashEntry<K,V>[] tab) { method in class:ConcurrentHashMap.Segment
723 static final <K,V> Segment<K,V> segmentAt(Segment<K,V>[] ss, int j) {
726 (Segment<K,V>) UNSAFE.getObjectVolatile(ss, u);
737 private Segment<K,V> ensureSegment(int k) {
738 final Segment<K,V>[] ss = this.segments;
740 Segment<K,V> seg;
741 if ((seg = (Segment<
[all...]
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/HierarchicalLayout/src/com/sun/hotspot/igv/hierarchicallayout/
H A DHierarchicalLayoutManager.java494 private static class Segment { class in class:HierarchicalLayoutManager
499 public HashSet<Segment> succs = new HashSet<Segment>();
500 public HashSet<Segment> preds = new HashSet<Segment>();
503 private static final Comparator<Segment> segmentComparator = new Comparator<Segment>() {
505 public int compare(Segment s1, Segment s2) {
514 public SortedSet<Segment> segment
[all...]
/openjdk7/jdk/src/share/classes/sun/font/
H A DLayoutPathImpl.java755 class Segment { class in class:LayoutPathImpl.SegmentPath
765 Segment(int ix) { method in class:LayoutPathImpl.SegmentPath.Segment
828 final ArrayList<Segment> segments; // cache additional data on segments, working objects
835 segments = new ArrayList<Segment>();
838 segments.add(new Segment(i));
849 for (Segment s: segments) {
878 for (Segment s: segments) {
884 for (Segment s: segments) {
895 for (Segment s: segments) {
921 for (Segment se
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJPasswordField.java295 Segment txt = new Segment();
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DImageView.java950 private Segment segment;
959 segment = new Segment(text.toCharArray(), 0, text.length());
973 public Segment getText(int p0, int p1) {
H A DHTMLWriter.java75 private Segment segment;
143 segment = new Segment();
460 segment = new Segment();
495 segment = new Segment();
/openjdk7/jdk/src/share/demo/jfc/Notepad/
H A DNotepad.java824 Segment text = new Segment();
/openjdk7/jdk/src/share/classes/javax/swing/text/rtf/
H A DRTFGenerator.java73 private Segment workingSegment;
147 workingSegment = new Segment();
808 public void writeText(Segment s)

Completed in 331 milliseconds

12