LineParagraph.java

key0-96/src/paragraphs/LineParagraph.java · 437 B

From the archive key0-96.tar.bz2

Download the archive   « Back to the archive contents

package key;

import key.io.Replaceable;

/**
  *  Another example is 'LineParagraph', which is just a simple line across the
  *  screen.
 */
public final class LineParagraph
extends Paragraph
implements Replaceable
{
	public static final LineParagraph LINE = new LineParagraph();
	
	private LineParagraph()
	{
	}

	public String toString()
	{
		return( "Line paragraph" );
	}

	public Object getReplacement()
	{
		return( LINE );
	}
}

Site Stats

Snippets: 1791
Codebases: 571