Codota Logo
ImageFrame.<init>
Code IndexAdd Codota to your IDE (free)

How to use
it.geosolutions.jaiext.swing.ImageFrame
constructor

Best Java code snippets using it.geosolutions.jaiext.swing.ImageFrame.<init> (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: it.geosolutions.jaiext.utilities/jt-utilities

private static void doShowImage(RenderedImage img, String title) {
  ImageFrame f = new ImageFrame(img, title);
  f.setVisible(true);
}
origin: geosolutions-it/jai-ext

private static void doShowImage(RenderedImage img, String title) {
  ImageFrame f = new ImageFrame(img, title);
  f.setVisible(true);
}
origin: geosolutions-it/jai-ext

/**
 * Called when the Jiffle task has been completed successfully.
 * 
 * @param ev the event containing the task results
 */
private void onCompletion(JiffleEvent ev) {
  JiffleExecutorResult result = ev.getResult();
  RenderedImage img = result.getImages().get("result");
  ImageFrame frame = new ImageFrame(img, "Jiffle image demo");
  frame.setVisible(true);
}
origin: geosolutions-it/jai-ext

/**
 * Compiles a script read from a file and submits it for execution.
 * 
 * @param scriptFile file containing the Jiffle script
 * @throws Exception on an error in the Jiffle compiler
 */
public void compileAndRun(File scriptFile) throws Exception {
  Map<String, Jiffle.ImageRole> imageParams = new HashMap<>();
  imageParams.put("result", Jiffle.ImageRole.DEST);
  Jiffle jiffle = new Jiffle(scriptFile, imageParams);
  Map<String, RenderedImage> images = new HashMap<>();
  images.put("result",
      ImageUtilities.createConstantImage(WIDTH, HEIGHT, Double.valueOf(0d)));
  if (jiffle.isCompiled()) {
    JiffleDirectRuntime runtime = jiffle.getRuntimeInstance();
    final TiledImage destImg = ImageUtilities.createConstantImage(WIDTH, HEIGHT, 0d);
    runtime.setDestinationImage("result", destImg);
    
    runtime.evaluateAll(null);
    
    ImageFrame frame = new ImageFrame(destImg, "Jiffle image demo");
    frame.setVisible(true);
  }
}
origin: geosolutions-it/jai-ext

public static void main(String[] args) {
  Ripples me = new Ripples();
  TiledImage image = ImageUtilities.createConstantImage(300, 300, 0d);
  me.createRipplesImage(image);
  
  ImageFrame frame = new ImageFrame(image, "ripples");
  frame.setSize(550, 550);
  frame.setVisible(true);
}
origin: geosolutions-it/jai-ext

public static void main(String[] args) throws JiffleException {
  RunProportionalRipples self = new RunProportionalRipples();
  
  String script = 
      "init { C = M_PI * 8; }"
      + "dx = 2*(x() - 0.5); \n"
      + "dy = 2*(y() - 0.5); \n"
      + "d = sqrt(dx*dx + dy*dy); \n"
      + "destImg = sin(C * d);" ;
  
  WritableRenderedImage destImage = ImageUtilities.createConstantImage(500, 500, 0d);
  self.runScriptWithJiffle(script, "destImg", destImage);
  
  ImageFrame frame = new ImageFrame(destImage, "Ripples");
  frame.setSize(550, 550);
  frame.setVisible(true);
}
origin: geosolutions-it/jai-ext

  /**
   * Compiles and runs the "ripple" script using {@link JiffleBuilder}.
   * @param args ignored
   * @throws Exception if there are errors compiling the script.
   */
  public static void main(String[] args) throws Exception {
    JiffleBuilderDemo me = new JiffleBuilderDemo();
    File f = JiffleDemoHelper.getScriptFile(args, ImageChoice.RIPPLES);
    String script = JiffleDemoHelper.readScriptFile(f);
    JiffleBuilder jb = new JiffleBuilder();
    jb.script(script).dest("result", WIDTH, HEIGHT).getRuntime().evaluateAll(null);

    ImageFrame frame = new ImageFrame(jb.getImage("result"), "Jiffle image demo");
    frame.setVisible(true);
  }
}
it.geosolutions.jaiext.swingImageFrame<init>

Javadoc

Constructor for separate display and data images.

Popular methods of ImageFrame

  • setVisible
  • setSize
  • doSetCursorInfo
  • doShowImage
  • getContentPane
  • pack
  • setCursorInfo
  • setDefaultCloseOperation
  • setLocationByPlatform
  • setStatusText
    Set the status bar contents. This is used by ImagePane
  • setTitle
  • showImage
    Displays the given image in a new ImageFrame. This method can be safely called from any thread. The
  • setTitle,
  • showImage

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • onRequestPermissionsResult (Fragment)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • JLabel (javax.swing)
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