Examples of SortedSet


Examples of java.util.SortedSet

   * @param renderer the renderer of the chart being created
   * @param jrPlot the Jasper view of that plot
   */
  private void configureAxisSeriesColors(CategoryItemRenderer renderer, JRChartPlot jrPlot)
  {
    SortedSet seriesColors = jrPlot.getSeriesColors();

    if (seriesColors != null)
    {
      Iterator iter = seriesColors.iterator();
      while (iter.hasNext())
      {
        JRSeriesColor seriesColor = (JRSeriesColor)iter.next();
        renderer.setSeriesPaint(seriesColor.getSeriesOrder(), seriesColor.getColor());
      }
View Full Code Here

Examples of java.util.SortedSet

   * @param renderer the renderer of the chart being created
   * @param jrPlot the Jasper view of that plot
   */
  private void configureAxisSeriesColors(XYItemRenderer renderer, JRChartPlot jrPlot)
  {
    SortedSet seriesColors = jrPlot.getSeriesColors();

    if (seriesColors != null)
    {
      Iterator iter = seriesColors.iterator();
      while (iter.hasNext())
      {
        JRSeriesColor seriesColor = (JRSeriesColor)iter.next();
        renderer.setSeriesPaint(seriesColor.getSeriesOrder(), seriesColor.getColor());
      }
View Full Code Here

Examples of java.util.SortedSet

      }
    }


    // Set any color series
    SortedSet seriesColors = getPlot().getSeriesColors();
    if (seriesColors != null && seriesColors.size() > 0)
    {
      if (seriesColors.size() == 1)
      {
        // Add the single color to the beginning of the color cycle, using all the default
        // colors.  To replace the defaults you have to specify at least two colors.
        Paint[] colors = new Paint[DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE.length + 1];
        colors[0] = ((JRSeriesColor)seriesColors.first()).getColor();
        System.arraycopy(DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE, 0, colors, 1, DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE.length);
        plot.setDrawingSupplier(new DefaultDrawingSupplier(colors,
            DefaultDrawingSupplier.DEFAULT_OUTLINE_PAINT_SEQUENCE,
            DefaultDrawingSupplier.DEFAULT_STROKE_SEQUENCE,
            DefaultDrawingSupplier.DEFAULT_OUTLINE_STROKE_SEQUENCE,
            DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE));
      }
      else if (seriesColors.size() > 1)
      {
        // Set up a custom drawing supplier that cycles through the user's colors
        // instead of the default colors.
        Color[] colors = new Color[seriesColors.size()];
        JRSeriesColor[] colorSequence = new JRSeriesColor[seriesColors.size()];
        seriesColors.toArray(colorSequence);
        for (int i = 0; i < colorSequence.length; i++)
        {
          colors[i] = colorSequence[i].getColor();
        }
View Full Code Here

Examples of java.util.SortedSet


    if (coid.isLeaf())
      coid = coid.removeLastPart();

    SortedSet ret;
    ret= oidKeys.tailSet(oid)// get oids >= oid
    Iterator it = ret.iterator();
    ComparableSnmpObjectId roid=null;
   
    /*
     * If there are elements in the tail set, then
     * - get first one.
View Full Code Here

Examples of java.util.SortedSet

      {
         StringBuffer buff = new StringBuffer();

         buff.append("<table>");

         SortedSet keys = new TreeSet(this.keySet());
         Iterator iter = keys.iterator();
         while (iter.hasNext())
         {
            String key = (String) iter.next();
            buff.append("<tr><td align=\"left\"><b>")
               .append(key)
View Full Code Here

Examples of java.util.SortedSet

      getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_SHAPE_SEQUENCE) != null ?
      (Shape[])getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_SHAPE_SEQUENCE) :
      DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE;
    // Set color series
    Paint[] colors = null;
    SortedSet seriesColors = jrPlot.getSeriesColors();
    Paint[] colorSequence = null;
    if (seriesColors != null && seriesColors.size() > 0)
    {
      int seriesColorsSize = seriesColors.size();
     
      colors = new Paint[DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE.length + seriesColorsSize];

      JRSeriesColor[] jrColorSequence = new JRSeriesColor[seriesColorsSize];
      seriesColors.toArray(jrColorSequence);
      colorSequence = new Paint[seriesColorsSize];
     
      for (int i = 0; i < seriesColorsSize; i++)
      {
        colorSequence[i] = jrColorSequence[i].getColor();
View Full Code Here

Examples of java.util.SortedSet

  }

  protected Paint[] getPaintSequence(PlotSettings plotSettings, JRChartPlot jrPlot)
  {
    Paint[] colors = null;
    SortedSet seriesColors = jrPlot.getSeriesColors();
    Paint[] colorSequence = null;
   
    //The series gradient paint setting is considered first
    List themeSeriesPaintProvider = getChartThemeSettings().getPlotSettings().getSeriesGradientPaintSequence() != null
        ? getChartThemeSettings().getPlotSettings().getSeriesGradientPaintSequence()
        : getChartThemeSettings().getPlotSettings().getSeriesColorSequence();
       
    if (seriesColors != null && seriesColors.size() > 0)
    {
      int seriesColorsSize = seriesColors.size();
     
      colors = new Paint[DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE.length + seriesColorsSize];

      JRSeriesColor[] jrColorSequence = new JRSeriesColor[seriesColorsSize];
      seriesColors.toArray(jrColorSequence);
      colorSequence = new Paint[seriesColorsSize];
     
      for (int i = 0; i < seriesColorsSize; i++)
      {
        colorSequence[i] = jrColorSequence[i].getColor();
View Full Code Here

Examples of java.util.SortedSet

        AboutFieldTableModel modelproperties = new AboutFieldTableModel();
        jTableProperties.setModel(modelproperties);

        try {
            Enumeration props = System.getProperties().propertyNames();
            SortedSet s = new TreeSet();
            while (props.hasMoreElements()) {
                s.add((String) props.nextElement());
            }
            Iterator i = s.iterator();
            while (i.hasNext()) {
                String prop = (String) i.next();
                modelproperties.addField(new SystemInfo(prop, System
                        .getProperty(prop)));
            }
View Full Code Here

Examples of java.util.SortedSet

            }
          }
        }
      }

      final SortedSet privatePackages = bpInfo.getProvidedPackages();
      privatePackages.removeAll(publicPackages);

      final SortedSet referencedPackages = bpInfo.getReferencedPackages();
      referencedPackages.removeAll(privatePackages);
      for (Iterator iterator = referencedPackages.iterator();
           iterator.hasNext();) {
        final String packageName = (String) iterator.next();
        if (!isStandardPackage(packageName) &&
            !importPackage.containsKey(packageName)) {
          if (packageAnalysis == PACKAGE_ANALYSIS_AUTO) {
View Full Code Here

Examples of java.util.SortedSet

   *
   * @return A copy of the set of provided Java packages.
   */
  public SortedSet/*<String>*/ getProvidedPackages()
  {
    SortedSet res = new TreeSet(providedPackages);
    toJavaNames(res); // Ensure that '.' is used as package separator
    return res;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.