|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.chart3d.JCMultiFieldString
Encapsulates the notion of a multi-field String, where each field may
have a different alignment of text within its field. Used by the
JCChart3dLegend class to manage specialized legend text.
| Field Summary | |
static Integer |
CENTER_ALIGNMENT
|
protected Vector |
contentList
|
static Integer |
LEFT_ALIGNMENT
|
static Integer |
RIGHT_ALIGNMENT
|
| Constructor Summary | |
JCMultiFieldString()
Empty constructor. |
|
JCMultiFieldString(String inputString)
Constructor with input String. |
|
| Method Summary | |
void |
draw(Graphics gc,
Font useFont,
int x,
int y,
int[] maxFieldWidths,
int fieldGap)
Draws the multi-field String. |
List |
getContentList()
Gets the multi field String as a list of alignment items and Strings. |
Vector |
parseEncodedString(String inputString)
Parses a String encoded in the JCMultiFieldString format into a
series of field alignment attributes and field Strings. |
void |
setContents(String inputString)
Sets the contents of the multi field String. |
String |
toString()
Converts this object back to a String representation of its contents. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Integer LEFT_ALIGNMENT
public static final Integer CENTER_ALIGNMENT
public static final Integer RIGHT_ALIGNMENT
protected Vector contentList
| Constructor Detail |
public JCMultiFieldString()
public JCMultiFieldString(String inputString)
inputString - the input String| Method Detail |
public void setContents(String inputString)
inputString - the input Stringpublic List getContentList()
public Vector parseEncodedString(String inputString)
JCMultiFieldString format into a
series of field alignment attributes and field Strings.
inputString - the String to parse
RIGHT_ALIGNMENT, LEFT_ALIGNMENT, or
CENTER_ALIGNMENT)
public void draw(Graphics gc,
Font useFont,
int x,
int y,
int[] maxFieldWidths,
int fieldGap)
gc - the Graphics object to write the String touseFont - the font to write the String withx - the x position to write the String aty - the y position to write the String atmaxFieldWidths - an array of maximum field widths that is used to justify
the text in each fieldfieldGap - the spacing between fieldspublic String toString()
toString in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||