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 */ 016package org.opengion.hayabusa.io; 017 018import java.awt.Graphics2D; 019import org.jfree.chart.renderer.category.CategoryItemRendererState; 020import java.awt.geom.Rectangle2D; 021import org.jfree.chart.plot.CategoryPlot; 022import org.jfree.chart.axis.CategoryAxis; 023import org.jfree.chart.axis.ValueAxis; 024import 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 */ 036public 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}