All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.util.Vector
|
+----jclass.util.JCVector
|
+----jclass.util.JCString
HTML examples:
Default[COLOR=red][font=TimesRoman-ITALIC-20] red[DEFAULT_FONT][Color=orange] orange\nAn [UL]orange[/UL] line[RESET]\nWhoops\, a [STRIKETHROUGH][Color=red]mistake<
HELLO[HREF=jclass.util.JCCache.html]see cache\nnline 5[/HREF]GOODBYE\nAnother link: [HREF=file:/8/java-extra/api/javag1.htm TARGET=_top][IMAGE=images/term4.gif] see BorderLayout[/HREF]
public final static Integer UNDERLINE
public final static Integer STRIKETHROUGH
public final static Integer END_UNDERLINE
public final static Integer END_STRIKETHROUGH
public final static Integer HORIZ_SPACE
public final static Integer VERT_SPACE
public final static Integer NEWLINE
public final static Integer RESET
public final static Integer DEFAULT_FONT
public final static Integer DEFAULT_COLOR
public final static Integer TOP
public final static Integer MIDDLE
public final static Integer BOTTOM
public final static Integer LEFT
public final static Integer CENTER
public final static Integer RIGHT
public final static Integer HREF
public final static Integer END_HREF
public final static int STRING_LEFT
public final static int STRING_RIGHT
public final static int STRING_TOP
public final static int STRING_BOTTOM
public final static int ALIGN_LEFT
public final static int ALIGN_CENTER
public final static int ALIGN_RIGHT
public JCString()
public JCString(int capacity)
public JCString(String s)
public JCString(String s,
Image image,
int layout)
public void add(Object o)
String Adds text Color The text that follows is drawn using this color Font The text that follows is drawn using this font Image Adds an image
public void add(int element)
TAB Adds a tab UNDERLINE Underlines the text that follows END_UNDERLINE Ends the underlining of text END_HREF Ends the underlining of text STRIKETHROUGH The following text is struckthrough END_STRIKETHROUGH Ends the strikethrough of text NEWLINE Adds a newline DEFAULT_COLOR The following text is drawn using the foreground color of the component DEFAULT_FONT The following text is drawn using the font of the component RESET The following text is drawn using the font and forground color of the component using default values
public void add(int attr,
Object value)
Attribute Value HREF String Sets a link anchor. The string may contain a TARGET=HORIZ_SPACE Integer Adds a horizontal space VERT_SPACE Integer Offsets the next line by a vertical space ALIGN TOP,MIDDLE, BOTTOM The vertical alignment within each line
public static JCString parse(Component c,
String s)
public static Applet getApplet(Component comp)
public boolean addImage(Applet app,
String name)
public boolean addImage(Applet app,
String url,
String name)
public int getHeight(Component comp,
Font default_font)
public int getWidth(Component comp,
Font default_font)
public Dimension getSize(Component comp,
Font default_font)
public int getLineSize(Component comp,
Font default_font,
int index,
Dimension size)
public void draw(Component comp,
Graphics gc,
Rectangle rect,
int align)
public void setURLoffset(int x,
int y)
public String getURL(int x,
int y)
public static String getURL(Applet applet,
Object value,
int x,
int y)
public static boolean showURL(String url_string,
AppletContext context,
Applet applet)
public String getString()
public Image getImage()
All Packages Class Hierarchy This Package Previous Next Index