JCommon 1.0.17-redhat-2

org.jfree.base.log
Class PadMessage

java.lang.Object
  extended by org.jfree.base.log.PadMessage

public class PadMessage
extends Object

A message object that pads the output if the text is shorter than the given length. This is usefull when concating multiple messages, which should appear in a table like style.

Author:
Thomas Morgner

Constructor Summary
PadMessage(Object message, int length)
          Creates a new message.
 
Method Summary
 String toString()
          Returns a string representation of the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PadMessage

public PadMessage(Object message,
                  int length)
Creates a new message.

Parameters:
message - the message.
length - the padding size.
Method Detail

toString

public String toString()
Returns a string representation of the message.

Overrides:
toString in class Object
Returns:
the string.

JCommon 1.0.17-redhat-2

Copyright © 2001-2012 JFree.org. All Rights Reserved.