org.apache.cocoon.generation.asciiart
Class AsciiArtPad

java.lang.Object
  extended by org.apache.cocoon.generation.asciiart.AsciiArtPad

public class AsciiArtPad
extends Object

A drawing ascii art pad.

Since:
18. Dezember 2002
Version:
CVS $Id: AsciiArtPad.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
huber@apache.org

Nested Class Summary
static class AsciiArtPad.AsciiArt
          Helper class containing the ascii text data, acting as input of an AsciiArtPad
static class AsciiArtPad.AsciiArtCoordinate
          Helper class describing a coordinate of AsciiArtPad elements.
static interface AsciiArtPad.AsciiArtElement
          Marker interface of objects addable to the AsciiArtPad
static class AsciiArtPad.AsciiArtLine
          An AsciiArtElement describing a line.
static class AsciiArtPad.AsciiArtPadBuilder
          Builder of AsciiArtElements from an AsciiArt input.
static class AsciiArtPad.AsciiArtRect
          An AsciiArtElement describing a rectangle.
static class AsciiArtPad.AsciiArtString
          An AsciiArtElement describing a string of text.
 
Constructor Summary
AsciiArtPad()
          Constructor for the AsciiArtPad object
AsciiArtPad(int w, int h)
          Constructor for the AsciiArtPad object
 
Method Summary
 void add(Object o)
          Add a AsciiArtElement
 int getHeight()
          Gets the height attribute of the AsciiArtPad object
 int getWidth()
          Gets the width attribute of the AsciiArtPad object
 double getXGrid()
          Gets the xGrid attribute of the AsciiArtPad object
 double getYGrid()
          Gets the yGrid attribute of the AsciiArtPad object
 Iterator iterator()
          Iterator of AsciiArtPad
 void setHeight(int height)
          Sets the height attribute of the AsciiArtPad object
 void setWidth(int width)
          Sets the width attribute of the AsciiArtPad object
 void setXGrid(double xGrid)
          Sets the xGrid attribute of the AsciiArtPad object
 void setYGrid(double yGrid)
          Sets the yGrid attribute of the AsciiArtPad object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsciiArtPad

public AsciiArtPad()
Constructor for the AsciiArtPad object


AsciiArtPad

public AsciiArtPad(int w,
                   int h)
Constructor for the AsciiArtPad object

Parameters:
w - Description of the Parameter
h - Description of the Parameter
Method Detail

setWidth

public void setWidth(int width)
Sets the width attribute of the AsciiArtPad object

Parameters:
width - The new width value

setHeight

public void setHeight(int height)
Sets the height attribute of the AsciiArtPad object

Parameters:
height - The new height value

setXGrid

public void setXGrid(double xGrid)
Sets the xGrid attribute of the AsciiArtPad object

Parameters:
xGrid - The new xGrid value

setYGrid

public void setYGrid(double yGrid)
Sets the yGrid attribute of the AsciiArtPad object

Parameters:
yGrid - The new yGrid value

getWidth

public int getWidth()
Gets the width attribute of the AsciiArtPad object

Returns:
The width value

getHeight

public int getHeight()
Gets the height attribute of the AsciiArtPad object

Returns:
The height value

getXGrid

public double getXGrid()
Gets the xGrid attribute of the AsciiArtPad object

Returns:
The xGrid value

getYGrid

public double getYGrid()
Gets the yGrid attribute of the AsciiArtPad object

Returns:
The yGrid value

add

public void add(Object o)
Add a AsciiArtElement

Parameters:
o - the AsciiArtElement object

iterator

public Iterator iterator()
Iterator of AsciiArtPad

Returns:
Iterator iterating over all AsciiArtElements


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.