Codota Logo
PositionedImage
Code IndexAdd Codota to your IDE (free)

How to use
PositionedImage
in
org.microemu.device.impl

Best Java code snippets using org.microemu.device.impl.PositionedImage (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.microemu/microemu-javase-swing

public void paintControls(Graphics g) {
  Device device = DeviceFactory.getDevice();
  g.setColor(backgroundColor);
  g.fillRect(0, 0, displayRectangle.width, displayPaintable.y);
  g.fillRect(0, displayPaintable.y, displayPaintable.x, displayPaintable.height);
  g.fillRect(displayPaintable.x + displayPaintable.width, displayPaintable.y, displayRectangle.width
      - displayPaintable.x - displayPaintable.width, displayPaintable.height);
  g.fillRect(0, displayPaintable.y + displayPaintable.height, displayRectangle.width, displayRectangle.height
      - displayPaintable.y - displayPaintable.height);
  g.setColor(foregroundColor);
  for (Enumeration s = device.getSoftButtons().elements(); s.hasMoreElements();) {
    ((J2SESoftButton) s.nextElement()).paint(g);
  }
  int inputMode = device.getInputMethod().getInputMode();
  if (inputMode == InputMethod.INPUT_123) {
    g.drawImage(((J2SEImmutableImage) mode123Image.getImage()).getImage(), mode123Image.getRectangle().x,
        mode123Image.getRectangle().y, null);
  } else if (inputMode == InputMethod.INPUT_ABC_UPPER) {
    g.drawImage(((J2SEImmutableImage) modeAbcUpperImage.getImage()).getImage(), modeAbcUpperImage
        .getRectangle().x, modeAbcUpperImage.getRectangle().y, null);
  } else if (inputMode == InputMethod.INPUT_ABC_LOWER) {
    g.drawImage(((J2SEImmutableImage) modeAbcLowerImage.getImage()).getImage(), modeAbcLowerImage
        .getRectangle().x, modeAbcLowerImage.getRectangle().y, null);
  }
}
origin: org.microemu/microemu-javase

  deviceDisplay.setMode123Image(new PositionedImage(loadImage(classLoader, base, tmp_display
      .getStringAttribute("src")), getRectangle(tmp_display.getChild("paintable"))));
} else if (tmp_display.getStringAttribute("type").equals("abc")) {
  deviceDisplay.setModeAbcLowerImage(new PositionedImage(loadImage(classLoader, base, tmp_display
      .getStringAttribute("src")), getRectangle(tmp_display.getChild("paintable"))));
} else if (tmp_display.getStringAttribute("type").equals("ABC")) {
  deviceDisplay.setModeAbcUpperImage(new PositionedImage(loadImage(classLoader, base, tmp_display
      .getStringAttribute("src")), getRectangle(tmp_display.getChild("paintable"))));
  if (tmp_status.getName().equals("img")) {
    if (tmp_status.getStringAttribute("name").equals("123")) {
      deviceDisplay.setMode123Image(new PositionedImage(loadImage(classLoader, base,
          tmp_status.getStringAttribute("src")), paintable));
    } else if (tmp_status.getStringAttribute("name").equals("abc")) {
      deviceDisplay.setModeAbcLowerImage(new PositionedImage(loadImage(classLoader, base,
          tmp_status.getStringAttribute("src")), paintable));
    } else if (tmp_status.getStringAttribute("name").equals("ABC")) {
      deviceDisplay.setModeAbcUpperImage(new PositionedImage(loadImage(classLoader, base,
          tmp_status.getStringAttribute("src")), paintable));
origin: org.microemu/microemu-javase-swt

  g.drawImage(((SwtImmutableImage) mode123Image.getImage()).getImage(), 
      mode123Image.getRectangle().x, mode123Image.getRectangle().y);
} else if (inputMode == InputMethod.INPUT_ABC_UPPER) {
  g.drawImage(((SwtImmutableImage) modeAbcUpperImage.getImage()).getImage(), 
      modeAbcUpperImage.getRectangle().x, modeAbcUpperImage.getRectangle().y);
} else if (inputMode == InputMethod.INPUT_ABC_LOWER) {
  g.drawImage(((SwtImmutableImage) modeAbcLowerImage.getImage()).getImage(), 
      modeAbcLowerImage.getRectangle().x, modeAbcLowerImage.getRectangle().y);
org.microemu.device.implPositionedImage

Most used methods

  • getImage
  • getRectangle
  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • JComboBox (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now