Codota Logo
CategoryItemEntity.getRowKey
Code IndexAdd Codota to your IDE (free)

How to use
getRowKey
method
in
org.jfree.chart.entity.CategoryItemEntity

Best Java code snippets using org.jfree.chart.entity.CategoryItemEntity.getRowKey (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: jasperreports/jasperreports

public JRPrintHyperlink getEntityHyperlink(ChartEntity entity)
{
  JRPrintHyperlink printHyperlink = null;
  if (hasHyperlinks() && entity instanceof CategoryItemEntity)
  {
    CategoryItemEntity itemEntity = (CategoryItemEntity) entity;
    Comparable serie = itemEntity.getRowKey();
    Map serieHyperlinks = (Map) itemHyperlinks.get(serie);
    if (serieHyperlinks != null)
    {
      Object category = itemEntity.getColumnKey();
      printHyperlink = (JRPrintHyperlink) serieHyperlinks.get(category);
    }
  }
  return printHyperlink;
}
origin: net.sourceforge.jadex/jadex-tools-comanalyzer

  public void mouseReleased(MouseEvent e)
  {
    if(e.isPopupTrigger())
    {
      ChartEntity ce = chartPanel.getEntityForPoint(e.getX(), e.getY());
      List messages = null;
      if(ce instanceof CategoryItemEntity)
      {
        CategoryItemEntity entity = (CategoryItemEntity)ce;
        GroupedCategoryDataset dataset = (GroupedCategoryDataset)entity.getDataset();
        messages = dataset.getList(entity.getRowKey(), entity.getColumnKey());
      }
      if(ce instanceof PieSectionEntity)
      {
        PieSectionEntity entity = (PieSectionEntity)ce;
        messages = dataset_total.getList(entity.getSectionKey(), entity.getPieIndex());
      }
      if(messages != null)
      {
        MessageFilterMenu mpopup = new MessageFilterMenu(tooltab.getPlugin(), (Message[])messages.toArray(new Message[messages.size()]));
        mpopup.show(e.getComponent(), e.getX(), e.getY());
      }
    }
  }
}
origin: org.zkoss.zk/zkex

/**
 * decode CategoryItemEntity into key-value pair of Area's componentScope.
 * @param area the Area where the final attribute is set
 * @param info the CategoryItemEntity to be decoded.
 */
private void decodeCategoryInfo(Area area, CategoryItemEntity info) {
  if (info == null) {
    return;
  }
  
  CategoryDataset dataset = info.getDataset();
  Comparable category = info.getColumnKey();
  Comparable series = info.getRowKey();
  
  area.setAttribute("series", series);
  area.setAttribute("category", category);
  
  if (dataset instanceof GanttCategoryDataset) {
    final GanttCategoryDataset gd = (GanttCategoryDataset) dataset;
    area.setAttribute("start", gd.getStartValue(series, category));
    area.setAttribute("end", gd.getEndValue(series, category));
    area.setAttribute("percent", gd.getPercentComplete(series, category));
  } else {
    area.setAttribute("value", dataset.getValue(series, category));
  }
}
org.jfree.chart.entityCategoryItemEntitygetRowKey

Javadoc

Returns the row key.

Popular methods of CategoryItemEntity

  • getDataset
    Returns the dataset this entity refers to. This can be used to differentiate between items in a char
  • <init>
    Creates a new entity instance for an item in the specified dataset.
  • getColumnKey
    Returns the column key.
  • getCategory
    Returns the category.
  • getSeries
    Returns the series index.
  • setURLText

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now