to.tetramorph.starbase.chartparts
クラス AspectDisplaySettingPanel

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

public class AspectDisplaySettingPanel
extends JPanel

アスペクトの表示の際に、1種〜3種のどれを表示するかを設定するパネル。 NPTSpecificSettingPanelに集約されている部品で、タイトとルーズ、どちらか または両方を表示するかを設定するためのパネル。 またCombinationSelectorPanelを継承したパネル(たとえばAspectCombinationPanel)を、 このパネルにはめ込む機能がある。はめ込まれるパネルは、このパネルがもっている 機能とは直接は関係がないが、GUIのデザインの都合上、そういう仕様になっている。

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

入れ子のクラスの概要
 
クラス 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 CATEGORY1
          mode[CATEGORY1]がtrueなら第1種アスペクト表示。
static int CATEGORY2
          mode[CATEGORY2]がtrueなら第2種アスペクト表示。
static int CATEGORY3
          mode[CATEGORY3]がtrueなら第3種アスペクト表示。
static int CATEGORY4
          mode[CATEGORY4]がtrueなら特殊アスペクト表示。
static int LOOSE
          mode[LOOSE]がtrueならルーズアスペクトを表示。
static int SHOW
          mode[SHOW]がtrueならアスペクトを表示。
static int TIGHT
          mode[TIGHT]がtrueならタイトアスペクトを表示。
 
クラス 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
 
コンストラクタの概要
AspectDisplaySettingPanel()
          オブジェクトを作成する。
 
メソッドの概要
 boolean[] getAspectCategorys()
          AspectCircleのsetMode()に与えるスイッチを返す。
 JMenu getAspectCategorysMenu()
          アスペクトカテゴリーメニューを返す。
 String getAspectCategorysString()
          アスペクト表示で「タイト、ルーズ、1種、2種、3種」の表示/非表示を指定する。
 CombinationSelectorPanel getCombinationSelectorPanel()
          このパネルにセットされているCombinationSelectorPanelを返す。
 boolean getDirectLineMode()
          アスペクトダイレクトラインモードのときはtrueを返す。
 JMenuItem getDirectLineModeMenuItem()
          アスペクトダイレクトラインモードを選択するためのJMenuItemを返す。
 void setAspectCategorys(boolean[] flags)
          タイト、ルーズ、1種、2種、3種の表示/非表示を文字列で指定する。
 void setAspectCategorys(String value)
          タイト、ルーズ、1種、2種、3種の表示/非表示を文字列で指定する。
 void setCombinationSelectorPanel(CombinationSelectorPanel combi)
          このパネルにCobbinationSelectorPanelをセットする。
 void setCustomizePanel(CustomizePanel cp)
          CustomizePanelをセットする。
 void setDirectLineMode(boolean b)
          アスペクトダイレクトラインモードを設定する。
 void setDirectLineMode(String b)
          アスペクトダイレクトラインモードを設定する。
 
クラス 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
 

フィールドの詳細

SHOW

public static final int SHOW
mode[SHOW]がtrueならアスペクトを表示。falseなら非表示。

関連項目:
定数フィールド値

TIGHT

public static final int TIGHT
mode[TIGHT]がtrueならタイトアスペクトを表示。falseならタイトアスペクト非表示。

関連項目:
定数フィールド値

LOOSE

public static final int LOOSE
mode[LOOSE]がtrueならルーズアスペクトを表示。falseならルーズアスペクト非表示。

関連項目:
定数フィールド値

CATEGORY1

public static final int CATEGORY1
mode[CATEGORY1]がtrueなら第1種アスペクト表示。falseなら非表示。 1種とはCONJUNCTION,SEXTILE,SQUARE,TRINE,OPPOSITION。

関連項目:
定数フィールド値

CATEGORY2

public static final int CATEGORY2
mode[CATEGORY2]がtrueなら第2種アスペクト表示。falseなら非表示。 2種とはSEMI_SEXTILE,SEMI_SQUARE,SESQUIQUADRATE(135),ENCONJUNCT(150)

