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

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

Best Java code snippets using it.geosolutions.jaiext.swing.ImageFrame.pack (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.swingImageFramepack

Popular methods of ImageFrame

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

  • Finding current android device location
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • String (java.lang)
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
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