Examples of ResourceManager


Examples of ch.blackspirit.graphics.ResourceManager

   
    final Image dark = canvas.getImageFactory().createImage(128, 128, true);
    final Image light = canvas.getImageFactory().createBufferedImage(128, 128,
        BufferTypeUtil.getBest(canvas.getImageFactory(), true));
   
    ResourceManager rm = canvas.getResourceManager();
    rm.cacheImage(dark);
    rm.cacheImage(campfire);
    rm.cacheImage(animLeftImage);
    rm.cacheImage(animFrontImage);
    rm.cacheImage(animBackImage);
    rm.cacheImage(leftImage);
    rm.cacheImage(frontImage);
    rm.cacheImage(backImage);
    rm.cacheImage(grass)
    final Animation<Frame> animLeft = new AnimationImpl<Frame>();
    animLeft.addFrame(new FrameImpl(animLeftImage, 160000000, 0, 0, 44, 68));
    animLeft.addFrame(new FrameImpl(animLeftImage, 160000000, 45, 0, 44, 68));
    animLeft.addFrame(new FrameImpl(animLeftImage, 160000000, 90, 0, 44, 68));
View Full Code Here

Examples of com.alibaba.antx.config.resource.ResourceManager

    public PropertiesSet() {
        this(null, null);
    }

    public PropertiesSet(BufferedReader in, PrintWriter out) {
        this.manager = new ResourceManager();
        this.systemProps = new SystemProperties();

        manager.setIn(in);
        manager.setOut(out);
    }
View Full Code Here

Examples of com.bitmovers.maui.engine.resourcemanager.ResourceManager

    *
    */
 
  public static String [] setAmble (String aFile, String aDefaultFile, String aLocation)
  {
    ResourceManager theRM = ResourceManager.getInstance ();
    String [] theExtensions = new String [] {".wml", ".html"};
    String theFileName = new String (aFile);
    int theIndex = 0;
   
    //++ 358 MW 2001.07.31
    if ((theIndex = aFile.lastIndexOf (".")) != -1)
    //-- 358
    {
      theFileName = theFileName.substring (0, theIndex);
    }
    String [] retVal = new String [theExtensions.length];
    for (int i = 0; i < theExtensions.length; i++)
    {
      try
      {
        retVal [i] = theRM.getResourceString (theFileName + theExtensions [i]);
      }
      catch (ResourceNotFoundException e)
      {
        File theLocation = new File ((aLocation == null ? "" : aLocation));
        File theFile = new File (aLocation, theFileName + theExtensions [i]);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.persistence.ResourceManager

    return deploymentManager;
  }

  public ResourceManager getResourceManager() {
    ResourceManager resourceManager = new ResourceManager();
    resourceManager.setCommandContext(this);

    return resourceManager;
  }
View Full Code Here

Examples of com.hbasebook.hush.ResourceManager

      if (dispatcher != null) {
        dispatcher.forward(request, response);
      }
    } else {
      // otherwise assume it is a short Id
      ResourceManager rm = ResourceManager.getInstance();
      boolean isQrCode = uri.endsWith(QR_EXTENSION);
      String shortId = isQrCode ? uri.substring(1, uri.length() -
        QR_EXTENSION.length()) : uri.substring(1);
      ShortUrl surl = rm.getUrlManager().getShortUrl(shortId);
      if (surl == null) {
        // if the short Id was bogus show a "shush" (our fail whale)
        httpResponse.sendError(404);
      } else if (isQrCode) {
        // show QRCode if requested
        sendQRCode(httpResponse, surl.getLongUrl());
      } else {
        // increment counters and redirect!
        rm.getCounters().incrementUsage(shortId, new RequestInfo(httpRequest));
        String refShortId = surl.getRefShortId();
        if (refShortId != null) {
          // increment the aggregate link
          rm.getCounters().incrementUsage(refShortId,
            new RequestInfo(httpRequest));
        }
        httpResponse.sendRedirect(surl.getLongUrl());
      }
    }
View Full Code Here

Examples of com.izforge.izpack.installer.ResourceManager

    /**
     * Builds the panel
     */
    private void buildPanel() {
      ImagePanel imagePanel = null;
      ResourceManager rm = ResourceManager.getInstance();

        // get image
      try {
      imagePanel = new ImagePanel(rm.getImageIconResource(WELCOME_IMAGE_RESOURCE));
    } catch (Exception e) {
      Debug.error(e);
    }
   
    JPanel textPanel = new JPanel(new IzPanelLayout());
View Full Code Here

Examples of com.jcloisterzone.ui.resources.ResourceManager

    }

    public void tileEvent(TileEvent ev) {
        Tile tile = ev.getTile();
        if (ev.getType() == TileEvent.PLACEMENT) {
            ResourceManager resourceManager = getClient().getResourceManager();
            Set<Location> farmLocations = new HashSet<>();
            for (Feature f : tile.getFeatures()) {
                if (f instanceof Farm) {
                    farmLocations.add(f.getLocation());
                }
            }
            if (farmLocations.isEmpty()) return;
            Map<Location, Area> tAreas = resourceManager.getFeatureAreas(tile, FULL_SIZE, farmLocations);
            areas.put(tile, tAreas);
            refreshHints();
        }
        if (ev.getType() == TileEvent.REMOVE) {
            areas.remove(tile);
View Full Code Here

Examples of com.l2fprod.common.util.ResourceManager

    }
  }

  public boolean gradientMarker_selectColor(int marker, RGBPalette pGradient) {
    if (marker >= 0) {
      ResourceManager rm = ResourceManager.all(FilePropertyEditor.class);
      String title = rm.getString("ColorPropertyEditor.title");

      RGBColor color = pGradient.getColor(markerPos[marker]);

      Color selectedColor = JColorChooser.showDialog(parent, title, new Color(color.getRed(), color.getGreen(), color.getBlue()));
      if (selectedColor != null) {
View Full Code Here

Examples of com.mobius.utils.ResourceManager

*/
public class LoggedUser {
    private LiveCycleService liveCycleService;
    private ResourceManager resourceManager;
    public LoggedUser(String userName, String password) {
        resourceManager = new ResourceManager();
        liveCycleService = new LiveCycleService(getResourceManager());
        this.userName = userName;
        this.password = password;
    }
View Full Code Here

Examples of com.pointcliki.io.ResourceManager

  @Override
  public void configureManagers() {
    if (fManagers != null) return;
   
    // Create the managers
    fResourceManager = new ResourceManager("lib");
    fInputManager = new InputManager();
    fEntityManager = new EntityManager();
   
    // Add to the manager set
    fManagers = new HashMap<Class<? extends Manager>, Manager>();
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.