Package java.util.prefs

Examples of java.util.prefs.Preferences.node()


    // outputconfigs
    value = "out1to2";
    putDontOverwrite( childPrefs, KEY_OUTPUTCONFIG, value );
    try {
      if( !childPrefs.nodeExists( NODE_OUTPUTCONFIGS )) {
        childPrefs2 = childPrefs.node( NODE_OUTPUTCONFIGS );
        new RoutingConfig( value, "Out 1-2", new int[] { 0, 1 }, -90f ).toPrefs(
          childPrefs2.node( value ));
        value = "out1to8";
        new RoutingConfig( value, "Out 1-8", new int[] { 0, 1, 2, 3, 4, 5, 6, 7 }, -45f ).toPrefs(
          childPrefs2.node( value ));
View Full Code Here


    }

    // inputconfigs
    try {
      if( !childPrefs.nodeExists( NODE_INPUTCONFIGS )) {
        childPrefs2 = childPrefs.node( NODE_INPUTCONFIGS );
        value = "in1";
        new RoutingConfig( value, "In 1", new int[] { 0 }, 0f ).toPrefs(
          childPrefs2.node( value ));
        value = "in1to2";
        new RoutingConfig( value, "In 1-2", new int[] { 0, 1 }, 0f ).toPrefs(
View Full Code Here

   
    // view
    childPrefs  = mainPrefs.node( NODE_VIEW );
    try {
      if( !childPrefs.nodeExists( NODE_SONAGRAM )) {
        childPrefs2 = childPrefs.node( NODE_SONAGRAM );
        new ConstQ().writePrefs( childPrefs2 );
      }
    }
    catch( BackingStoreException e1 ) {
      warnings.add( e1.toString() );
View Full Code Here

 
    final Application        app      = AbstractApplication.getApplication();
    final Preferences        userPrefs  = app.getUserPrefs();
    final PreferenceChangeListener  oCfgListener;

    audioPrefs        = userPrefs.node( PrefsUtil.NODE_AUDIO );
    so            = new ServerOptions();
    so.setBlockAllocFactory( new ContiguousBlockAllocator.Factory() )// deals better with fragmentation
   
    oCfgListener = new PreferenceChangeListener() {
      public void preferenceChange( PreferenceChangeEvent e )
View Full Code Here

      oCfgNode = null;
    }

    try {
      if( (cfgID != null) && childPrefs.nodeExists( cfgID )) {
        oCfgNode  = childPrefs.node( cfgID );
        newCfg    = new RoutingConfig( oCfgNode );
//        oCfgNode.addPreferenceChangeListener( oCfgListener );
        oCfgDynPrefs.setPreferences( oCfgNode );
        oCfgDynPrefs.startListening();
      }
View Full Code Here

    String            lafName;
    List            openDoc      = null;

    // ---- init prefs ----

    oscServer      = new OSCRoot( prefs.node( OSCRoot.DEFAULT_NODE ), 0x4549 );
    prefsVersion = prefs.getDouble( PrefsUtil.KEY_VERSION, 0.0 );
    if( prefsVersion < APP_VERSION ) {
      warnings = PrefsUtil.createDefaults( prefs, prefsVersion );
    } else {
      warnings = null;
View Full Code Here

    // ---- init infrastructure ----
    // warning : reihenfolge is crucial
//    oscServer      = new OSCRoot( prefs.node( OSCRoot.DEFAULT_NODE ), 0x4549 );
    osc          = new OSCRouterWrapper( oscServer, this );
    final CacheManager cache = new PrefCacheManager( prefs.node( PrefCacheManager.DEFAULT_NODE ));
    superCollider    = new SuperColliderClient();

    init();
   
    // ---- listeners ----
View Full Code Here

      }
    }

    oscServer.init();
   
    if( prefs.node( PrefsUtil.NODE_AUDIO ).getBoolean( PrefsUtil.KEY_AUTOBOOT, false )) {
      superCollider.boot();
    }
   
//    de.sciss.gui.MultiStateButton.makeTestFrame( javax.swing.SwingConstants.CENTER, javax.swing.SwingConstants.CENTER );
   
View Full Code Here

        Preferences prefs = Preferences.userNodeForPackage(JmeClientMain.class);
       
        // first try a preference
        String requestedFPS = null;
        try {
            if (prefs.node(prefs.absolutePath()).get("fps", null) != null) {
                requestedFPS = prefs.get("fps", DESIRED_FPS_DEFAULT);
            }
        } catch (Exception e) {
        }
       
View Full Code Here

            }
        }

        public void save() {
            Preferences prefs = Preferences.userNodeForPackage(LogViewerFrame.class);
            prefs = prefs.node("loggerTable");

            try {
                prefs.clear();
            } catch (BackingStoreException ex) {
                logger.log(Level.WARNING, "Error clearing preferences", ex);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.