Tabnine Logo
ImageFileFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
ImageFileFactory
in
megamek.client.ui.swing.util

Best Java code snippets using megamek.client.ui.swing.util.ImageFileFactory (Showing top 8 results out of 315)

origin: MegaMek/megamek

public ScenarioLoader(File f) {
  scenarioFile = f;
  try {
    camos = new DirectoryItems(Configuration.camoDir(), "", ImageFileFactory.getInstance()); //$NON-NLS-1$
  } catch (Exception e) {
    camos = null;
  }
}

origin: MegaMek/megamek

/**
 * Get the Singleton <code>ImageFileFactory</code>.
 * 
 * @return the Singleton <code>ImageFileFactory</code>.
 */
public static ImageFileFactory getInstance() {
  if (null == singleton)
    singleton = new ImageFileFactory();
  return singleton;
}
origin: MegaMek/megamek

/**
 * This constructor have to be called only from addNotify() method
 */
public PilotMapSet(JComponent c) {
  comp = c;
  try {
    portraits = new DirectoryItems(Configuration.portraitImagesDir(), "", //$NON-NLS-1$
        ImageFileFactory.getInstance());
  } catch (Exception e) {
    portraits = null;
  }
  setAreas();
  setBackGround();
}
origin: MegaMek/megamek

      ImageFileFactory.getInstance());
} catch (Exception e) {
  camos = null;
origin: MegaMek/megamek

      Configuration.portraitImagesDir(),
      "", //$NON-NLS-1$
      ImageFileFactory.getInstance()
  );
} catch (Exception e) {
origin: MegaMek/mekhq

try {
  camos = new DirectoryItems(new File("data/images/camo"), "", //$NON-NLS-1$ //$NON-NLS-2$
      ImageFileFactory.getInstance());
} catch (Exception e) {
  camos = null;
origin: MegaMek/megamek

      ImageFileFactory.getInstance());
} catch (Exception e) {
  portraits = null;
origin: MegaMek/megamek

      Configuration.camoDir(),
      "", //$NON-NLS-1$
      ImageFileFactory.getInstance()
  );
} catch (Exception e) {
megamek.client.ui.swing.utilImageFileFactory

Javadoc

This class will produce Image objects from files. If an image file is inside of JAR and ZIP file, then it must save the contents to a temporary file.

Created on January 18, 2004

Most used methods

  • getInstance
    Get the Singleton ImageFileFactory.
  • <init>
    Implement the Singleton pattern.

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • Kernel (java.awt.image)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now