src
Class PackageNameFormatter

java.lang.Object
  extended by src.PackageNameFormatter

public class PackageNameFormatter
extends java.lang.Object


Constructor Summary
PackageNameFormatter()
           
 
Method Summary
static java.lang.String[] formatPackageName(java.lang.String packageName, int colMax, int rowMax)
          This method generates an abbrievation of the orignal string to fit into a text area with constraint width and height
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageNameFormatter

public PackageNameFormatter()
Method Detail

formatPackageName

public static java.lang.String[] formatPackageName(java.lang.String packageName,
                                                   int colMax,
                                                   int rowMax)
This method generates an abbrievation of the orignal string to fit into a text area with constraint width and height

Parameters:
packageName - original package name
colMax - maximum number of letters allowed in a row
rowMax - maximum number of letters allowed in a column
Returns:
formatted package name

main

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