to.tetramorph.starbase.chartmodule
クラス NPTSpecificSettingPanel

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

public class NPTSpecificSettingPanel
extends CustomizePanel

NPT三重円プラグイン用の計算設定パネル。ただし相性円プラグインの設定パネルも かねている。NPTであれ、相性円であれ、設定が異なるのは「アスペクト表示」タブの 中にある、アスペクト組合せ設定パネルのみで、他の部分は共通。 NPT三重円の場合「アスペクト表示タブ」の中に、NPT各円の組合せごとのアスペクト設定 をするパネル(AspectCombinationPanel)をコンストラクタで渡してはめ込む方式にした。 相性円にもそれ独自の組合せ設定パネルがあり、同様にこのクラスのnewの際にそれを渡す 仕組み。 はじめは相性円用の設定パネルのことはまったく考慮しておらず、全てのプロパティ取得 メソッドをこのクラスに用意していた。そのほうがまとまりがあって良いともいえるの だが、相性円用の部品として流用することができなくなる。ここはトレードオフで、 設定情報の取得は二つのインスタンスに問い合わせる事になるが、流用できる方を選択 した。

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

入れ子のクラスの概要
 
クラス 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
 
フィールドの概要
static int TAB_HOUSE
           
static int TAB_ORB
           
static int TAB_PLANET
           
static int TAB_PROGRESSION
           
static int TAB_RING
           
 
クラス 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
 
コンストラクタの概要
NPTSpecificSettingPanel()
          オブジェクトを作成する。
NPTSpecificSettingPanel(CombinationSelectorPanel combi)
          アスペクト・チャート円の組合せパネルを指定してオブジェクトを作成する。
 
メソッドの概要
 boolean[] getAspectCategorys()
          アスペクトのカテゴリー表示モードを返す。
 JMenu getAspectCategorysMenu()
          アスペクトカテゴリー(1種2種3種、タイト、ルーズ)の表示/非表示を設定する メニューを返す。
 int[] getAspectNatalBodyIDs()
          ネイタルでアスペクトを検出する天体のIDsを返す。
 int[] getAspectProgressBodyIDs()
          プログレスでアスペクトを検出する天体のIDsを返す。
 int[] getAspectTransitBodyIDs()
          トランジットでアスペクトを検出する天体のIDsを返す。
 AspectType[] getAspectTypes(int npt)
          N,P,Tの各円の組合せごとのアスペクトタイプの配列を返す。
 int[] getBodyIDs(int npt)
          選択されている天体IDsを返す。
 char getCuspUnknownHouseSystem()
          カスプが計算できないときのハウス分割法(ソーラーかソーラーサイン)コード を帰す。
 boolean getDirectLineMode()
          アスペクトダイレクトラインモードのときはtrueを返す。
 JMenuItem getDirectLineModeMenuItem()
          アスペクトダイレクトラインモードを選択するためのメニューアイテムを返す。
 char getHouseSystemCode()
          選択されているハウス分割法のスイスエフェメリス用のコードを返す。
 int[] getNatalBodyIDs()
          選択されているネイタル天体IDsを返す。
 Preference getPreference(Preference pref)
          設定パネルの設定状態をprefに書きこむ。
 boolean getPrioritizeSolar()
           
 int[] getProgressBodyIDs()
          選択されているプログレス天体IDsを返す。
 char getProgressCode()
          選択されている進行法のコード(NPTChartに有効な)を返す。
 int[] getTransitBodyIDs()
          選択されているトランジット天体IDsを返す。
 boolean isCorrect(String[] errmsg)
          このパネルの設定が正しく行われている状態ならtrue。
 void setHouseSystemCode(char code)
          ハウス分割法をセットする
 void setPreference(Preference pref)
          設定パネルにPreferenceの情報を反映させる。
 void setSelectedTab(int tabNum, int subTab)
          tabNumがTAB_ORBのとき、subTabにはgetShowRings()の値を指定する。
 
クラス to.tetramorph.starbase.widget.CustomizePanel から継承されたメソッド
doClickUseButton, setSpecificDialogOperations
 
クラス 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, isFocusable, 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, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

TAB_PLANET

public static final int TAB_PLANET
関連項目:
定数フィールド値

TAB_ORB

public static final int TAB_ORB
関連項目:
定数フィールド値

TAB_RING

public static final int TAB_RING
関連項目:
定数フィールド値

TAB_HOUSE

public static final int TAB_HOUSE
関連項目:
定数フィールド値

TAB_PROGRESSION

public static final int TAB_PROGRESSION
関連項目:
定数フィールド値
コンストラクタの詳細

NPTSpecificSettingPanel

