久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='TsW1X'><tr id='TsW1X'><dt id='TsW1X'><q id='TsW1X'><span id='TsW1X'><b id='TsW1X'><form id='TsW1X'><ins id='TsW1X'></ins><ul id='TsW1X'></ul><sub id='TsW1X'></sub></form><legend id='TsW1X'></legend><bdo id='TsW1X'><pre id='TsW1X'><center id='TsW1X'></center></pre></bdo></b><th id='TsW1X'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TsW1X'><tfoot id='TsW1X'></tfoot><dl id='TsW1X'><fieldset id='TsW1X'></fieldset></dl></div>

<small id='TsW1X'></small><noframes id='TsW1X'>

  • <tfoot id='TsW1X'></tfoot>

      1. <legend id='TsW1X'><style id='TsW1X'><dir id='TsW1X'><q id='TsW1X'></q></dir></style></legend>

          <bdo id='TsW1X'></bdo><ul id='TsW1X'></ul>

        形狀標注上方的JFreechart系列工具提示

        JFreechart series tool tip above shape annotation(形狀標注上方的JFreechart系列工具提示)

        <tfoot id='uIgmX'></tfoot>
            <tbody id='uIgmX'></tbody>
            <i id='uIgmX'><tr id='uIgmX'><dt id='uIgmX'><q id='uIgmX'><span id='uIgmX'><b id='uIgmX'><form id='uIgmX'><ins id='uIgmX'></ins><ul id='uIgmX'></ul><sub id='uIgmX'></sub></form><legend id='uIgmX'></legend><bdo id='uIgmX'><pre id='uIgmX'><center id='uIgmX'></center></pre></bdo></b><th id='uIgmX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uIgmX'><tfoot id='uIgmX'></tfoot><dl id='uIgmX'><fieldset id='uIgmX'></fieldset></dl></div>

                <legend id='uIgmX'><style id='uIgmX'><dir id='uIgmX'><q id='uIgmX'></q></dir></style></legend>
                  <bdo id='uIgmX'></bdo><ul id='uIgmX'></ul>

                  <small id='uIgmX'></small><noframes id='uIgmX'>

                  本文介紹了形狀標注上方的JFreechart系列工具提示的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個 XYPlot,上面是系列和幾個動態添加的形狀注釋,沒有填充(因此每個系列點都是可見的).是否可以在注釋上顯示系列工具提示(顯示鼠標指針當前指向的系列點的坐標)?或者如何重新排列元素以使工具提示可見.

                  I have an XYPlot on which are series and a couple of dynamically added shape annotations with no fill (hence each of the series points are visible). Is it possible to display the series tool tips(that show the coordinate of the series point over which the mouse pointer is currently pointing to) over the annotations? Or how can I re-arrange the elements in order to make the tooltip visible.

                  推薦答案

                  我懷疑您正在將形狀注釋添加到繪圖中,它們是最后繪制的.相反,將它們添加到 Layer.BACKGROUND 中的渲染器.如下圖所示,圓圈不會遮擋 (20, 20) 處的工具提示.還要注意 (10, 10) 是如何 不受線注釋影響,而 (30, 30) 會被弧線遮擋.

                  I suspect you are adding the shape annotations to the plot, where they are drawn last. Instead, add them to the renderer in Layer.BACKGROUND. As shown below, the circle does not obscure the tool tip at (20, 20). Note also how (10, 10) is not affected by the line annotation, while (30, 30) is obscured by the arc.

                  import java.awt.BasicStroke;
                  import java.awt.Color;
                  import java.awt.geom.Arc2D;
                  import java.awt.geom.Ellipse2D;
                  import java.util.Random;
                  import org.jfree.chart.ChartFactory;
                  import org.jfree.chart.ChartFrame;
                  import org.jfree.chart.JFreeChart;
                  import org.jfree.chart.annotations.XYLineAnnotation;
                  import org.jfree.chart.annotations.XYShapeAnnotation;
                  import org.jfree.chart.plot.PlotOrientation;
                  import org.jfree.chart.plot.XYPlot;
                  import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer;
                  import org.jfree.data.xy.XYDataset;
                  import org.jfree.data.xy.XYSeries;
                  import org.jfree.data.xy.XYSeriesCollection;
                  import org.jfree.ui.Layer;
                  
                  /**
                   * @see http://stackoverflow.com/questions/6797012
                   * @see http://stackoverflow.com/questions/6604211
                   */
                  public class ArcTest {
                  
                      private static final Random r = new Random();
                      private static final Color blue = Color.blue;
                      private static final BasicStroke stroke = new BasicStroke(2.0f);
                      private static final double PI = 180d;
                      private static final int X = 8;
                      private static final int Y = 0;
                      private static final int W = 6 * X;
                      private static final int H = 3 * X;
                  
                      public static void main(String[] args) {
                          JFreeChart chart = ChartFactory.createXYLineChart(
                              "ArcTest", "X", "Y", createDataset(),
                              PlotOrientation.VERTICAL, true, true, false);
                          XYPlot plot = chart.getXYPlot();
                  
                          XYLineAndShapeRenderer renderer =
                              (XYLineAndShapeRenderer) plot.getRenderer();
                          renderer.setBaseShapesVisible(true);
                          Ellipse2D.Double circle = new Ellipse2D.Double(X, X, 20, 20);
                          renderer.addAnnotation(new XYShapeAnnotation(
                              circle, stroke, blue), Layer.BACKGROUND);
                  
                          XYLineAnnotation line = new XYLineAnnotation(X, Y, X, H, stroke, blue);
                          plot.addAnnotation(line);
                          Arc2D.Double arc = new Arc2D.Double(X, Y, W, 2 * H, PI, PI, Arc2D.OPEN);
                          plot.addAnnotation(new XYShapeAnnotation(arc, stroke, blue));
                  
                          ChartFrame frame = new ChartFrame("Test", chart);
                          frame.pack();
                          frame.setVisible(true);
                      }
                  
                      private static XYDataset createDataset() {
                          XYSeriesCollection result = new XYSeriesCollection();
                          XYSeries series = new XYSeries("ArcTest");
                          series.add(0, 0);
                          series.add(10, 10);
                          series.add(20, 20);
                          series.add(30, 30);
                          series.add(W, W);
                          result.addSeries(series);
                          return result;
                      }
                  }
                  

                  這篇關于形狀標注上方的JFreechart系列工具提示的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  quot;Char cannot be dereferencedquot; error(“Char 不能被取消引用錯誤)
                  Java Switch Statement - Is quot;orquot;/quot;andquot; possible?(Java Switch 語句 - 是“或/“和可能的?)
                  Java Replace Character At Specific Position Of String?(Java替換字符串特定位置的字符?)
                  What is the type of a ternary expression with int and char operands?(具有 int 和 char 操作數的三元表達式的類型是什么?)
                  Read a text file and store every single character occurrence(讀取文本文件并存儲出現的每個字符)
                  Why do I need to explicitly cast char primitives on byte and short?(為什么我需要在 byte 和 short 上顯式轉換 char 原語?)

                  <tfoot id='2ZRPq'></tfoot>

                      <small id='2ZRPq'></small><noframes id='2ZRPq'>

                      <legend id='2ZRPq'><style id='2ZRPq'><dir id='2ZRPq'><q id='2ZRPq'></q></dir></style></legend>

                            <bdo id='2ZRPq'></bdo><ul id='2ZRPq'></ul>

                              <tbody id='2ZRPq'></tbody>

                            <i id='2ZRPq'><tr id='2ZRPq'><dt id='2ZRPq'><q id='2ZRPq'><span id='2ZRPq'><b id='2ZRPq'><form id='2ZRPq'><ins id='2ZRPq'></ins><ul id='2ZRPq'></ul><sub id='2ZRPq'></sub></form><legend id='2ZRPq'></legend><bdo id='2ZRPq'><pre id='2ZRPq'><center id='2ZRPq'></center></pre></bdo></b><th id='2ZRPq'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2ZRPq'><tfoot id='2ZRPq'></tfoot><dl id='2ZRPq'><fieldset id='2ZRPq'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 国产在线视频在线观看 | 国产亚洲精品久久久久动 | www.激情.com| 国产一区二区在线视频 | 国产91视频一区二区 | 久久精品国产99国产精品亚洲 | 97在线观看| 亚洲在线视频 | 久久精品伊人 | 精品一区二区三区在线观看 | 三级在线免费 | 国产一级在线观看 | 免费在线看黄 | 国产色婷婷精品综合在线播放 | www.国产精品| 国产91av视频 | 中文字幕视频在线 | 亚洲 一区 | 免费视频二区 | 成人午夜影院 | 在线观看成人免费视频 | 国产欧美精品一区二区 | 一呦二呦三呦国产精品 | 日韩一级免费电影 | 91视频在线看 | 精品视频在线免费观看 | 一区二区在线免费观看视频 | 色橹橹欧美在线观看视频高清 | 青草青草久热精品视频在线观看 | 久久精品国产一区二区三区不卡 | 99pao成人国产永久免费视频 | 天天干天天玩天天操 | 日本免费在线观看视频 | 一区二区在线 | 最新日韩欧美 | 久久99一区二区 | 超碰在线97国产 | 激情黄色在线观看 | 成人在线免费电影 | 久久99精品久久久水蜜桃 | 亚洲天堂中文字幕 |