public void setUseRelativeTime(boolean selected) { chartSettings.setUseRelativeTime(selected); if (selected) { setxAxisLabelRenderer(new DateTimeRenderer(DateTimeRenderer.HHMMSS, testStartTime)); } else { setxAxisLabelRenderer(new DateTimeRenderer(DateTimeRenderer.HHMMSS)); } }
public void add(long xVal, double yVal) { if (getFirstTime() == Long.MIN_VALUE) { firstTime = xVal; } if (xVal > maxX) { maxX = xVal; } if (xVal < minX) { minX = xVal; } }
protected void handleRelativeStartTime() { if (graphPanel.getGraphObject().getChartSettings().isUseRelativeTime()) { graphPanel.getGraphObject().setxAxisLabelRenderer(new DateTimeRenderer(DateTimeRenderer.HHMMSS, relativeStartTime)); } graphPanel.getGraphObject().setTestStartTime(relativeStartTime); graphPanel.getGraphObject().setForcedMinX(relativeStartTime); }
public AbstractOverTimeVisualizer() { graphPanel.getGraphObject().setxAxisLabelRenderer(new DateTimeRenderer(DateTimeRenderer.HHMMSS)); graphPanel.getGraphObject().setxAxisLabel("Elapsed time"); graphPanel.getGraphObject().setDisplayPrecision(true); }
@Override protected void setChartPropertiesFromTG(AbstractDynamicThreadGroup atg) { previewChart.setYAxisLabel("Number of concurrent threads"); }
private void paintRows(Graphics g, ColorsDispatcher dispatcher, Iterator<Entry<String, AbstractGraphRow>> it, boolean rowsWithLabel) { while (it.hasNext()) { Entry<String, AbstractGraphRow> row = it.next(); if (row.getValue().isDrawOnChart() && row.getValue().isDrawValueLabel() == rowsWithLabel) { //eto Color color = reSetColors ? dispatcher.getNextColor() : row.getValue().getColor(); Color color = row.getValue().getColor() != null ? row.getValue().getColor() : dispatcher.getNextColor(); paintRow(g, row.getValue(), row.getKey(), color); } } }
@Override public int size() { return graphRow.size(); } }
@Override public boolean isDrawLine() { return graphRow.isDrawLine(); }
@Override public boolean isShowInLegend() { return graphRow.isShowInLegend(); }
@Override public Object getTransferData(DataFlavor flavor) { if (isDataFlavorSupported(flavor)) { return getImage(); } return null; }
public void setIsPreview(boolean isPreview) { this.isPreview = isPreview; if (!isPreview) { this.setComponentPopupMenu(popup); } else { this.setComponentPopupMenu(null); } }
@Override public void mouseReleased(java.awt.event.MouseEvent evt) { if (!isPreview) { hideHoverInfo(); removeMouseMotionListener(motionListener); } }
protected void handleRelativeStartTime() { if (graphPanel.getGraphObject().getChartSettings().isUseRelativeTime()) { graphPanel.getGraphObject().setxAxisLabelRenderer(new DateTimeRenderer(DateTimeRenderer.HHMMSS, relativeStartTime)); } graphPanel.getGraphObject().setTestStartTime(relativeStartTime); graphPanel.getGraphObject().setForcedMinX(relativeStartTime); }
public void setUseRelativeTime(boolean selected) { chartSettings.setUseRelativeTime(selected); if (selected) { setxAxisLabelRenderer(new DateTimeRenderer(DateTimeRenderer.HHMMSS, testStartTime)); } else { setxAxisLabelRenderer(new DateTimeRenderer(DateTimeRenderer.HHMMSS)); } }
public void add(long xVal, double yVal) { if (getFirstTime() == Long.MIN_VALUE) { firstTime = xVal; } if (xVal > maxX) { maxX = xVal; } if (xVal < minX) { minX = xVal; } }
@Override public Object getTransferData(DataFlavor flavor) { if (isDataFlavorSupported(flavor)) { return getImage(); } return null; }
public void setIsPreview(boolean isPreview) { this.isPreview = isPreview; if (!isPreview) { this.setComponentPopupMenu(popup); } else { this.setComponentPopupMenu(null); } }
@Override public void mouseReleased(java.awt.event.MouseEvent evt) { if (!isPreview) { hideHoverInfo(); removeMouseMotionListener(motionListener); } }