net.thestump.ghronos.device
Class Device

java.lang.Object
  extended bynet.thestump.ghronos.device.Device

public class Device
extends java.lang.Object

Provides methods useful for understanding the running device

Author:
Christopher C. Stump

Constructor Summary
Device()
           
 
Method Summary
static java.lang.String getCatalogName()
          Determines the catalog name appropriate for this device
static boolean isPda()
          Tells what kind of platform we are on
static boolean isScreen(int height, int width)
          Tells the screen size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Device

public Device()
Method Detail

isScreen

public static boolean isScreen(int height,
                               int width)
Tells the screen size

Parameters:
height - Inquiry of the screen height
width - Inquiry of the screen width
Returns:
True if width matches the screen width and height matches the screen height

isPda

public static boolean isPda()
Tells what kind of platform we are on

Returns:
true if the host device is a pda, false if not

getCatalogName

public static java.lang.String getCatalogName()
Determines the catalog name appropriate for this device

Returns:
The name of the catalog used to store Ghronos settings


Copyright © 2004 Christopher C. Stump. All Rights Reserved.