simple_uml.view.canvas
Class TextList

java.lang.Object
  extended by simple_uml.view.canvas.SumlShape
      extended by simple_uml.view.canvas.TextList

public class TextList
extends SumlShape

Displays a list of strings, line by line. Line wrapping is not currently supported.

Author:
Eric Liebowitz

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

atts

private java.util.List<java.lang.String> atts
List of strings to be drawn

Constructor Detail

TextList

public TextList(java.util.List<java.lang.String> atts)
Creates an object to display a given list of strings. The list will be rendered at the default origin SumlShape.BASE_ORIGIN.

Parameters:
atts - List of strings to be displayed.
Method Detail

draw

public void draw(java.awt.Graphics2D g2d)
Draws our list of text, rendered relative to the SumlShape.BASE_ORIGIN point.

Specified by:
draw in class SumlShape
Parameters:
g2d - The Graphics2D object used to draw everything.