|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimple_uml.view.canvas.SumlShape
simple_uml.view.canvas.TextList
public class TextList
Displays a list of strings, line by line. Line wrapping is not currently supported.
Field Summary | |
---|---|
private java.util.List<java.lang.String> |
atts
List of strings to be drawn |
Fields inherited from class simple_uml.view.canvas.SumlShape |
---|
BASE_ORIGIN, bounds, canvas, color, listeners, origin, selected, tMatrix, X_BASE, Y_BASE |
Constructor Summary | |
---|---|
TextList(java.util.List<java.lang.String> atts)
Creates an object to display a given list of strings. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D g2d)
Draws our list of text, rendered relative to the SumlShape.BASE_ORIGIN point. |
Methods inherited from class simple_uml.view.canvas.SumlShape |
---|
addListener, getHeight, getModel, getOrigin, getWidth, intersects, move, paint, popMatrix, pushMatrix, scale, setOrigin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<java.lang.String> atts
Constructor Detail |
---|
public TextList(java.util.List<java.lang.String> atts)
atts
- List of strings to be displayed.Method Detail |
---|
public void draw(java.awt.Graphics2D g2d)
draw
in class SumlShape
g2d
- The Graphics2D object used to draw everything.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |