Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.task.ui
Class StringUtils

java.lang.Object
  extended by cytoscape.task.ui.StringUtils

public class StringUtils
extends Object

Misc Utilities for Formatting Times and Strings.

Author:
Ethan Cerami

Field Summary
static String NOT_AVAILABLE_STR
          Not Available String.
static int STR_LENGTH
          String Length.
 
Constructor Summary
StringUtils()
           
 
Method Summary
static String getTimeString(long time)
          Given a time value in milliseconds, this method returns a human readable representation.
static String truncateOrPadString(String str)
          Truncates a String to a specific length or pads it with extra spaces.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_AVAILABLE_STR

public static final String NOT_AVAILABLE_STR
Not Available String.

See Also:
Constant Field Values

STR_LENGTH

public static final int STR_LENGTH
String Length.

See Also:
Constant Field Values
Constructor Detail

StringUtils

public StringUtils()
Method Detail

getTimeString

public static String getTimeString(long time)
Given a time value in milliseconds, this method returns a human readable representation. Here are a few examples:

Parameters:
time - Time in millseconds.
Returns:
Human Readable Representation of Time.

truncateOrPadString

public static String truncateOrPadString(String str)
Truncates a String to a specific length or pads it with extra spaces.

Parameters:
str - Original String.
Returns:
Trucated or Padded String.

www.cytoscape.org