|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.generation.asciiart.AsciiArtPad
public class AsciiArtPad
A drawing ascii art pad.
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 |
---|
public AsciiArtPad()
public AsciiArtPad(int w, int h)
w
- Description of the Parameterh
- Description of the ParameterMethod Detail |
---|
public void setWidth(int width)
width
- The new width valuepublic void setHeight(int height)
height
- The new height valuepublic void setXGrid(double xGrid)
xGrid
- The new xGrid valuepublic void setYGrid(double yGrid)
yGrid
- The new yGrid valuepublic int getWidth()
public int getHeight()
public double getXGrid()
public double getYGrid()
public void add(Object o)
o
- the AsciiArtElement objectpublic Iterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |