|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel jp.go.aist.dmrc.platform.beans.gui.chart.PFChart jp.go.aist.dmrc.platform.beans.gui.chart.PFPieChart
円グラフのコンポーネント。
円グラフから以下のイベントが発生します。
トリガー | 対象データ | イベント番号 |
---|---|---|
setObjectTable 呼出 | テーブルデータPFObjectTable |
0 |
clearObjectTable 呼出 | テーブルデータPFObjectTable |
1 |
トリガー | 対象データ | 更新データ | イベント番号 |
---|---|---|---|
値が変更されたとき | テーブルデータPFObjectTable |
null | 0 |
トリガー | 対象データ | 選択データ | イベント番号 |
---|---|---|---|
メソッド呼出によって円が選択されたとき | テーブルデータPFObjectTable |
null | 1 |
マウス操作によって円が選択されたとき | テーブルデータPFObjectTable |
null | 0 |
入れ子クラスの概要 |
クラス javax.swing.JPanel から継承した入れ子クラス |
javax.swing.JPanel.AccessibleJPanel |
クラス javax.swing.JComponent から継承した入れ子クラス |
javax.swing.JComponent.AccessibleJComponent |
クラス java.awt.Container から継承した入れ子クラス |
java.awt.Container.AccessibleAWTContainer |
クラス java.awt.Component から継承した入れ子クラス |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
フィールドの概要 | |
protected boolean |
buffering
バッファの内容をそのまま描画する場合はtrue バッファに円グラフを描画した後でバッファの内容を描画する場合はfalse |
protected PFChartColor |
color
グラフ色データ。 |
protected PFChartModel |
model
グラフデータモデル。 |
protected PFPieChartRenderer |
render
グラフ描画。 |
クラス jp.go.aist.dmrc.platform.beans.gui.chart.PFChart から継承したフィールド |
chartArea, footer, header, itemColumnName, legend |
クラス javax.swing.JComponent から継承したフィールド |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
クラス java.awt.Component から継承したフィールド |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
PFPieChart()
コンストラクタ。 |
メソッドの概要 | |
protected void |
adjust(java.awt.Graphics2D g)
グラフの内部要素の配置・サイズ調整を行う。 |
void |
clearObjectTable()
データをクリアする。 |
int |
getAngleOfBaseLine()
円グラフの基線の位置を返す。 |
java.awt.Color |
getColor(int series)
指定した系列の色を返す。 |
PFObjectList |
getColors()
全系列の色をリストで取得する。 |
java.lang.String |
getComponentName()
コンポーネント名を返す。 |
int |
getDataLabelPosition()
データラベルの表示位置を返す。 |
int |
getDecimalPlaceOfPercentage()
データラベルに表示する比率について、小数点以下の表示桁数を返す。 |
int |
getDisplayExponent()
値の表示桁位置を返す。 |
int |
getDisplayMethod()
データラベルの値の表示方法を返す。 |
PFObjectTable |
getObjectTable()
円グラフのデータを共通プラットフォームのテーブル形式で返す。 |
protected javax.swing.JPopupMenu |
getPopupMenu(int x,
int y)
ポップアップメニューを生成する。 |
int |
getRadius()
円の半径を返す。 |
int |
getSelectedItemIndex()
選択対象の項目インデックスを取得する。 |
int |
getSelectedItemIndexForObjectTable()
選択対象の項目インデックスを取得する。 |
int |
getSelectedSeriesIndex()
選択対象の系列インデックスを取得する。 |
int |
getSelectedSeriesIndexForObjectTable()
選択対象の系列インデックスを取得する。 |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent e)
ツールチップテキストを返す。 |
java.math.BigDecimal |
getValue(int series,
int item)
指定した系列・項目の値を返す。 |
protected void |
initEventListener()
イベントリスナーを設定する。 |
boolean |
isChartPercentageVisible()
データラベルに比率を表示するかどうかを返す。 |
boolean |
isChartSeriesVisible()
データラベルに系列名を表示するかどうかを返す。 |
boolean |
isChartValueVisible()
データラベルに値を表示するかどうかを返す。 |
boolean |
isTotalVisible()
円グラフの中心に合計値を表示するかどうかを返す。 |
void |
readXML(PFXMLLoader in)
コンポーネントのXML入力. |
protected void |
render(java.awt.Graphics2D g2D)
グラフを描画する。 |
void |
repaintImmediately()
すぐに再描画を行う。 |
void |
setAngleOfBaseLine(int angle)
円グラフの基線の位置を設定する。 |
void |
setChartPercentageVisible(boolean visible)
データラベルに比率を表示するかどうかを設定する。 |
void |
setChartSeriesVisible(boolean visible)
データラベルに系列名を表示するかどうかを設定する。 |
void |
setChartValueVisible(boolean visible)
データラベルに値を表示するかどうかを設定する。 |
void |
setColor(java.awt.Color color,
int series)
指定した系列に色を設定する。 |
void |
setColors(PFObjectList colors)
全系列の色をリストで設定する。 |
void |
setDataLabelPosition(int position)
データラベルの表示位置を設定する。 |
void |
setDecimalPlaceOfPercentage(int place)
データラベルに表示する比率について、小数点以下の表示桁数を設定する。 |
void |
setDisplayExponent(int exponent)
値の表示桁位置を設定する。 |
void |
setDisplayMethod(int method)
データラベルの値の表示方法を設定する。 |
void |
setObjectTable(PFObjectTable data)
データを設定する。 |
void |
setRadius(int radius)
円の半径を設定する。 |
void |
setSelectedItemIndex(int item)
選択対象の項目インデックスを設定する。 |
void |
setSelectedItemIndexForObjectTable(int column)
選択対象の項目インデックスを設定する。 |
void |
setSelectedSeriesIndex(int series)
選択対象の系列インデックスを設定する。 |
void |
setSelectedSeriesIndexForObjectTable(int row)
選択対象の系列インデックスを設定する。 |
void |
setTotalVisible(boolean visible)
円グラフの中心に合計値を表示するかどうかを設定する。 |
void |
setValue(java.math.BigDecimal number,
int series,
int item)
指定した系列・項目に値を設定する。 |
void |
writeXML(PFXMLGenerator out)
コンポーネントのXML出力. |
クラス javax.swing.JPanel から継承したメソッド |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
クラス javax.swing.JComponent から継承したメソッド |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
クラス java.awt.Container から継承したメソッド |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
クラス java.awt.Component から継承したメソッド |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
protected PFChartModel model
protected PFChartColor color
protected PFPieChartRenderer render
protected transient boolean buffering
コンストラクタの詳細 |
public PFPieChart()
メソッドの詳細 |
public java.lang.String getComponentName()
PFComponent
内の getComponentName
protected void initEventListener()
public java.lang.String getToolTipText(java.awt.event.MouseEvent e)
e
- マウスイベント
public PFObjectTable getObjectTable()
setObjectTable(PFObjectTable)
public void setObjectTable(PFObjectTable data) throws PFComponentException
列0 | 列1 | |
---|---|---|
列ヘッダ | ||
行0 | 系列名0 | 値0 |
行1 | 系列名1 | 値1 |
… | … | … |
data
- 共通プラットフォームのテーブル形式
PFComponentException
- データが空の場合、列0が文字列でない場合getObjectTable()
public void clearObjectTable()
protected void adjust(java.awt.Graphics2D g)
PFChart
内の adjust
g
- Graphics2Dpublic void repaintImmediately()
PFChart
内の repaintImmediately
protected void render(java.awt.Graphics2D g2D)
PFChart
内の render
g2D
- Graphics2Dpublic java.math.BigDecimal getValue(int series, int item) throws PFComponentException
series
- 系列のインデックスitem
- 項目のインデックス
PFComponentException
- seriesまたはitemが適切でない場合setValue(BigDecimal, int, int)
public void setValue(java.math.BigDecimal number, int series, int item) throws PFComponentException
number
- 値series
- 系列のインデックスitem
- 項目のインデックス
PFComponentException
- seriesまたはitemが適切でない場合
PFComponentException
- numberがnullの場合getValue(int, int)
public java.awt.Color getColor(int series) throws PFComponentException
series
- 系列のインデックス
PFComponentException
- seriesが適切でない場合setColor(Color, int)
public void setColor(java.awt.Color color, int series) throws PFComponentException
color
- 色series
- 系列のインデックス
PFComponentException
- seriesが適切でない場合getColor(int)
public PFObjectList getColors() throws PFComponentException
PFComponentException
public void setColors(PFObjectList colors) throws PFComponentException
colors
- 全系列色のリスト
PFComponentException
- リストのサイズが系列数と一致しないときpublic int getRadius()
setRadius(int)
public void setRadius(int radius) throws PFComponentException
radius
- 円の半径
PFComponentException
- 半径の設定に失敗したときgetRadius()
public boolean isChartSeriesVisible()
setChartSeriesVisible(boolean)
public void setChartSeriesVisible(boolean visible)
visible
- 系列名を表示する場合trueisChartSeriesVisible()
public boolean isChartValueVisible()
setChartValueVisible(boolean)
public void setChartValueVisible(boolean visible)
visible
- 値を表示する場合trueisChartValueVisible()
public boolean isChartPercentageVisible()
setChartPercentageVisible(boolean)
public void setChartPercentageVisible(boolean visible)
visible
- 比率を表示する場合trueisChartPercentageVisible()
public boolean isTotalVisible()
setTotalVisible(boolean)
public void setTotalVisible(boolean visible)
visible
- 合計値を表示する場合trueisTotalVisible()
public int getDisplayMethod()
setDisplayMethod(int)
public void setDisplayMethod(int method) throws PFComponentException
method
- 値の表示方法
PFComponentException
- 表示方法の設定に失敗したときgetDisplayMethod()
public int getDisplayExponent()
setDisplayExponent(int)
public void setDisplayExponent(int exponent)
exponent
- 表示桁位置getDisplayExponent()
public int getDecimalPlaceOfPercentage()
setDecimalPlaceOfPercentage(int)
public void setDecimalPlaceOfPercentage(int place) throws PFComponentException
place
- 小数点以下の桁数
PFComponentException
- 表示桁数の設定に失敗したときgetDecimalPlaceOfPercentage()
public int getDataLabelPosition()
setDataLabelPosition(int)
public void setDataLabelPosition(int position) throws PFComponentException
PFChartUtility.DATA_LABEL_POSITION_IN_PIE
… 扇形の中心部
PFChartUtility.DATA_LABEL_POSITION_IN_ARC
… 扇形の弧の内側
PFChartUtility.DATA_LABEL_POSITION_OUT_ARC
… 扇形の弧の外側
PFChartUtility.DATA_LABEL_POSITION_AUTO
… 自動
position
- データラベルの表示位置
PFComponentException
- 表示位置の設定に失敗したときgetDataLabelPosition()
public int getAngleOfBaseLine()
setAngleOfBaseLine(int)
public void setAngleOfBaseLine(int angle) throws PFComponentException
angle
- 基線の位置
PFComponentException
- 基線の位置の設定に失敗したときgetAngleOfBaseLine()
public int getSelectedSeriesIndex()
public int getSelectedSeriesIndexForObjectTable()
public void setSelectedSeriesIndex(int series)
series
- 系列インデックスpublic void setSelectedSeriesIndexForObjectTable(int row)
row
- 選択対象行インデックスpublic int getSelectedItemIndex()
public int getSelectedItemIndexForObjectTable()
public void setSelectedItemIndex(int item)
item
- 項目インデックスpublic void setSelectedItemIndexForObjectTable(int column)
column
- 選択対象列インデックスprotected javax.swing.JPopupMenu getPopupMenu(int x, int y)
x
- マウスポインタX位置y
- マウスポインタY位置
public void readXML(PFXMLLoader in)
PFXMLSerializable
内の readXML
in
- XML入力ユーティリティpublic void writeXML(PFXMLGenerator out) throws java.io.IOException
PFXMLSerializable
内の writeXML
out
- XML出力ユーティリティ
java.io.IOException
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |