/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
*
* (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved
*/
char[] chars;
int start;
int len;
int cstart;
int clen;
/**
* Create a simple implementation of a TextSource.
*
* Chars is an array containing clen chars in the context, in
* logical order, contiguously starting at cstart. Start and len
* represent that portion of the context representing the true
* source; start, like cstart, is relative to the start of the
* character array.
*
* Level is the bidi level (0-63 for the entire context. Flags is
* the layout flags. Font is the font, frc is the render context,
* and lm is the line metrics for the entire source text, but not
* necessarily the context.
*/
int start,
int len,
int cstart,
int clen,
int level,
int flags,
CoreMetrics cm) {
throw new IllegalArgumentException("bad chars: null");
}
if (cstart < 0) {
}
}
if (clen < 0) {
}
throw new IllegalArgumentException("bad clen: " + clen + " cstart: " + cstart + " for array len: " + chars.length);
}
if (len < 0) {
}
throw new IllegalArgumentException("bad len: " + len + " start: " + start + " for cstart: " + cstart + " clen: " + clen);
}
throw new IllegalArgumentException("bad font: null");
}
throw new IllegalArgumentException("bad frc: null");
}
} else {
}
}
/** Create a StandardTextSource whose context is coextensive with the source. */
int start,
int len,
int level,
int flags,
CoreMetrics cm) {
}
/** Create a StandardTextSource whose context and source are coextensive with the entire char array. */
int level,
int flags,
}
/** Create a StandardTextSource whose context and source are all the text in the String. */
int level,
int flags,
}
// TextSource API
public char[] getChars() {
return chars;
}
public int getStart() {
return start;
}
public int getLength() {
return len;
}
public int getContextStart() {
return cstart;
}
public int getContextLength() {
return clen;
}
public int getLayoutFlags() {
return flags;
}
public int getBidiLevel() {
return level;
}
return font;
}
return frc;
}
return cm;
}
}
throw new IllegalArgumentException("direction flag is invalid");
}
}
return new StandardTextSource(chars, this.start + start, length, cstart, clen, level, flags, font, frc, cm);
}
return toString(WITH_CONTEXT);
}
if (withContext == WITH_CONTEXT) {
}
else {
}
if (i > chStart) {
}
}
}
}