|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
to.tetramorph.starbase.module.ChartModulePanel
public abstract class ChartModulePanel
チャートモジュールを作成する際の抽象クラス。ChartInternalFrameの中で複数の チャートモジュールがロードされ、ユーザからのメニュー操作によって選択的に 使用される。 チャートモジュールはこのクラスに用意されているサビアンダイアログや色設定 ダイアログを使うことができ、モジュール内で選択した天体のサビアンを表示したり、 モジュール固有の設定情報を登録・編集できる。
入れ子のクラスの概要 |
---|
クラス 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 |
フィールドの概要 | |
---|---|
protected Preference |
config
システムの設定情報。 |
protected ChartTab |
iframe
モジュールの親である内部フレームChartPaneはChartTabを実装している。 |
protected Frame |
parentFrame
プラグインの側でJDaialogやJFrameを使いたい場合にオーナーとして使用するFrame。 |
クラス 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 |
コンストラクタの概要 | |
---|---|
ChartModulePanel()
動的にロードするプラグインのためのコンストラクタ。 |
メソッドの概要 | |
---|---|
BufferedImage |
getBufferedImage(Dimension size)
チャート画像を返す。 |
abstract String[] |
getChannelNames()
チャンネル(複数)の名前を返す。 |
abstract int |
getChannelSize()
このモジュールがいくつチャンネルをもっているか返す。 |
void |
getChartConfig(ChartConfig cc)
|
String |
getClassName()
このモジュールパネルのクラス名を返す。 |
CustomizePanel |
getColorCustomizePanel()
色設定機能を持つプラグインは、このメソッドをオーバーライドして、設定パネル のインスタンスを返すようにする。 |
Preference |
getDefaultColor()
デフォルトカラー設定を返す。 |
Preference |
getDefaultSpecific()
デフォルト仕様を返す。 |
protected Dictionary |
getDictionary()
汎用辞書を返す。 |
DictionaryActionFile |
getDictionaryAction()
このプラグイン用の辞書アクションファイルのURLを返す。 |
float |
getHeightPer()
このモジュールパネルの画面比率で、幅を1としたときの縦の比率を返す。 |
ChartModuleMode |
getModuleMode()
|
ChartModuleMode[] |
getModuleModes()
このモジュールがどのようなモード設定を持っているか、 そのモード名一覧を返す。 |
Printable |
getPainter()
印刷用メソッドPrintable#print()を実装したコンポーネントを返す。 |
PrintRequestAttributeSet |
getPrintRequestAttributeSet()
印刷の際の用紙の向き、印刷部数などを定義したハッシュセットを返す。 |
protected SabianDialogHandler |
getSabianDialogHandler()
サビアンダイアログを返す。 |
CustomizePanel |
getSpecificCustomizePanel()
計算設定機能を持つプラグインは、このメソッドをオーバーライドして、設定パネル を実装する。 |
List<Component> |
getSpecificMenuList()
設定(P)にいれるメニューを返す。 |
List<Component> |
getViewMenuList()
表示(V)にいれるメニューアイテムのリストを返す。 |
protected void |
init()
モジュール初期化時に呼び出される。 |
boolean |
isAnimationActivated()
このモジュールがマニューバによるアニメーション操作を受け付ける場合は、 trueを返す。 |
boolean |
isFixedImageSize()
getBufferedImageがsizeの値を無視して、モジュール独自の画像サイズを返す 場合はtrueを返す。 |
boolean |
isFocusable()
このチャートモジュールがフォーカスを受け取る場合はtrueを返す。 |
boolean |
isImageServiceActivated()
getBufferedImage()が画像を返すとき、このメソッドはtrueを返す。 |
abstract boolean |
isNeedTransit()
トランジットチャンネルを必要としてるモジュールならtrueを返す。 |
boolean |
isPrintable()
このモジュールが印刷機能をサポートする場合はtrueを返す。 |
void |
setCommand(String[] args)
アマテルからプラグインの(日付のセット以外の)細かい制御をするためのコマンド をセットする。 |
void |
setConstructArgs(ChartTab iframe,
SabianDialogHandler sabianDialogHandler,
Dictionary dictionary,
Preference configData,
String className,
Frame parentFrame)
このモジュールに必須のパラメターを登録する。 |
void |
setCustomizeListeners(ChartCustomizeListener calc_ccl,
ChartCustomizeListener color_ccl)
ChartPaneからモジュール初期化時に、このメソッドで引数をセットする。 |
abstract void |
setData(ChannelData channelData)
Natalのリストをチャートモジュールにセットする。 |
void |
setDefaultColor(Preference colorPref)
デフォルトカラー設定を登録する。 |
void |
setDefaultSpecific(Preference specificPreference)
デフォルト仕様を登録する。 |
void |
setModuleMode(ChartModuleMode mode)
初期化時に一度呼ばれ、このモジュールの基本動作モードを設定する。 |
void |
showColorCustomizeDialog()
配色のカスタマイズ用ダイアログを開く。 |
void |
showSpecificCustomizeDialog()
計算条件のカスタマイズ用ダイアログを開く。 |
void |
updateColorSetting()
カラー設定が変更されたときに呼び出される。 |
void |
updateSpecificSetting()
計算仕様の設定が変更されたときに呼び出される。 |
クラス javax.swing.JPanel から継承されたメソッド |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
protected ChartTab iframe
protected Frame parentFrame
protected Preference config
コンストラクタの詳細 |
---|
public ChartModulePanel()
メソッドの詳細 |
---|
public final void setConstructArgs(ChartTab iframe, SabianDialogHandler sabianDialogHandler, Dictionary dictionary, Preference configData, String className, Frame parentFrame)
iframe
- ChartModulePanelが格納されている内部フレームsabianDialogHandler
- configData
- 基本設定情報を格納したPreferenceclassName
- チャートモジュールのクラス名parentFrame
- チャートモジュール側でJDialogを使うときに指定する親Frame。
実はMainFrameを指定。public void getChartConfig(ChartConfig cc)
public String getClassName()
protected SabianDialogHandler getSabianDialogHandler()
protected Dictionary getDictionary()
protected void init()
public abstract void setData(ChannelData channelData)
channelData
- チャンネルデータpublic boolean isFocusable()
Component
内の isFocusable
public abstract boolean isNeedTransit()
public abstract int getChannelSize()
public abstract String[] getChannelNames()
public void setDefaultColor(Preference colorPref)
public Preference getDefaultColor()
public void updateColorSetting()
public void setDefaultSpecific(Preference specificPreference)
public Preference getDefaultSpecific()
public void updateSpecificSetting()
public CustomizePanel getColorCustomizePanel()
public CustomizePanel getSpecificCustomizePanel()
public List<Component> getViewMenuList()
public List<Component> getSpecificMenuList()
public void setCommand(String[] args)
public ChartModuleMode[] getModuleModes()
public void setModuleMode(ChartModuleMode mode)
public ChartModuleMode getModuleMode()
public void setCustomizeListeners(ChartCustomizeListener calc_ccl, ChartCustomizeListener color_ccl)
public void showSpecificCustomizeDialog()
public void showColorCustomizeDialog()
public BufferedImage getBufferedImage(Dimension size)
size
- 要求画像サイズを指定public boolean isImageServiceActivated()
public boolean isFixedImageSize()
public float getHeightPer()
public Printable getPainter()
public boolean isPrintable()
public PrintRequestAttributeSet getPrintRequestAttributeSet()
public boolean isAnimationActivated()
public DictionaryActionFile getDictionaryAction()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |