| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.horstmann.violet.framework.MultiLineString
public class MultiLineString
A string that can extend over multiple lines.
| Field Summary | |
|---|---|
| static int | CENTER | 
| static int | LARGE | 
| static int | LEFT | 
| static int | NORMAL | 
| static int | RIGHT | 
| static int | SMALL | 
| Constructor Summary | |
|---|---|
| MultiLineString()Constructs an empty, centered, normal size multiline string that is not underlined. | |
| Method Summary | |
|---|---|
|  java.lang.Object | clone() | 
|  void | draw(java.awt.Graphics2D g2,
     java.awt.geom.Rectangle2D r)Draws this multiline string inside a given rectangle | 
|  java.awt.geom.Rectangle2D | getBounds(java.awt.Graphics2D g2)Gets the bounding rectangle for this multiline string. | 
|  int | getJustification()Gets the value of the justification property. | 
|  int | getSize()Gets the value of the size property. | 
|  java.lang.String | getText()Gets the value of the text property. | 
|  boolean | isUnderlined()Gets the value of the underlined property. | 
|  void | setJustification(int newValue)Sets the value of the justification property. | 
|  void | setSize(int newValue)Sets the value of the size property. | 
|  void | setText(java.lang.String newValue)Sets the value of the text property. | 
|  void | setUnderlined(boolean newValue)Sets the value of the underlined property. | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public static final int LARGE
public static final int NORMAL
public static final int SMALL
| Constructor Detail | 
|---|
public MultiLineString()
| Method Detail | 
|---|
public void setText(java.lang.String newValue)
newValue - the text of the multiline stringpublic java.lang.String getText()
public void setJustification(int newValue)
newValue - the justification, one of LEFT, CENTER, 
      RIGHTpublic int getJustification()
public boolean isUnderlined()
public void setUnderlined(boolean newValue)
newValue - true to underline the textpublic void setSize(int newValue)
newValue - the size, one of SMALL, NORMAL, LARGEpublic int getSize()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.awt.geom.Rectangle2D getBounds(java.awt.Graphics2D g2)
g2 - the graphics context
public void draw(java.awt.Graphics2D g2,
                 java.awt.geom.Rectangle2D r)
g2 - the graphics contextr - the rectangle into which to place this multiline stringpublic java.lang.Object clone()
clone in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||