亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? levelrenderer.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
            PlotOrientation orientation = plot.getOrientation();
            if (orientation == PlotOrientation.HORIZONTAL) {
                space = dataArea.getHeight();
            }
            else if (orientation == PlotOrientation.VERTICAL) {
                space = dataArea.getWidth();
            }
            double maxWidth = space * getMaxItemWidth();
            double categoryMargin = 0.0;
            double currentItemMargin = 0.0;
            if (columns > 1) {
                categoryMargin = domainAxis.getCategoryMargin();
            }
            if (rows > 1) {
                currentItemMargin = getItemMargin();
            }
            double used = space * (1 - domainAxis.getLowerMargin() 
                                     - domainAxis.getUpperMargin()
                                     - categoryMargin - currentItemMargin);
            if ((rows * columns) > 0) {
                state.setBarWidth(Math.min(used / (rows * columns), maxWidth));
            }
            else {
                state.setBarWidth(Math.min(used, maxWidth));
            }
        }
    }

    /**
     * Calculates the coordinate of the first "side" of a bar.  This will be 
     * the minimum x-coordinate for a vertical bar, and the minimum 
     * y-coordinate for a horizontal bar.
     * 
     * @param plot  the plot.
     * @param orientation  the plot orientation.
     * @param dataArea  the data area.
     * @param domainAxis  the domain axis.
     * @param state  the renderer state (has the bar width precalculated).
     * @param row  the row index.
     * @param column  the column index.
     * 
     * @return The coordinate.
     */
    protected double calculateBarW0(CategoryPlot plot, 
                                    PlotOrientation orientation, 
                                    Rectangle2D dataArea,
                                    CategoryAxis domainAxis,
                                    CategoryItemRendererState state,
                                    int row,
                                    int column) {
        // calculate bar width...
        double space = 0.0;
        if (orientation == PlotOrientation.HORIZONTAL) {
            space = dataArea.getHeight();
        }
        else {
            space = dataArea.getWidth();
        }
        double barW0 = domainAxis.getCategoryStart(column, getColumnCount(), 
                dataArea, plot.getDomainAxisEdge());
        int seriesCount = getRowCount();
        int categoryCount = getColumnCount();
        if (seriesCount > 1) {
            double seriesGap = space * getItemMargin() 
                    / (categoryCount * (seriesCount - 1));
            double seriesW = calculateSeriesWidth(space, domainAxis, 
                    categoryCount, seriesCount);
            barW0 = barW0 + row * (seriesW + seriesGap) 
                          + (seriesW / 2.0) - (state.getBarWidth() / 2.0);
        }
        else {
            barW0 = domainAxis.getCategoryMiddle(column, getColumnCount(), 
                    dataArea, plot.getDomainAxisEdge()) - state.getBarWidth() 
                    / 2.0;
        }
        return barW0;
    }
    
    /**
     * Draws the bar for a single (series, category) data item.
     *
     * @param g2  the graphics device.
     * @param state  the renderer state.
     * @param dataArea  the data area.
     * @param plot  the plot.
     * @param domainAxis  the domain axis.
     * @param rangeAxis  the range axis.
     * @param dataset  the dataset.
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     * @param pass  the pass index.
     */
    public void drawItem(Graphics2D g2, CategoryItemRendererState state,
            Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis,
            ValueAxis rangeAxis, CategoryDataset dataset, int row, int column,
            int pass) {

        // nothing is drawn for null values...
        Number dataValue = dataset.getValue(row, column);
        if (dataValue == null) {
            return;
        }
        
        double value = dataValue.doubleValue();
        
        PlotOrientation orientation = plot.getOrientation();
        double barW0 = calculateBarW0(plot, orientation, dataArea, domainAxis, 
                state, row, column);
        RectangleEdge edge = plot.getRangeAxisEdge();
        double barL = rangeAxis.valueToJava2D(value, dataArea, edge);

        // draw the bar...
        Line2D line = null;
        double x = 0.0;
        double y = 0.0;
        if (orientation == PlotOrientation.HORIZONTAL) {
            x = barL;
            y = barW0 + state.getBarWidth() / 2.0;
            line = new Line2D.Double(barL, barW0, barL, 
                    barW0 + state.getBarWidth());
        }
        else {
            x = barW0 + state.getBarWidth() / 2.0;
            y = barL;
            line = new Line2D.Double(barW0, barL, barW0 + state.getBarWidth(), 
                    barL);
        }
        Stroke itemStroke = getItemStroke(row, column);
        Paint itemPaint = getItemPaint(row, column);
        g2.setStroke(itemStroke);
        g2.setPaint(itemPaint);
        g2.draw(line);

        CategoryItemLabelGenerator generator = getItemLabelGenerator(row, 
                column);
        if (generator != null && isItemLabelVisible(row, column)) {
            drawItemLabel(g2, orientation, dataset, row, column, x, y, 
                    (value < 0.0));
        }        
                
        // collect entity and tool tip information...
        if (state.getInfo() != null) {
            EntityCollection entities = state.getEntityCollection();
            if (entities != null) {
                String tip = null;
                CategoryToolTipGenerator tipster = getToolTipGenerator(row, 
                        column);
                if (tipster != null) {
                    tip = tipster.generateToolTip(dataset, row, column);
                }
                String url = null;
                if (getItemURLGenerator(row, column) != null) {
                    url = getItemURLGenerator(row, column).generateURL(dataset,
                            row, column);
                }
                CategoryItemEntity entity = new CategoryItemEntity(
                        line.getBounds(), tip, url, dataset, row, 
                        dataset.getColumnKey(column), column);
                entities.add(entity);
            }

        }

    }

    /**
     * Calculates the available space for each series.
     * 
     * @param space  the space along the entire axis (in Java2D units).
     * @param axis  the category axis.
     * @param categories  the number of categories.
     * @param series  the number of series.
     * 
     * @return The width of one series.
     */
    protected double calculateSeriesWidth(double space, CategoryAxis axis, 
                                          int categories, int series) {
        double factor = 1.0 - getItemMargin() - axis.getLowerMargin() 
                        - axis.getUpperMargin();
        if (categories > 1) {
            factor = factor - axis.getCategoryMargin();
        }
        return (space * factor) / (categories * series);
    }
    
    /**
     * Tests an object for equality with this instance.
     * 
     * @param obj  the object (<code>null</code> permitted).
     * 
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof LevelRenderer)) {
            return false;
        }
        if (!super.equals(obj)) {
            return false;
        }
        LevelRenderer that = (LevelRenderer) obj;
        if (this.itemMargin != that.itemMargin) {              
            return false;
        }
        if (this.maxItemWidth != that.maxItemWidth) {
            return false;
        }
        return true;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天堂久久一区二区三区| 欧美电影免费观看高清完整版在| 久久久久久久久久久久久久久99| 久久国产人妖系列| 国产日本欧洲亚洲| av电影在线观看完整版一区二区| 亚洲色图色小说| 欧美主播一区二区三区| 视频一区二区不卡| 亚洲精品一区二区三区蜜桃下载| 国产精品88av| 亚洲中国最大av网站| 欧美日韩一区中文字幕| 麻豆传媒一区二区三区| 中文字幕欧美激情| 欧洲精品在线观看| 九九精品一区二区| 中文字幕欧美一| 欧美理论片在线| 国产乱人伦精品一区二区在线观看 | 欧美在线观看视频一区二区| 午夜视频一区二区| 久久久亚洲精华液精华液精华液| 成人sese在线| 首页综合国产亚洲丝袜| 国产欧美一区视频| 欧美日韩国产一二三| 国产伦精品一区二区三区视频青涩| 国产精品久久久久久久久晋中| 欧美日韩aaaaa| 处破女av一区二区| 美女爽到高潮91| 亚洲色图一区二区| 欧美电影免费观看高清完整版| 99在线精品观看| 韩国精品主播一区二区在线观看| 成人国产精品视频| 亚洲女爱视频在线| 色综合久久综合中文综合网| 欧美日韩精品综合在线| 欧美日韩国产首页| 综合分类小说区另类春色亚洲小说欧美| 欧洲视频一区二区| 国产福利不卡视频| 免费观看久久久4p| 亚洲香肠在线观看| 中文字幕一区二区三区视频 | 性做久久久久久免费观看| 久久精品一区二区| 日韩一二在线观看| 欧美日韩精品久久久| a4yy欧美一区二区三区| 极品少妇一区二区| 日韩av一级片| 亚洲高清不卡在线| 最新日韩在线视频| 国产日韩三级在线| 欧美电视剧免费观看| 欧美日韩国产成人在线免费| 91性感美女视频| 成人免费高清在线| 国产一区二区三区黄视频 | 99久久精品国产网站| 精品一区二区影视| 日韩国产精品大片| 亚洲1区2区3区视频| 一区二区三区精品| 亚洲综合色噜噜狠狠| 亚洲欧美日韩中文播放| 亚洲婷婷在线视频| 一区在线中文字幕| 中文字幕亚洲在| 青娱乐精品视频在线| 亚洲123区在线观看| 一区二区三区中文字幕电影| 最近日韩中文字幕| 亚洲人成伊人成综合网小说| 中文字幕日韩av资源站| 中文字幕在线免费不卡| 国产精品五月天| 国产精品乱子久久久久| 国产精品污www在线观看| 国产婷婷色一区二区三区 | 欧美一区二区三区免费视频| 3atv一区二区三区| 欧美一区二区三区小说| 精品欧美乱码久久久久久1区2区| 欧美大度的电影原声| 精品久久国产老人久久综合| 久久色成人在线| 欧美国产精品久久| 亚洲欧美在线另类| 亚洲欧美视频一区| 日韩精品成人一区二区三区| 久久精品国产999大香线蕉| 国产一区福利在线| 风流少妇一区二区| 日本国产一区二区| 91麻豆精品国产91久久久资源速度| 日韩午夜三级在线| 久久久久国产精品免费免费搜索| 国产精品福利一区| 亚洲观看高清完整版在线观看| 免费成人小视频| 成人网页在线观看| 欧美天堂亚洲电影院在线播放| 成人性生交大片免费看中文| 色吊一区二区三区| 久久日韩粉嫩一区二区三区| 欧美男男青年gay1069videost| 欧美一级片在线看| 国产精品情趣视频| 亚洲成人免费在线| 国产一区在线看| 91色porny在线视频| 欧美一区二区在线不卡| 久久久久久久久久看片| 有码一区二区三区| 久草热8精品视频在线观看| av中文字幕不卡| 欧美成人性战久久| 中文字幕综合网| 久久国产精品无码网站| 成人avav影音| 日韩精品专区在线影院重磅| 亚洲少妇最新在线视频| 狠狠狠色丁香婷婷综合久久五月| 91啪亚洲精品| 久久久久久久精| 香蕉久久夜色精品国产使用方法| 国产精品亚洲综合一区在线观看| 欧美日韩精品免费| 亚洲天堂免费在线观看视频| 久久er99热精品一区二区| 欧亚一区二区三区| 中文字幕不卡一区| 久久丁香综合五月国产三级网站| 欧美性色综合网| 中文字幕第一区| 国产乱码精品一区二区三区五月婷| 欧美日韩国产区一| 一区二区三区加勒比av| 99免费精品视频| 欧美极品美女视频| 国产专区综合网| 欧美大片在线观看一区二区| 亚洲超碰精品一区二区| 99re这里都是精品| 中文字幕免费在线观看视频一区| 激情久久五月天| 91麻豆精品国产91久久久| 亚洲一级片在线观看| 99久久er热在这里只有精品66| 久久久久久久精| 精品一区二区精品| 欧美xxxxx牲另类人与| 日本vs亚洲vs韩国一区三区二区 | 久久精品国产99久久6| 欧美一区二区三区电影| 天天色 色综合| 欧美精品丝袜中出| 香蕉加勒比综合久久| 777午夜精品免费视频| 天天免费综合色| 91精品国产一区二区三区蜜臀 | 亚洲一区二区三区三| 日本精品一级二级| 亚洲亚洲精品在线观看| 欧美色电影在线| 五月天丁香久久| 日韩一区二区电影网| 精品一区二区三区不卡| 久久久久久久精| 成人黄动漫网站免费app| 国产欧美日韩激情| 成人高清伦理免费影院在线观看| 中文字幕不卡在线播放| 91免费版pro下载短视频| 亚洲男人都懂的| 欧美日韩高清一区二区三区| 丝袜亚洲另类欧美综合| 日韩免费视频线观看| 国产剧情一区二区三区| 日韩一区日韩二区| 在线视频欧美精品| 日韩av在线免费观看不卡| 日韩你懂的在线播放| 国产成人三级在线观看| 亚洲特黄一级片| 欧美精品在线观看一区二区| 精品一区二区三区欧美| 日本一区二区三区国色天香| 色一情一乱一乱一91av| 日韩中文字幕91| 国产网站一区二区| 色综合天天天天做夜夜夜夜做| 一区二区在线观看不卡| 日韩一区二区视频在线观看| 国产成人精品综合在线观看| 亚洲美女区一区|