|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
unbbayes.gui.GlobalOptionsDialog
public class GlobalOptionsDialog
Class responsible for general configurations, like node color, size, algorithm to use for compilation, etc.
JDialog
,
Serialized FormNested Class Summary | |
---|---|
protected class |
GlobalOptionsDialog.PluginRadioButtonListener
A component aware listener for Plugin's radio buttons. |
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GlobalOptionsDialog(GraphPane gra,
NetworkController con)
Constroi a estrutura da janela que mostra as opcoes globais |
Method Summary | |
---|---|
String |
getAlgorithmExtensionPoint()
This is the extension point id for InferenceAlgorithm. |
JComponent |
getAlgorithmOptionPane()
|
JPanel |
getAlgorithmRadioPanel()
|
Map<JRadioButtonMenuItem,InferenceAlgorithmOptionPanel> |
getAlgorithmToOptionMap()
|
Color |
getArcColor()
Retorna a cor do arco do botao corArco |
Color |
getBackgroundColor()
Retorna a cor de fundo do botao corFundo |
Color |
getDecisionNodeColor()
Retorna a cor do no de decisao do botao corNo |
protected Map<JRadioButtonMenuItem,InferenceAlgorithmOptionPanel> |
getDefaultAlgorithms()
Returns a map (radio button -> respective InferenceAlgorithmOptionPanel) for those "default" algorithms, Those algorithms are treated like plugins, but they are not actually inside plugins directory. |
String |
getPluginCoreID()
The ID of the core plugin. |
String |
getPluginDirectory()
The directory where this class will search for plugins. |
org.java.plugin.PluginManager |
getPluginManager()
|
Color |
getPropabilisticDescriptionNodeColor()
Retorna a cor do no de probabilidade do botao corNo |
Color |
getPropabilisticExplanationNodeColor()
Retorna a cor do no de probabilidade do botao corNo |
int |
getRadius()
Retorna o valor do raio no sliderRaio . |
Color |
getSelectionColor()
Retorna a cor de selecao do botao corSelecao |
UnBBayesPluginContextHolder |
getUnBBayesPluginContextHolder()
|
Color |
getUtilityNodeColor()
Retorna a cor do no de utilidade do botao corNo |
protected Map<JRadioButtonMenuItem,InferenceAlgorithmOptionPanel> |
loadAlgorithmsAsPlugins()
Use the plugin framework to load algorithms and fill radio button and its option panel |
protected void |
reloadPlugins()
Reloads plugin algorithms |
void |
setAlgorithmExtensionPoint(String algorithmExtensionPoint)
This is the extension point id for InferenceAlgorithm. |
void |
setAlgorithmOptionPane(JComponent algorithmOptionPane)
|
void |
setAlgorithmRadioPanel(JPanel algorithmRadioPanel)
|
void |
setAlgorithmToOptionMap(Map<JRadioButtonMenuItem,InferenceAlgorithmOptionPanel> algorithmToOptionMap)
|
protected void |
setCurrentAlgorithmOptionPanel(Component currentOptionPanel)
Changes the getAlgorithmOptionPane() 's content to
currentOptionPanel. |
void |
setPluginCoreID(String pluginCoreID)
The ID of the core plugin. |
void |
setPluginDirectory(String pluginDirectory)
The directory where this class will search for plugins. |
void |
setUnBBayesPluginContextHolder(UnBBayesPluginContextHolder unbbayesPluginContextHolder)
|
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GlobalOptionsDialog(GraphPane gra, NetworkController con)
a
- rede a ser configurada (TDesenhaRede
)Method Detail |
---|
protected void reloadPlugins()
protected void setCurrentAlgorithmOptionPanel(Component currentOptionPanel)
getAlgorithmOptionPane()
's content to
currentOptionPanel.
currentOptionPanel
- protected Map<JRadioButtonMenuItem,InferenceAlgorithmOptionPanel> loadAlgorithmsAsPlugins()
protected Map<JRadioButtonMenuItem,InferenceAlgorithmOptionPanel> getDefaultAlgorithms()
public int getRadius()
sliderRaio
.
public Color getPropabilisticDescriptionNodeColor()
corNo
Color)- See Also:
Color
public Color getPropabilisticExplanationNodeColor()
corNo
Color)- See Also:
Color
public Color getDecisionNodeColor()
corNo
Color)- See Also:
Color
public Color getUtilityNodeColor()
corNo
Color)- See Also:
Color
public Color getArcColor()
corArco
Color)- See Also:
Color
public Color getSelectionColor()
corSelecao
Color)- See Also:
Color
public Color getBackgroundColor()
corFundo
Color)- See Also:
Color
public JPanel getAlgorithmRadioPanel()
public void setAlgorithmRadioPanel(JPanel algorithmRadioPanel)
algorithmRadioPanel
- the algorithmRadioPanel to setpublic Map<JRadioButtonMenuItem,InferenceAlgorithmOptionPanel> getAlgorithmToOptionMap()
public void setAlgorithmToOptionMap(Map<JRadioButtonMenuItem,InferenceAlgorithmOptionPanel> algorithmToOptionMap)
algorithmToOptionMap
- the algorithmToOptionMap to setpublic JComponent getAlgorithmOptionPane()
public void setAlgorithmOptionPane(JComponent algorithmOptionPane)
algorithmOptionPane
- the algorithmOptionPane to setpublic String getPluginDirectory()
public void setPluginDirectory(String pluginDirectory)
pluginDirectory
- the pluginDirectory to setpublic org.java.plugin.PluginManager getPluginManager()
public String getPluginCoreID()
public void setPluginCoreID(String pluginCoreID)
pluginCoreID
- the pluginCoreID to setpublic String getAlgorithmExtensionPoint()
public void setAlgorithmExtensionPoint(String algorithmExtensionPoint)
algorithmExtensionPoint
- the algorithmExtensionPoint to setpublic UnBBayesPluginContextHolder getUnBBayesPluginContextHolder()
public void setUnBBayesPluginContextHolder(UnBBayesPluginContextHolder unbbayesPluginContextHolder)
unbbayesPluginContextHolder
- the unbbayesPluginContextHolder to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |