久久久久久久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>
                          • 主站蜘蛛池模板: 国产成人高清在线观看 | 韩国av电影网| 99精品久久 | 久久99精品久久 | 国产精品久久久久一区二区三区 | 国产一区二区三区色淫影院 | 福利视频网站 | 日韩美女一区二区三区在线观看 | 亚洲 精品 综合 精品 自拍 | 日韩一区二区不卡 | 天堂久久网 | 精品国产一区二区三区观看不卡 | 免费视频99 | 日韩在线免费电影 | 国产精品观看 | 亚洲欧美一区二区三区国产精品 | 一区二区三区四区五区在线视频 | 日韩中文字幕在线播放 | 欧美一区二区成人 | 国产91丝袜在线播放 | 亚洲综合在线一区 | 久久不射电影网 | 欧美激情国产日韩精品一区18 | av日日操 | 成年人网站免费 | 欧美色999| 亚洲一区二区三区视频 | 国产在线一区二区三区 | 成人美女免费网站视频 | 91麻豆精品国产91久久久久久 | 日韩一级 | 亚洲欧美一区二区三区情侣bbw | 国产福利免费视频 | 精品视频一区二区三区 | 精品一区二区电影 | 欧美日韩在线一区 | av天天操| 综合网视频 | 伊人爽| 久亚州在线播放 | 色精品 |