関連項目:
定数フィールド値

CATEGORY3

public static final int CATEGORY3
mode[CATEGORY3]がtrueなら第3種アスペクト表示。falseなら非表示。 QUINTILE(72),SEMI_QUINTILE(36),BI_QUINTILE(144)

関連項目:
定数フィールド値

CATEGORY4

public static final int CATEGORY4
mode[CATEGORY4]がtrueなら特殊アスペクト表示。falseなら非表示。 PARALLELやその他のアスペクト

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

AspectDisplaySettingPanel

public AspectDisplaySettingPanel()
オブジェクトを作成する。

メソッドの詳細

getAspectCategorys

public boolean[] getAspectCategorys()
AspectCircleのsetMode()に与えるスイッチを返す。

戻り値:
要素数7の配列で返る。show,tight,loose,cat1,cat2,cat3,cat4の順だが、 showはtrue、cat4はfalseに固定されている。

getAspectCategorysString

public String getAspectCategorysString()
アスペクト表示で「タイト、ルーズ、1種、2種、3種」の表示/非表示を指定する。 これはAspectCircleのsetMode()に与えるスイッチとみなせる。 実際には「表示,タイト,ルーズ,1種、2種、3種、4種」なのだが、現在表示と4種は 無視つねにOFFである。

戻り値:
"0,1,0,1,0,0,0"といった文字列で"1"はtrueを"0"はfalseを表す。

setAspectCategorys

public void setAspectCategorys(String value)
タイト、ルーズ、1種、2種、3種の表示/非表示を文字列で指定する。 実際には「表示,タイト,ルーズ,1種、2種、3種、4種」なのだが、現在表示と4種は 無視つねにOFFである。

パラメータ:
value - "1,0,0,1,0,0,0"といった文字列を与える。null,"",7つに分割できな い文字列が入力されると、 表示と4種以外はすべてONに設定される。つまり"1,1,1,1,1,1,0"を与えたのと同じ。

setAspectCategorys

public void setAspectCategorys(boolean[] flags)
タイト、ルーズ、1種、2種、3種の表示/非表示を文字列で指定する。 実際には「表示,タイト,ルーズ,1種、2種、3種、4種」なのだが、現在表示と4種は 無視つねにOFFである。

パラメータ:
flags - 要素7の配列で、show,tight,loose,cat1,cat2,cat3,cat4の順だが、 show,cat4はどのような値を指定してもshowはtrue、cat4はfalseとなる。

getAspectCategorysMenu

public JMenu getAspectCategorysMenu()
アスペクトカテゴリーメニューを返す。(1,2,3種,タイト,ルーズの選択メニュー)


setDirectLineMode

public void setDirectLineMode(boolean b)
アスペクトダイレクトラインモードを設定する。

パラメータ:
b - trueを設定すると、ダイレクトラインモード。

getDirectLineMode

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


setDirectLineMode

public void setDirectLineMode(String b)
アスペクトダイレクトラインモードを設定する。

パラメータ:
b - "true"をセットするとダイレクトラインモード。

getDirectLineModeMenuItem

public JMenuItem getDirectLineModeMenuItem()
アスペクトダイレクトラインモードを選択するためのJMenuItemを返す。 JMenuItemで返るが中身はJCheckBoxMenuItem。


setCustomizePanel

public void setCustomizePanel(CustomizePanel cp)
CustomizePanelをセットする。このパネルが動作するために、かならずセットが必要。


setCombinationSelectorPanel

public void setCombinationSelectorPanel(CombinationSelectorPanel combi)
このパネルにCobbinationSelectorPanelをセットする。 今のところ話を簡単にするために、一回のみしか呼ばれず、その後パネルが 削除されることもないものとする。要するに追加のみで削除の機能を用意していない。 どのみち抜き差しする必要性は無いからだ。


getCombinationSelectorPanel

public CombinationSelectorPanel getCombinationSelectorPanel()
このパネルにセットされているCombinationSelectorPanelを返す。 未セットならnullを返す。