cds.util
Class StringArrayBuffer

java.lang.Object
  extended bycds.util.StringArrayBuffer

public class StringArrayBuffer
extends java.lang.Object

Manages a two dimensionnal array of characters, allowing to place strings at given x,y xoordinates

Version:
1.0 Aug. 2003
Author:
Marc Wenger/CDS

Field Summary
(package private)  java.util.ArrayList sab
           
 
Constructor Summary
StringArrayBuffer()
           
StringArrayBuffer(int nblig)
           
StringArrayBuffer(int nblig, int nbcol)
           
 
Method Summary
 java.lang.String[] getStringArray(boolean completed)
           
static void main(java.lang.String[] args)
           
 void put(java.util.ArrayList strs, int x, int y)
           
 void put(java.lang.String[] str, int x, int y)
           
 void put(java.lang.String str, int x, int y)
           
 void putv(java.lang.String str, int x, int y)
          Put a vertical string
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sab

java.util.ArrayList sab
Constructor Detail

StringArrayBuffer

public StringArrayBuffer()

StringArrayBuffer

public StringArrayBuffer(int nblig)

StringArrayBuffer

public StringArrayBuffer(int nblig,
                         int nbcol)
Method Detail

put

public void put(java.lang.String str,
                int x,
                int y)

putv

public void putv(java.lang.String str,
                 int x,
                 int y)
Put a vertical string

Parameters:
str - string to insert
x - column position
y - row position

put

public void put(java.lang.String[] str,
                int x,
                int y)

put

public void put(java.util.ArrayList strs,
                int x,
                int y)

getStringArray

public java.lang.String[] getStringArray(boolean completed)

toString

public java.lang.String toString()

main

public static void main(java.lang.String[] args)