private void plotValues(List<Point2D> points, Color color) { Plotter p = new Plotter(); int index = 0; for (Point2D point : points) { p.createAndAddPointArtifact("Point" + (index++), point, color); } JFrame f = new JFrame("Plotter Test"); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); f.getContentPane().add(p.getJPanel(), BorderLayout.CENTER); f.pack(); f.setVisible(true); } }
public PlotterPanel() { plotter = new Plotter(); GridBagConstraints gridBagConstraints = new GridBagConstraints(); setLayout(new GridBagLayout()); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = GridBagConstraints.BOTH; gridBagConstraints.gridwidth = 5; gridBagConstraints.gridheight = 5; gridBagConstraints.weightx = 1; gridBagConstraints.weighty = 1; add(plotter.getJPanel(), gridBagConstraints); }
public PlotterPanel() { plotter = new Plotter(); GridBagConstraints gridBagConstraints = new GridBagConstraints(); setLayout(new GridBagLayout()); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = GridBagConstraints.BOTH; gridBagConstraints.gridwidth = 5; gridBagConstraints.gridheight = 5; gridBagConstraints.weightx = 1; gridBagConstraints.weighty = 1; add(plotter.getJPanel(), gridBagConstraints); }
private static void showPlotterAndSleep(ArtifactList artifacts) { Plotter plotter = new Plotter(); plotter.setViewRange(2.0); artifacts.setVisible(true); JFrame frame = new JFrame("PolygonWigglingTest"); Dimension preferredSize = new Dimension(600, 600); frame.setPreferredSize(preferredSize); frame.add(plotter.getJPanel(), BorderLayout.CENTER); frame.setSize(preferredSize); frame.setVisible(true); artifacts.addArtifactsToPlotter(plotter); ThreadTools.sleepForever(); }
private static void showPlotter(YoGraphicsListRegistry yoGraphicsListRegistry, String windowName) Plotter plotter = new Plotter(); plotter.setViewRange(viewRange);
private void showPlotter(YoGraphicsListRegistry yoGraphicsListRegistry, String windowName) Plotter plotter = new Plotter(); plotter.setViewRange(1.0);
String name = matcher.group(); Plotter plotter = new Plotter(); plotter.setViewRange(range); plotter.setFocusPointX(focus.getX());
public static void showPlotter(YoGraphicsListRegistry yoGraphicsListRegistry, String windowName) Plotter plotter = new Plotter(); plotter.setViewRange(2.0);
public NetworkedPlotter() { plotter = new Plotter(PlotterColors.javaFXStyle(), true); plotter.setXYZoomEnabled(true); plotter.setViewRangeX(1000.0); plotter.setViewRangeY(1000.0); qualitativeColors = new QualitativeColors(); colorIndex = -1; id = 0; adjustingViewRangeMax = Optional.empty(); adjustingViewRangeMin = Optional.empty(); incrementSeries(); plotter.showInNewWindow("Networked Plotter", false); }
private void visualizeInvertedPendulum(double length1, double length2, ArrayList<Point2D> hipPositions, List<double[]> jointAngles) Plotter p = new Plotter(); Point2D hipPosition = new Point2D(); Point2D kneePosition = new Point2D();
public CTNodeVisualizer(String ctaskName, int configurationIndex, boolean enabled) { this.ctaskName = ctaskName; this.plotter = new Plotter(); this.configurationIndex = configurationIndex; /* * zoom- always normalized. */ plotter.setPreferredSize(700, 700); plotter.setViewRange(1.5); plotter.setXYZoomEnabled(true); plotter.setShowLabels(true); plotter.setFocusPointX(0.5); plotter.setFocusPointY(0.5); this.enabled = enabled; }
public SpatialNodePlotter(WholeBodyTrajectoryToolboxData toolboxData, boolean enabled) { this.dimensionOfConfigurations = toolboxData.getExplorationDimension(); this.upperLimits = new double[dimensionOfConfigurations]; this.lowerLimits = new double[dimensionOfConfigurations]; this.trajectoryTime = toolboxData.getTrajectoryTime(); for (int i = 0; i < dimensionOfConfigurations; i++) { Plotter plotter = new Plotter(); plotter.setPreferredSize(400, 600); plotter.setViewRange(2.0); plotter.setXYZoomEnabled(true); plotter.setShowLabels(true); plotter.setFocusPointX(0.5); plotter.setFocusPointY(0.0); plotters.add(plotter); upperLimits[i] = Double.NEGATIVE_INFINITY; lowerLimits[i] = Double.POSITIVE_INFINITY; String plotterName = toolboxData.createRandomSpatialData().getConfigurationNames().get(i); isFrameEnabled = enabled; if (enabled) plotter.showInNewWindow(plotterName, false); } cnt = 0; }
public void showPlotter() Plotter plotter = new Plotter(); plotter.setPreferredSize(800, 600);