to.tetramorph.starbase.chartmodule
クラス NPTChartPlugin

java.lang.Object
  上位を拡張 java.awt.Component
      上位を拡張 java.awt.Container
          上位を拡張 javax.swing.JComponent
              上位を拡張 javax.swing.JPanel
                  上位を拡張 to.tetramorph.starbase.module.ChartModulePanel
                      上位を拡張 to.tetramorph.starbase.chartmodule.NPTChartPlugin
すべての実装されたインタフェース:
ImageObserver, MenuContainer, Serializable, Accessible

public class NPTChartPlugin
extends ChartModulePanel

NPT3重円プラグイン。

関連項目:
直列化された形式

入れ子のクラスの概要
 
クラス javax.swing.JPanel から継承された入れ子のクラス/インタフェース
JPanel.AccessibleJPanel
 
クラス javax.swing.JComponent から継承された入れ子のクラス/インタフェース
JComponent.AccessibleJComponent
 
クラス java.awt.Container から継承された入れ子のクラス/インタフェース
Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承された入れ子のクラス/インタフェース
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
フィールドの概要
 
クラス to.tetramorph.starbase.module.ChartModulePanel から継承されたフィールド
config, iframe, parentFrame
 
クラス 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
 
コンストラクタの概要
NPTChartPlugin()
           
 
メソッドの概要
 BufferedImage getBufferedImage(Dimension size)
          チャートの画像を返す。
 String[] getChannelNames()
          このチャートモジュールの各チャンネルの名前を返す。
 int getChannelSize()
          このチャートモジュールのチャンネル数を返す。
 CustomizePanel getColorCustomizePanel()
          このモジュール用のカラー設定パネルを返す。
 DictionaryActionFile getDictionaryAction()
          このプラグイン用の辞書アクションファイルのURLを返す。
 float getHeightPer()
          このモジュールパネルの画面比率で、幅を1としたときの縦の比率を返す。
 ChartModuleMode getModuleMode()
           
 ChartModuleMode[] getModuleModes()
          このモジュールがどのようなモード設定を持っているか、 そのモード名一覧を返す。
 Printable getPainter()
          印刷用メソッドPrintable#print()を実装したコンポーネントを返す。
 CustomizePanel getSpecificCustomizePanel()
          このモジュール用の仕様設定パネルを返す。
 List<Component> getViewMenuList()
          表示メニューに入れるメニューを返す。
 void init()
          チャートモジュールを作成する。
 boolean isImageServiceActivated()
          このプラグインは画像を返す機能を実装していて、このメソッドはtrueを返す。
 boolean isNeedTransit()
          このチャートモジュールがトランジットを受け取るか返す。
 boolean isPrintable()
          このモジュールが印刷機能をサポートする場合はtrueを返す。
 void setCommand(String[] args)
          args[0] = "TRANSIT"を入れて呼び出すと、トランジット円のみになる。
 void setData(ChannelData channelData)
          出生データを受け取る。
 void setModuleMode(ChartModuleMode mode)
          初期化時に一度呼ばれるだけ
 String toString()
          このチャートモジュール名を返す。
 void updateColorSetting()
          配色設定に変更が起きたとき呼び出され、配色設定パネルの情報をホロスコープに 反映させる。
 void updateSpecificSetting()
          仕様設定が変更されたときに呼び出される。
 
クラス to.tetramorph.starbase.module.ChartModulePanel から継承されたメソッド
getChartConfig, getClassName, getDefaultColor, getDefaultSpecific, getDictionary, getPrintRequestAttributeSet, getSabianDialogHandler, getSpecificMenuList, isAnimationActivated, isFixedImageSize, isFocusable, setConstructArgs, setCustomizeListeners, setDefaultColor, setDefaultSpecific, showColorCustomizeDialog, showSpecificCustomizeDialog
 
クラス javax.swing.JPanel から継承されたメソッド
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
クラス javax.swing.JComponent から継承されたメソッド
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
クラス java.awt.Container から継承されたメソッド
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

NPTChartPlugin

public NPTChartPlugin()
メソッドの詳細

init

public void init()
チャートモジュールを作成する。 Frameを引き渡すのは、WordBalloonに必要だから。最終的には変更するかも。 事実上parentにはMainFrameのインスタンスが入っている。引数は今後も増えそうな 予感がするので、専用のクラスを作ってラップしたほうが良いかもしれない。

オーバーライド:
クラス ChartModulePanel 内の init

setData

public void setData(ChannelData channelData)
出生データを受け取る。出生データや出来事データなど日時場所の基礎データを 受け取り、それに基づいて星の位置を計算しホロスコープを描画する。

