congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Plotter.getPlotterHeightPixels
Code IndexAdd Tabnine to your IDE (free)

How to use
getPlotterHeightPixels
method
in
us.ihmc.plotting.Plotter

Best Java code snippets using us.ihmc.plotting.Plotter.getPlotterHeightPixels (Showing top 13 results out of 315)

origin: us.ihmc/Plotting

public void setViewRange(double minimumViewRange)
{
 double smallestDimension;
 smallestDimension = Math.min(getPlotterWidthPixels(), getPlotterHeightPixels());
 double newPixelsPerMeter = smallestDimension / minimumViewRange;
 setScale(newPixelsPerMeter, newPixelsPerMeter);
}
origin: us.ihmc/ihmc-swing-plotting

public void setViewRange(double minimumViewRange)
{
 double smallestDimension;
 smallestDimension = Math.min(getPlotterWidthPixels(), getPlotterHeightPixels());
 double newPixelsPerMeter = smallestDimension / minimumViewRange;
 setScale(newPixelsPerMeter, newPixelsPerMeter);
}
origin: us.ihmc/Plotting

/**
* Specify amount of meters that occupy view in X and Y.
*/
public void setViewRange(double viewRangeInX, double viewRangeInY)
{
 setScale(getPlotterWidthPixels() / viewRangeInX, getPlotterHeightPixels() / viewRangeInY);
}
origin: us.ihmc/Plotting

public double getViewRange()
{
 if (getPlotterWidthPixels() <= getPlotterHeightPixels())
 {
   return metersToPixels.getX() * getPlotterWidthPixels();
 }
 else
 {
   return metersToPixels.getY() * getPlotterHeightPixels();
 }
}
origin: us.ihmc/ihmc-swing-plotting

/**
* Specify amount of meters that occupy view in X and Y.
*/
public void setViewRange(double viewRangeInX, double viewRangeInY)
{
 setScale(getPlotterWidthPixels() / viewRangeInX, getPlotterHeightPixels() / viewRangeInY);
}
origin: us.ihmc/ihmc-swing-plotting

public double getViewRange()
{
 if (getPlotterWidthPixels() <= getPlotterHeightPixels())
 {
   return metersToPixels.getX() * getPlotterWidthPixels();
 }
 else
 {
   return metersToPixels.getY() * getPlotterHeightPixels();
 }
}
origin: us.ihmc/ihmc-swing-plotting

public void setViewRangeY(double viewRangeInY)
{
 setScale(metersToPixels.getX(), getPlotterHeightPixels() / viewRangeInY);
}
origin: us.ihmc/Plotting

private void centerOnFocusPoint()
{
 focusPoint.changeFrame(pixelsFrame);
 
 screenPosition.changeFrame(pixelsFrame);
 screenPosition.set(focusPoint);
 screenPosition.add(-getPlotterWidthPixels() / 2.0, getPlotterHeightPixels() / 2.0);
 updateFrames();
}
origin: us.ihmc/ihmc-swing-plotting

private void centerOnFocusPoint()
{
 focusPoint.changeFrame(pixelsFrame);
 
 screenPosition.changeFrame(pixelsFrame);
 screenPosition.set(focusPoint);
 screenPosition.add(-getPlotterWidthPixels() / 2.0, getPlotterHeightPixels() / 2.0);
 updateFrames();
}
origin: us.ihmc/Plotting

private void updateFrames()
{
 panel.computeVisibleRect(visibleRectangle);
 
 pixelsFrame.update();
 screenFrame.update();
 metersFrame.update();
 
 upperLeftCorner.setIncludingFrame(screenFrame, 0.0, 0.0);
 lowerRightCorner.setIncludingFrame(screenFrame, getPlotterWidthPixels(), getPlotterHeightPixels());
 origin.setIncludingFrame(metersFrame, 0.0, 0.0);
}
origin: us.ihmc/ihmc-swing-plotting

private void updateFrames()
{
 panel.computeVisibleRect(visibleRectangle);
 
 pixelsFrame.update();
 screenFrame.update();
 metersFrame.update();
 
 upperLeftCorner.setIncludingFrame(screenFrame, 0.0, 0.0);
 lowerRightCorner.setIncludingFrame(screenFrame, getPlotterWidthPixels(), getPlotterHeightPixels());
 origin.setIncludingFrame(metersFrame, 0.0, 0.0);
}
origin: us.ihmc/ihmc-swing-plotting

labelPosition = new PlotterPoint2d(screenFrame);
screenPosition.set(-getPlotterWidthPixels() / 2.0, getPlotterHeightPixels() / 2.0);
focusPoint.setIncludingFrame(metersFrame, 0.0, 0.0);
origin: us.ihmc/Plotting

labelPosition = new PlotterPoint2d(screenFrame);
screenPosition.set(-getPlotterWidthPixels() / 2.0, getPlotterHeightPixels() / 2.0);
focusPoint.setIncludingFrame(metersFrame, 0.0, 0.0);
us.ihmc.plottingPlottergetPlotterHeightPixels

Popular methods of Plotter

  • setViewRange
    Specify amount of meters that occupy view in X and Y.
  • <init>
  • addArtifact
  • getJPanel
  • setFocusPointX
  • setFocusPointY
  • addArtifactsChangedListener
  • showInNewWindow
  • setXYZoomEnabled
  • update
  • setPreferredSize
  • setShowLabels
  • setPreferredSize,
  • setShowLabels,
  • calculateGridSizePixels,
  • centerOnFocusPoint,
  • createAndAttachPlotterLegendPanel,
  • forAllArtifacts,
  • getArtifacts,
  • getPlotter2DAdapter,
  • getPlotterWidthPixels

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • BoxLayout (javax.swing)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now