Changeset 5141


Ignore:
Timestamp:
Oct 19, 2009, 9:03:37 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1386: Plot function in the bioassay table in experiment explorer

The 'No labels' option now uses a space as labels instead of hiding them completely which makes it possible to keep the colored annotation boxes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/servlet/ExperimentExplorerPlotServlet.java

    r5138 r5141  
    171171    if (yLog && yLabel != null) yLabel = "log2("+yLabel+")";
    172172    final boolean showXLabels = Values.getBoolean(request.getParameter("showXLabels"));
     173    final boolean showAnnotations = true;
    173174
    174175    // Box plot specific parameters
     
    259260          Set<Integer> annotationTypes = explorer.getAnnotationTypeIds();
    260261          List<AnnotationSummary> summaries = new ArrayList<AnnotationSummary>(3);
    261           if (showXLabels && annotationTypes != null && annotationTypes.size() > 0)
     262          if (showAnnotations && annotationTypes != null && annotationTypes.size() > 0)
    262263          {
    263264            categoryAnnotations = new String[Math.min(3, annotationTypes.size())];
     
    278279          {
    279280            short column = ba.getDataCubeColumnNo();
    280             ColumnKey key = new ColumnKey(ba.getId(), ba.getName());
     281            ColumnKey key = new ColumnKey(ba.getId(), showXLabels ? ba.getName(): " ");
    281282            for (AnnotationSummary summary : summaries)
    282283            {
     
    306307          // Create the plot and chart objects
    307308            categoryAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);
    308             categoryAxis.setVisible(showXLabels);
    309309          Plot plot = new CategoryPlot(dataset, categoryAxis, valueAxis, new LineAndShapeRenderer());
    310310          chart = new JFreeChart(plot);
Note: See TracChangeset for help on using the changeset viewer.