Codota Logo
ImageFrame.getContentPane
Code IndexAdd Codota to your IDE (free)

How to use
getContentPane
method
in
it.geosolutions.jaiext.swing.ImageFrame

Best Java code snippets using it.geosolutions.jaiext.swing.ImageFrame.getContentPane (Showing top 2 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

/**
 * Constructor for separate display and data images.
 *
 * @param displayImg image to be displayed
 *
 * @param dataImg an image with bounds equal to, or enclosing, those of
 * displayImg and which contains data that will be reported in the status
 * bar; if null data will be drawn from the display image
 *
 * @param title title for the frame
 */
public ImageFrame(RenderedImage displayImg, RenderedImage dataImg, String title) {
  setTitle(title);
  setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  setLocationByPlatform(true);
  ImagePane pane = new ImagePane(this, displayImg, dataImg);
  getContentPane().add(pane, BorderLayout.CENTER);
  
  sb = new StringBuilder();
  statusBar = new JTextField();
  statusBar.setEditable(false);
  statusBar.setMinimumSize(new Dimension(100, 30));
  statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
  getContentPane().add(statusBar, BorderLayout.SOUTH);
  pack();
  setSize(500, 500);
}

origin: geosolutions-it/jai-ext

/**
 * Constructor for separate display and data images.
 *
 * @param displayImg image to be displayed
 *
 * @param dataImg an image with bounds equal to, or enclosing, those of
 * displayImg and which contains data that will be reported in the status
 * bar; if null data will be drawn from the display image
 *
 * @param title title for the frame
 */
public ImageFrame(RenderedImage displayImg, RenderedImage dataImg, String title) {
  setTitle(title);
  setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  setLocationByPlatform(true);
  ImagePane pane = new ImagePane(this, displayImg, dataImg);
  getContentPane().add(pane, BorderLayout.CENTER);
  
  sb = new StringBuilder();
  statusBar = new JTextField();
  statusBar.setEditable(false);
  statusBar.setMinimumSize(new Dimension(100, 30));
  statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
  getContentPane().add(statusBar, BorderLayout.SOUTH);
  pack();
  setSize(500, 500);
}

it.geosolutions.jaiext.swingImageFramegetContentPane

Popular methods of ImageFrame

  • <init>
    Constructor to display and draw data from a single image
  • setVisible
  • setSize
  • doSetCursorInfo
  • doShowImage
  • 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

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
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