All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.l2f.util.Misc

java.lang.Object
   |
   +----fr.l2f.util.Misc

public class Misc
extends Object

Variable Index

 o BOTTOM
 o CENTER
 o LEFT
 o RIGHT
 o TOP

Constructor Index

 o Misc()

Method Index

 o absLocation(Component)
 o align(int, Window)
 o center(Window)
 o findApplet(Component)
 o findFrame(Component)
 o findTopContainer(Component)
 o findWindow(Component)
 o format(String, String, int, int)
 o formatNumber(double, int)
 o getCurrentDate()
Return the current date in the format dd/mm/yyyy
 o getDateTime(long)
 o locationInFrame(Component)
 o locationInWindow(Component)

Variables

 o TOP
 public static final int TOP
 o BOTTOM
 public static final int BOTTOM
 o LEFT
 public static final int LEFT
 o RIGHT
 public static final int RIGHT
 o CENTER
 public static final int CENTER

Constructors

 o Misc
 public Misc()

Methods

 o getCurrentDate
 public static String getCurrentDate()
Return the current date in the format dd/mm/yyyy

 o getDateTime
 public static String getDateTime(long l)
 o format
 public static String format(String s,
                             String c,
                             int size,
                             int orientation)
 o formatNumber
 public static String formatNumber(double n,
                                   int decimal)
 o center
 public static void center(Window w)
 o align
 public static void align(int where,
                          Window w)
 o findFrame
 public static Frame findFrame(Component component)
 o findWindow
 public static Window findWindow(Component component)
 o findApplet
 public static Applet findApplet(Component component)
 o findTopContainer
 public static Container findTopContainer(Component component)
 o locationInFrame
 public static Point locationInFrame(Component component)
 o locationInWindow
 public static Point locationInWindow(Component component)
 o absLocation
 public static Point absLocation(Component component)

All Packages  Class Hierarchy  This Package  Previous  Next  Index