mome.ext
Class StringWrapper

java.lang.Object
  extended by mome.ext.StringWrapper
All Implemented Interfaces:
Enumeration

public class StringWrapper
extends Object
implements Enumeration

Version:
0.2
Author:
Sergio Morozov

Constructor Summary
StringWrapper(int width)
           
StringWrapper(int width, boolean truncate)
           
StringWrapper(int width, Font font)
           
StringWrapper(int width, Font font, boolean truncate)
           
StringWrapper(int width, Font font, String str)
           
StringWrapper(int width, Font font, String str, boolean truncate)
           
 
Method Summary
 Font getFont()
           
 String getString()
           
 int getWidth()
           
 boolean hasMoreElements()
           
 boolean isTruncate()
           
 Object nextElement()
           
 void restart()
           
 void setFont(Font font)
           
 void setString(String str)
           
 void setTruncate(boolean truncate)
           
 void setWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringWrapper

public StringWrapper(int width)

StringWrapper

public StringWrapper(int width,
                     Font font)

StringWrapper

public StringWrapper(int width,
                     Font font,
                     String str)

StringWrapper

public StringWrapper(int width,
                     boolean truncate)

StringWrapper

public StringWrapper(int width,
                     Font font,
                     boolean truncate)

StringWrapper

public StringWrapper(int width,
                     Font font,
                     String str,
                     boolean truncate)
Method Detail

restart

public void restart()

getFont

public Font getFont()
Returns:
the font
Since:
0.2

setFont

public void setFont(Font font)
Parameters:
font - the font to set
Since:
0.2

setWidth

public void setWidth(int width)

getWidth

public int getWidth()

setString

public void setString(String str)

getString

public String getString()

isTruncate

public boolean isTruncate()
Returns:
the truncate
Since:
0.2

setTruncate

public void setTruncate(boolean truncate)
Parameters:
truncate - the truncate to set
Since:
0.2

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Specified by:
nextElement in interface Enumeration