sddl.hierarchy
Class Text

java.lang.Object
  extended by sddl.hierarchy.Shape
      extended by sddl.hierarchy.Text

public class Text
extends Shape

This Shape represents a LaTeX text. As of current version, you cannot find reference points or borders of a Text.

Version:
1.00
Author:
Mathieu Bourgeois

Constructor Summary
Text()
          Default SDDL constructors
Text(java.lang.String text)
          Constructor for use only in Java, sets text from the start
 
Method Summary
 Text copy()
          Returns a copy of this Text
 void draw(AbstractPoint location, java.io.PrintWriter out)
          Standard SDDL draw function, prints Asymptote code
 java.lang.String getText()
          Standard SDDL getter for text parameter
 Path obtainPath()
          Returns a Path describing the Text Not currently implemented
 void setText(java.lang.String text)
          Standard SDDL setter for text parameter
 
Methods inherited from class sddl.hierarchy.Shape
isVisible, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text()
Default SDDL constructors


Text

public Text(java.lang.String text)
Constructor for use only in Java, sets text from the start

Parameters:
text - The LaTeX string used
Method Detail

setText

public void setText(java.lang.String text)
Standard SDDL setter for text parameter

Parameters:
text - The LaTeX string used

getText

public java.lang.String getText()
Standard SDDL getter for text parameter

Returns:
The LaTeX string used

draw

public void draw(AbstractPoint location,
                 java.io.PrintWriter out)
Standard SDDL draw function, prints Asymptote code

Specified by:
draw in class Shape
Parameters:
location - The location of the Shape on the main drawing
out - The file to be written to

obtainPath

public Path obtainPath()
Returns a Path describing the Text Not currently implemented

Specified by:
obtainPath in class Shape
Returns:
A Path describing the outer boundary of the Shape

copy

public Text copy()
Returns a copy of this Text

Specified by:
copy in class Shape
Returns:
A copy of this Text