net.sf.latexdraw.util
Class LSystem

java.lang.Object
  extended by net.sf.latexdraw.util.LSystem

public final class LSystem
extends java.lang.Object

Defines some routines that provides information about the operating system currently used.

This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

05/14/10

Version:
3.0
Author:
Arnaud BLOUIN

Nested Class Summary
static class LSystem.OperatingSystem
          The different operating systems managed.
 
Field Summary
static LSystem INSTANCE
          The singleton.
 
Constructor Summary
private LSystem()
          Creates the singleton.
 
Method Summary
 LSystem.OperatingSystem getSystem()
           
 boolean isLinux()
           
 boolean isMacOSX()
           
 boolean isSeven()
           
 boolean isVista()
           
 boolean isWindows()
           
 boolean isXP()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final LSystem INSTANCE
The singleton.

Constructor Detail

LSystem

private LSystem()
Creates the singleton.

Method Detail

isWindows

public boolean isWindows()
Returns:
True: the operating system currently used is Windows.
Since:
3.0

isVista

public boolean isVista()
Returns:
True: the operating system currently used is Vista.
Since:
3.0

isXP

public boolean isXP()
Returns:
True: the operating system currently used is XP.
Since:
3.0

isSeven

public boolean isSeven()
Returns:
True: the operating system currently used is Seven.
Since:
3.0

isLinux

public boolean isLinux()
Returns:
True: the operating system currently used is Linux.
Since:
3.0

isMacOSX

public boolean isMacOSX()
Returns:
True: the operating system currently used is Mac OS X.
Since:
3.0

getSystem

public LSystem.OperatingSystem getSystem()
Returns:
The name of the operating system currently used.
Since:
3.0