Tabnine Logo
Plotter.getPlotterWidthPixels
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: us.ihmc/ihmc-swing-plotting

public double getViewRangeX()
{
 return metersToPixels.getX() * getPlotterWidthPixels();
}
origin: us.ihmc/ihmc-swing-plotting

public double getViewRangeY()
{
 return metersToPixels.getY() * getPlotterWidthPixels();
}
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 setViewRangeX(double viewRangeInX)
{
 setScale(getPlotterWidthPixels() / viewRangeInX, metersToPixels.getY());
}
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.plottingPlottergetPlotterWidthPixels

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,
  • getPlotterHeightPixels

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JTable (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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