001    /*
002     * Copyright (c) 2009 The openGion Project.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013     * either express or implied. See the License for the specific language
014     * governing permissions and limitations under the License.
015     */
016    package org.opengion.hayabusa.io;
017    
018    import java.awt.Graphics2D;
019    import org.jfree.chart.renderer.category.CategoryItemRendererState;
020    import java.awt.geom.Rectangle2D;
021    import org.jfree.chart.plot.CategoryPlot;
022    import org.jfree.chart.axis.CategoryAxis;
023    import org.jfree.chart.axis.ValueAxis;
024    import org.jfree.data.category.CategoryDataset;
025    
026    /**
027     * HybsDrawItem は、ChartPlot インターフェースを継承した実体クラスですã?
028     * JFreeChart では、XYPlot 関係ã? プロãƒ?ƒˆを構築して、レンãƒ?ƒ©ーã‚??ãƒ??タセãƒ?ƒˆã‚?
029     * 設定してã�?��ますã?
030     * ここでは、è¤?•°のãƒ??タセãƒ?ƒˆはサポã?トしてã�?�¾せんã€?
031     *
032     * @version  0.9.0      2007/06/21
033     * @author       Kazuhiko Hasegawa
034     * @since        JDK1.1,
035     */
036    public interface HybsDrawItem {
037    
038            /**
039             * drawItem と同等ã?機è?を持ったã?高é?版メソãƒ?ƒ‰ですã?
040             *
041             * @og.rev 4.1.1.0 (2008/02/04) 新規追åŠ?
042             *
043             * @param g2                    Graphics2Dオブジェクãƒ?
044             * @param state                 CategoryItemRendererStateオブジェクãƒ?
045             * @param dataArea              Rectangle2Dオブジェクãƒ?
046             * @param plot                  CategoryPlotオブジェクãƒ?
047             * @param domainAxis    CategoryAxisオブジェクãƒ?
048             * @param rangeAxis             ValueAxisオブジェクãƒ?
049             * @param dataset               CategoryDatasetオブジェクãƒ?
050             * @param serNo                 シリアル番号
051             */
052            void drawItem2( final Graphics2D g2, final CategoryItemRendererState state,
053                            final Rectangle2D dataArea, final CategoryPlot plot, final CategoryAxis domainAxis,
054                            final ValueAxis rangeAxis, final CategoryDataset dataset, final int serNo ) ;
055    
056            /**
057             * itemLabelVisible 時に、最後ã?値のみ表示するかどã�?�‹[true:有効/false:無効]を指定しますã?
058             *
059             * これは、itemLabelVisible 属æ?にã€?last" とã�?�†設定å?を指定したå?合ã?ã€?
060             * æœ?¾Œã?みラベル表示しますã?
061             * こã?メソãƒ?ƒ‰では、true が指定された場合ã?ã€?last" 属æ?が有効になったと
062             * 判断しますã?
063             *
064             * @og.rev 4.1.2.0 (2008/03/12) 新規追åŠ?
065             *
066             * @param       flag    æœ?¾Œã?値のみ表示するかどã�?�‹[true:有効/false:無効]
067             */
068            void setItemLabelLastVisible( boolean flag ) ;
069    }