|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tinyline.svg.SVGAttr
The SVGAttr class implements the SVGT attributes parser.
| Constructor Summary | |
SVGAttr()
Constructs a new SVGAttr object. |
|
SVGAttr(int width,
int height)
Constructs a new SVGAttr object. |
|
| Method Summary | |
java.lang.Object |
attributeValue(int helem,
int hattr,
char[] buf,
int offset,
int len)
Parses the SVG attribute value for the given element and attribute. |
static boolean |
endsWith(TinyString str,
TinyString s)
Tests if this string ends with the specified suffix. |
static boolean |
startsWith(TinyString str,
TinyString s,
int i)
Tests if this string starts with the specified prefix beginning a specified index. |
static TinyString |
substring(TinyString str,
int beginIndex)
Returns a new string that is a substring of this string. |
static TinyString |
substring(TinyString str,
int beginIndex,
int endIndex)
Returns a new string that is a substring of this string. |
static TinyString |
trim(TinyString str)
Returns a copy of the string, with leading and trailing whitespace omitted. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SVGAttr()
public SVGAttr(int width,
int height)
| Method Detail |
public java.lang.Object attributeValue(int helem,
int hattr,
char[] buf,
int offset,
int len)
helem - The SVG element handle.hattr - The SVG attribute handle.buf - The input buffer.offset - The input buffer pointer.len - The input buffer length.
public static boolean startsWith(TinyString str,
TinyString s,
int i)
s - the prefix.i - where to begin looking in the string.
true if the character sequence represented by the
argument is a prefix of the substring of this object starting
at index i; false otherwise.
public static boolean endsWith(TinyString str,
TinyString s)
s - the suffix.
true if the character sequence represented by the
argument is a suffix of the character sequence represented by
this object; false otherwise.public static TinyString trim(TinyString str)
public static TinyString substring(TinyString str,
int beginIndex)
beginIndex - the beginning index, inclusive.
public static TinyString substring(TinyString str,
int beginIndex,
int endIndex)
beginIndex and
extends to the character at index endIndex - 1.
Thus the length of the substring is endIndex-beginIndex.
beginIndex - the beginning index, inclusive.endIndex - the ending index, exclusive.
|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||