Codota Logo
PlotPanel.addGrid
Code IndexAdd Codota to your IDE (free)

How to use
addGrid
method
in
edu.mines.jtk.mosaic.PlotPanel

Best Java code snippets using edu.mines.jtk.mosaic.PlotPanel.addGrid (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: dhale/jtk

/**
 * Adds a grid view with specified parameters string. 
 * For the format of the parameters string, see 
 * {@link edu.mines.jtk.mosaic.GridView#setParameters(String)}.
 * @param parameters the parameters string.
 * @return the grid view.
 */
public GridView addGrid(String parameters) {
 return addGrid(0,0,parameters);
}
origin: dhale/jtk

/**
 * Adds a grid view.
 * @return the grid view.
 */
public GridView addGrid() {
 return _panel.addGrid();
}
origin: dhale/jtk

/**
 * Adds a grid view with specified parameters string.
 * For the format of the parameters string, see
 * {@link edu.mines.jtk.mosaic.GridView#setParameters(String)}.
 * @param parameters the parameters string.
 * @return the grid view.
 */
public GridView addGrid(String parameters) {
 return _panel.addGrid(parameters);
}
origin: dhale/jtk

/**
 * Adds a grid view.
 * @return the grid view.
 */
public GridView addGrid() {
 return addGrid(0,0);
}
origin: dhale/jtk

 @Override
 public void actionPerformed(ActionEvent arg0) {
  if(gv==null){
   gv = plot.addGrid(0,0);
   b.setText("Remove Grid");
  }
  else{
   plot.remove(gv);
   gv=null;
   b.setText("Add Grid");
  }
 }
});
origin: dhale/jtk

_plotPanel.addGrid("H0-V0-");
origin: dhale/jtk

public PlotFrameDemo() {
 float[] x = rampfloat(0.0f,4.0f*FLT_PI/200.0f,201);
 float[] s = sin(x);
 _plotPanel = new PlotPanel();
 _plotPanel.setTitle("The sine function");
 _plotPanel.setHLabel("x");
 _plotPanel.setVLabel("sin(x)");
 _gridView = _plotPanel.addGrid();
 _pointsView = _plotPanel.addPoints(x,s);
 _pointsView.setStyle("r-o");
 _plotFrame = new PlotFrame(_plotPanel);
 _plotFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 _plotFrame.setVisible(true);
 _plotFrame.add(
  new Label("In either plot or axes, click-drag to zoom, click to unzoom."),
  BorderLayout.NORTH);
}
edu.mines.jtk.mosaicPlotPaneladdGrid

Javadoc

Adds a grid view.

Popular methods of PlotPanel

  • <init>
    Constructs a new plot panel with a mosaic of one tile.
  • addColorBar
    Adds the color bar with specified label.
  • addContours
    Adds a contours view with the function f(x1,x2). Function f(x1,x2) assumed to have uniform sampling.
  • addPixels
    Adds a pixels view of the specified sampled function f(x1,x2). Assumes zero first sample values and
  • addPoints
    Adds a view of arrays of (x1,x2) coordinates for multiple plot segments. The lengths of the specifie
  • addSequence
    Adds a sequence view with specified values f(x). Uses default sampling of x = 0, 1, 2, ....
  • getMosaic
    Gets the mosaic. The mosaic contains one or more tiles.
  • remove
  • setHLabel
    Sets the label for the horizontal axis.
  • setHLimits
    Sets limits for the horizontal axis in the specified column. By default, limits are computed automat
  • setLimits
    Sets limits for the both horizontal and vertical axes. By default, limits are computed automatically
  • setLimitsDefault
    Sets default limits for horizontal and vertical axes. This method may be used to restore default lim
  • setLimits,
  • setLimitsDefault,
  • setTitle,
  • setVLabel,
  • setVLimits,
  • add,
  • addBars,
  • addBarsView,
  • addContoursView

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
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