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

How to use
ColorsDispatcher
in
kg.apc.charting

Best Java code snippets using kg.apc.charting.ColorsDispatcher (Showing top 11 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

@Override
public void clearData() {
  startTimeRef = 0;
  clearRowsFromCompositeModels(getModel().getName());
  model.clear();
  modelAggregate.clear();
  colors.reset();
  graphPanel.clearRowsTab();
  updateGui();
  repaint();
}
origin: kg.apc/jmeter-plugins-cmn-jmeter

@Override
public void clearData() {
  startTimeRef = 0;
  clearRowsFromCompositeModels(getModel().getName());
  model.clear();
  modelAggregate.clear();
  colors.reset();
  graphPanel.clearRowsTab();
  updateGui();
  repaint();
}
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.chartingColorsDispatcher

Javadoc

Interface for ColorsDispatcher to providing custom color palettes

Most used methods

  • getNextColor
  • reset

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JFrame (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
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