org.scijava.platform
Class AbstractPlatform

java.lang.Object
  extended by org.scijava.platform.AbstractPlatform
All Implemented Interfaces:
Disposable, Platform, SciJavaPlugin, SingletonPlugin
Direct Known Subclasses:
DefaultPlatform

public abstract class AbstractPlatform
extends Object
implements Platform

Abstract superclass of platform implementations.

Author:
Curtis Rueden

Constructor Summary
AbstractPlatform()
           
 
Method Summary
 void configure(PlatformService service)
          Activates and configures the platform.
 void dispose()
          Performs any needed cleanup of the object's services, in preparation for the object being retired (e.g., to make garbage collection possible).
protected  PlatformService getPlatformService()
           
 boolean isTarget()
          Determines whether the given platform is applicable to this runtime.
 String javaVendor()
          Java Runtime Environment vendor to match.
 String javaVersion()
          Minimum required Java Runtime Environment version.
 String osArch()
          Operating system architecture to match.
 String osName()
          Operating system name to match.
 String osVersion()
          Minimum required operating system version.
 boolean registerAppMenus(Object menus)
          Informs the platform of a UI's newly created application menu structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.scijava.platform.Platform
open
 

Constructor Detail

AbstractPlatform

public AbstractPlatform()
Method Detail

javaVendor

public String javaVendor()
Description copied from interface: Platform
Java Runtime Environment vendor to match.

Specified by:
javaVendor in interface Platform

javaVersion

public String javaVersion()
Description copied from interface: Platform
Minimum required Java Runtime Environment version.

Specified by:
javaVersion in interface Platform

osArch

public String osArch()
Description copied from interface: Platform
Operating system architecture to match.

Specified by:
osArch in interface Platform

osName

public String osName()
Description copied from interface: Platform
Operating system name to match.

Specified by:
osName in interface Platform

osVersion

public String osVersion()
Description copied from interface: Platform
Minimum required operating system version.

Specified by:
osVersion in interface Platform

isTarget

public boolean isTarget()
Description copied from interface: Platform
Determines whether the given platform is applicable to this runtime.

Specified by:
isTarget in interface Platform

configure

public void configure(PlatformService service)
Description copied from interface: Platform
Activates and configures the platform.

Specified by:
configure in interface Platform

registerAppMenus

public boolean registerAppMenus(Object menus)
Description copied from interface: Platform
Informs the platform of a UI's newly created application menu structure. The platform may choose to do something platform-specific with the menus.

Specified by:
registerAppMenus in interface Platform
Parameters:
menus - The UI's newly created menu structure
Returns:
true iff the menus should not be added to the UI as normal because the platform did something platform-specific with them instead.

dispose

public void dispose()
Description copied from interface: Disposable
Performs any needed cleanup of the object's services, in preparation for the object being retired (e.g., to make garbage collection possible).

Specified by:
dispose in interface Disposable

getPlatformService

protected PlatformService getPlatformService()


Copyright © 2009–2014 SciJava. All rights reserved.