Tabnine Logo
ColorsDispatcher.getNextColor
Code IndexAdd Tabnine to your IDE (free)

How to use
getNextColor
method
in
kg.apc.charting.ColorsDispatcher

Best Java code snippets using kg.apc.charting.ColorsDispatcher.getNextColor (Showing top 9 results out of 315)

origin: kg.apc/jmeter-plugins-cmn-jmeter

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);
    }
  }
}
origin: undera/jmeter-plugins

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);
    }
  }
}
origin: undera/jmeter-plugins

  @Override
  public void mouseClicked(MouseEvent e) {
    log.debug("mouse click [" + e.getX() + "," + e.getY() + "] ClickCount[" + e.getClickCount() + "]");
    if (e.getClickCount() == 2) {
      for (Entry<String, AbstractGraphRow> row : model.entrySet()) {
        AbstractGraphRow agr = row.getValue();
        if (agr != null) {
          Rectangle r = agr.getLegendColorBox();
          if (r != null) {
            Rectangle slightlyLargerTarget = r.getBounds();
            slightlyLargerTarget.height += 4;
            slightlyLargerTarget.width += 2;
            boolean hit = slightlyLargerTarget.contains(e.getPoint());
            log.debug("hit [" + hit + "] rectangle [" + slightlyLargerTarget.toString() + "] point [" + e.getPoint() + "]");
            if (hit) {
              row.getValue().setColor(colors.getNextColor());
            }
          }
        }
      }
      updateGui(null);
    }
    //repaint();
  }
}
origin: kg.apc/jmeter-plugins-cmn-jmeter

  @Override
  public void mouseClicked(MouseEvent e) {
    log.debug("mouse click [" + e.getX() + "," + e.getY() + "] ClickCount[" + e.getClickCount() + "]");
    if (e.getClickCount() == 2) {
      for (Entry<String, AbstractGraphRow> row : model.entrySet()) {
        AbstractGraphRow agr = row.getValue();
        if (agr != null) {
          Rectangle r = agr.getLegendColorBox();
          if (r != null) {
            Rectangle slightlyLargerTarget = r.getBounds();
            slightlyLargerTarget.height += 4;
            slightlyLargerTarget.width += 2;
            boolean hit = slightlyLargerTarget.contains(e.getPoint());
            log.debug("hit [" + hit + "] rectangle [" + slightlyLargerTarget.toString() + "] point [" + e.getPoint() + "]");
            if (hit) {
              row.getValue().setColor(colors.getNextColor());
            }
          }
        }
      }
      updateGui(null);
    }
    //repaint();
  }
}
origin: undera/jmeter-plugins

if (!model.containsKey(rowName)) {
  CompositeGraphRow compositeRow = new CompositeGraphRow(row);
  compositeRow.setColor(colors.getNextColor());
  model.put(rowName, compositeRow);
origin: undera/jmeter-plugins

row = it.next();
Color color = row.getValue().getColor() != null ? row.getValue().getColor() : colors.getNextColor();
origin: kg.apc/jmeter-plugins-cmn-jmeter

row = it.next();
Color color = row.getValue().getColor() != null ? row.getValue().getColor() : colors.getNextColor();
origin: undera/jmeter-plugins

    log.debug("%#@ Found null row displayLabel[" + displayLabel + "] and label [" + label + "]");
row.setColor(overrideColor != null ? overrideColor : colors.getNextColor());
if (log.isDebugEnabled())
  log.debug("%#@ new row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]");
origin: kg.apc/jmeter-plugins-cmn-jmeter

    log.debug("%#@ Found null row displayLabel[" + displayLabel + "] and label [" + label + "]");
row.setColor(overrideColor != null ? overrideColor : colors.getNextColor());
if (log.isDebugEnabled())
  log.debug("%#@ new row.getColor() [" + (row.getColor() == null ? "null" : row.getColor().toString()) + "]");
kg.apc.chartingColorsDispatchergetNextColor

Popular methods of ColorsDispatcher

  • reset

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Best plugins for Eclipse
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