定義:
クラス ChartModulePanel 内の setData
パラメータ:
channelData - チャンネルデータ

getHeightPer

public float getHeightPer()
クラス ChartModulePanel の記述:
このモジュールパネルの画面比率で、幅を1としたときの縦の比率を返す。 デフォルトでは0.707fを返し、これはA4用紙を横向きにした比率と同じ。

オーバーライド:
クラス ChartModulePanel 内の getHeightPer

updateSpecificSetting

public void updateSpecificSetting()
仕様設定が変更されたときに呼び出される。 updateColorSetting()の次に呼び出される。

オーバーライド:
クラス ChartModulePanel 内の updateSpecificSetting

updateColorSetting

public void updateColorSetting()
配色設定に変更が起きたとき呼び出され、配色設定パネルの情報をホロスコープに 反映させる。init()の次に呼び出される。

オーバーライド:
クラス ChartModulePanel 内の updateColorSetting

getViewMenuList

public List<Component> getViewMenuList()
表示メニューに入れるメニューを返す。

オーバーライド:
クラス ChartModulePanel 内の getViewMenuList

getSpecificCustomizePanel

public CustomizePanel getSpecificCustomizePanel()
このモジュール用の仕様設定パネルを返す。

オーバーライド:
クラス ChartModulePanel 内の getSpecificCustomizePanel

getColorCustomizePanel

public CustomizePanel getColorCustomizePanel()
このモジュール用のカラー設定パネルを返す。

オーバーライド:
クラス ChartModulePanel 内の getColorCustomizePanel

setCommand

public void setCommand(String[] args)
args[0] = "TRANSIT"を入れて呼び出すと、トランジット円のみになる。

オーバーライド:
クラス ChartModulePanel 内の setCommand

toString

public String toString()
このチャートモジュール名を返す。

オーバーライド:
クラス Component 内の toString

getChannelSize

public int getChannelSize()
このチャートモジュールのチャンネル数を返す。

定義:
クラス ChartModulePanel 内の getChannelSize

isNeedTransit

public boolean isNeedTransit()
このチャートモジュールがトランジットを受け取るか返す。

定義:
クラス ChartModulePanel 内の isNeedTransit

getChannelNames

public String[] getChannelNames()
このチャートモジュールの各チャンネルの名前を返す。

定義:
クラス ChartModulePanel 内の getChannelNames

getModuleModes

public ChartModuleMode[] getModuleModes()
クラス ChartModulePanel の記述:
このモジュールがどのようなモード設定を持っているか、 そのモード名一覧を返す。モードを持たないモジュールの場合は、nullを返す。 モード名を持つモジュールなら、モード名をChartModuleModeクラスで名前を 用意して、それを列挙した配列を返す。

オーバーライド:
クラス ChartModulePanel 内の getModuleModes

setModuleMode

public void setModuleMode(ChartModuleMode mode)
初期化時に一度呼ばれるだけ

オーバーライド:
クラス ChartModulePanel 内の setModuleMode

getModuleMode

public ChartModuleMode getModuleMode()
オーバーライド:
クラス ChartModulePanel 内の getModuleMode

getBufferedImage

public BufferedImage getBufferedImage(Dimension size)
チャートの画像を返す。

オーバーライド:
クラス ChartModulePanel 内の getBufferedImage
パラメータ:
size - 要求画像サイズを指定

isImageServiceActivated

public boolean isImageServiceActivated()
このプラグインは画像を返す機能を実装していて、このメソッドはtrueを返す。 実装していない場合はfalseを返す。

オーバーライド:
クラス ChartModulePanel 内の isImageServiceActivated

getPainter

public Printable getPainter()
クラス ChartModulePanel の記述:
印刷用メソッドPrintable#print()を実装したコンポーネントを返す。 デフォルトではnullを返すので、印刷機能をサポートするプラグインは オーバーライドし、機能を実装する。

オーバーライド:
クラス ChartModulePanel 内の getPainter

isPrintable

public boolean isPrintable()
クラス ChartModulePanel の記述:
このモジュールが印刷機能をサポートする場合はtrueを返す。

オーバーライド:
クラス ChartModulePanel 内の isPrintable

getDictionaryAction

public DictionaryActionFile getDictionaryAction()
クラス ChartModulePanel の記述:
このプラグイン用の辞書アクションファイルのURLを返す。 アクションは所定のXMLで記述されたファイル。デフォルトではnullを返す。 必要に応じてオーバーライドする。

オーバーライド:
クラス ChartModulePanel 内の getDictionaryAction