public NPTSpecificSettingPanel(CombinationSelectorPanel combi)
アスペクト・チャート円の組合せパネルを指定してオブジェクトを作成する。


NPTSpecificSettingPanel

public NPTSpecificSettingPanel()
オブジェクトを作成する。( GUIエディタの都合上必要なコンストラクタ )

メソッドの詳細

getPreference

public Preference getPreference(Preference pref)
クラス CustomizePanel の記述:
設定パネルの設定状態をprefに書きこむ。

定義:
クラス CustomizePanel 内の getPreference
パラメータ:
pref - Preferenceオブジェクト
戻り値:
prefを返す。

setPreference

public void setPreference(Preference pref)
クラス CustomizePanel の記述:
設定パネルにPreferenceの情報を反映させる。

定義:
クラス CustomizePanel 内の setPreference
パラメータ:
pref - しかるべき値が登録されているPreferenceオブジェクト

isCorrect

public boolean isCorrect(String[] errmsg)
このパネルの設定が正しく行われている状態ならtrue。フィールドに異常な値が 入力されている場合などはfalseを返す。

定義:
クラス CustomizePanel 内の isCorrect
パラメータ:
errmsg - 要素数1の文字配列を与える。戻り値がfalseの場合エラーメッセージが参照書き込みされる。

getNatalBodyIDs

public int[] getNatalBodyIDs()
選択されているネイタル天体IDsを返す。


getProgressBodyIDs

public int[] getProgressBodyIDs()
選択されているプログレス天体IDsを返す。


getTransitBodyIDs

public int[] getTransitBodyIDs()
選択されているトランジット天体IDsを返す。


getBodyIDs

public int[] getBodyIDs(int npt)
選択されている天体IDsを返す。 get(Natal|Progress|Transit)BodyIDs()と機能は同じ。引数でNPTの選択ができる ようにしたメソッド。

パラメータ:
npt - 0=N,1=P,2=T

getAspectNatalBodyIDs

public int[] getAspectNatalBodyIDs()
ネイタルでアスペクトを検出する天体のIDsを返す。


getAspectProgressBodyIDs

public int[] getAspectProgressBodyIDs()
プログレスでアスペクトを検出する天体のIDsを返す。


getAspectTransitBodyIDs

public int[] getAspectTransitBodyIDs()
トランジットでアスペクトを検出する天体のIDsを返す。


getCuspUnknownHouseSystem

public char getCuspUnknownHouseSystem()
カスプが計算できないときのハウス分割法(ソーラーかソーラーサイン)コード を帰す。


getHouseSystemCode

public char getHouseSystemCode()
選択されているハウス分割法のスイスエフェメリス用のコードを返す。


getPrioritizeSolar

public boolean getPrioritizeSolar()

setHouseSystemCode

public void setHouseSystemCode(char code)
ハウス分割法をセットする


getProgressCode

public char getProgressCode()
選択されている進行法のコード(NPTChartに有効な)を返す。


getAspectCategorysMenu

public JMenu getAspectCategorysMenu()
アスペクトカテゴリー(1種2種3種、タイト、ルーズ)の表示/非表示を設定する メニューを返す。チャートモジュール側でこのメニューをメニューバーにaddして 使用する。


getAspectCategorys

public boolean[] getAspectCategorys()
アスペクトのカテゴリー表示モードを返す。 1種2種3種、タイト、ルーズのそれぞれを表示するかしないかを表す配列を返す。 AspectCircle#setMode()で与える、表示モード設定である。

戻り値:
配列にはshow,tight,loose,cat1,cat2,cat3,cat4の順で格納されているが、 現在showはtrue、cat4はfalseに固定されている。

getAspectTypes

public AspectType[] getAspectTypes(int npt)
N,P,Tの各円の組合せごとのアスペクトタイプの配列を返す。

パラメータ:
npt - 1 = NN, 2=PP, 3=NP, 4=TT, 5=NT, 6=PTとしてNPT各円の組みあわせ を指定する。b0=N,b1=P,b2=Tで、その組合せで値は決まっている。
例外:
IllegalArgumentException - 1から6以外の値を指定したとき。

getDirectLineMode

public boolean getDirectLineMode()
アスペクトダイレクトラインモードのときはtrueを返す。


getDirectLineModeMenuItem

public JMenuItem getDirectLineModeMenuItem()
アスペクトダイレクトラインモードを選択するためのメニューアイテムを返す。


setSelectedTab

public void setSelectedTab(int tabNum,
                           int subTab)
tabNumがTAB_ORBのとき、subTabにはgetShowRings()の値を指定する。 tabNumがTAB_PLANETのとき、subTabに0を指定すると表示天体、1を指定すると アスペクト検出天体の設定パネルが選択される。