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    }