Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.util.attr.* (18)com.port80.util.struct.* (14)

com.port80.util: Javadoc index of package com.port80.util.


Package Samples:

com.port80.util.attr
com.port80.util.struct

Classes:

Debug: Debug mode and related utilities to selectively enable specific debug modes. Debug.set('*') enables all debug modes. Modes 'debug','trace','test','verbose','check' exists by default (but disabled except 'test' is default enabled) on startup and after Debug.clear(). Builtin modes: debug Turns on debug messages. trace Turns on trace messages. test Turns on test messages, which are temporary and would normally remove from source code after the testing. verbose Turns on verbose messages during normal execution. check Turns on check mode code, which provide additional sanity checkings that normal execution ...
sprint: Formatted print like one in C. . Addition date formats: Now(T0)=|185743| Now(TT)=|18:57:43| Now(TH)=|18:57| Now(TM)=|57:43| Now(YY)=|2002| Now(MM)=|3| Now(WW)=|Fri| Now(D0)=|20020308| Now(DD)=|2002-03-08| Now(DM)=|3-8| Now(Dm)=|3-8| Now(Ds)=|3| Now(DH)=|18:57 3-8| Now(Dh)=|3-8 18:57| Now(DY)=|2002-3| Now(Dy)=|2002-3| Now(DT)=|2002-03-08 18:57:43| Now(U0)=|03082002| Now(UD)=|03/08/2002| Now(UM)=|3/8| Now(Um)=|3/8| Now(Us)=|3| Now(UH)=|18:57 3/8| Now(Uh)=|3/8 18:57| Now(UY)=|3/2002| Now(Uy)=|3/2002| Now(UT)=|03/08/2002 18:57:43| Now(D0 T0)=|20020308 185743|
AttrTable: A base class to access an attribute table. . Attribute table always store attributes in their native format, eg. color as Color object. Clients accessing the attribute table should knows the attribute type it is accessing. . For convenient, attributes can always be get/store through a String representation. attrString() always return the String representation of the attribute object and createAttr() method converts the String to the appropriate object type by consulting the AttrRegistry.
PseudoRandom: Utility methods involving pseudo random numbers. This class maintain a number of pseudo random number tables that can be used for situation that need repeatable results. . A tableID is used to select which table to use. The tableID have to be between 0 and number of tables. For convenient getTableID(int) map any int to a valid tableID. . Tables are added and never removed. . Size of each table is guarantee to be >=256.
SystemWatch: Watch for system status (time, memory footprint, ... etc). Usage: SystemWatch t1=new SystemWatch().start(); t1.stop(); msg.println(t1.toString()); // Cumulate elapsed time, recalculate used memory size. t1.start(); t1.stop(); // Reset elapsed time, recalculate used memory size. t1.restart(); t1.stop();
Conf: Configuation file read/write. This class parse an config. file in XML format. Multiple calls to read() can be used to merge any number of config. files. . Replace cl_conf class. Usage: cl_conf cf = new cl_conf(); cf.read(global_rcfname); cf.read(local_rcfname); ...
PointFactory: Point attribute factory. Since .dot file have coordinate system with origin at lower-left corner instead of upper-left corner used in java.awt, coordinates need to be converted when reading or writing to .dot file. DotMode convert between the two systems.
Heap: Heap implemented as an array of objects with an independent Comparator. index(root)=1; index(leftchild(i))=2*i; index(rightchild(i))=2*i+1; index(parent(i)=i/2; Note that index==0 is not occupied which save a few arithmetic operations during access.
IAttrFactory: Attribute factory interface provide methods for attribute creation, type conversion and user interface. . The attribute registry maintains a name->AttrFactory table. . The attribute type methods are used to serialize and de-serialize attributes.
ComparableHeap: Heap implemented as an array of Comparable objects. index(root)=1; index(leftchild(i))=2*i; index(rightchild(i))=2*i+1; index(parent(i)=i/2; Note that index==0 is not occupied which save a few arithmetic operations during access.
ListEnumerate: An sorted enumeration (array of array of Object) that contains all combinations of a list of list. For example: For input: [[1,2,3],[1,2]] Output: [[1,2],[1,2],[2,1],[2,2],[3,1],[2,3]]
GrappaColor: This abstract class sets up and provides name-to-color and color-to-name mappings and some associated class methods.
IntKeyHashMap: Hashtable for non-zero int keys. Copy of org.eclipse.jdt.internal.compiler.util.HashtableOfInt class.
MapWrapper: A wrapper around a Map to provide convinient access to basic type objects such as int and float.
msg: Debug and utility functions. Class cannot be instantiated. All functions are static.
IRegistry: Registry interface. A registry register a set of names for each different types.
IAttrTable: Interface to access attribute table.
MarkStack: Stack that can be mark and cleanup.
StopWatch: Stopwatch for timing elapse time.
DoublePair: Wrapper class to hold two values.
IntPair: Wrapper class to hold two values.
Pair: Wrapper class to hold two values.
RectFactory: Rectangle2D attribute factory.
Registry: Register basic implementation.

Home | Contact Us | Privacy Policy | Terms of Service