|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JInternalFrame
unbbayes.util.extension.UnBBayesModule
unbbayes.gui.NetworkWindow
public class NetworkWindow
Class responsible for representing the network window.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
|---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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 | |
|---|---|
static Integer |
PN_MODE
|
| Fields inherited from class javax.swing.JInternalFrame |
|---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
protected |
NetworkWindow()
Default constructor useful for extended classes |
|
NetworkWindow(Network net)
|
| Method Summary | |
|---|---|
void |
changeToEditNet()
|
void |
changeToHierarchy()
M_todo respons_vel por fazer as altera__es necess_rias para a mudar da tela de edi__o para a tela de defini__o da hierarquia. |
void |
changeToPNCompilationPane()
M_todo respons_vel por fazer as altera__es necess_rias para a mudar da tela de edi__o para a de compila__o. |
void |
changeToPNEditionPane()
M_todo respons_vel por fazer as altera__es necess_rias para a mudar da tela de compila__o para a de edi__o. |
void |
changeToPNEvaluationPane(JPanel evaluationPane)
|
CardLayout |
getCardLayout()
|
NetworkController |
getController()
|
EditNet |
getEditNet()
|
EvidenceTree |
getEvidenceTree()
Retorna a arvore de evidencias. |
String |
getFileName()
|
GraphPane |
getGraphPane()
Retorna o grafo responsavel pela representacao grafica da rede. |
JViewport |
getGraphViewport()
Retorna o container, graphViewport ( JViewport), que
contem o grafo responsavel pela representacao grafica da rede. |
HierarchicDefinitionPane |
getHierarchicDefinitionPanel()
|
JInternalFrame |
getInternalFrame()
Obtains the internal frame to be created by UnBBayes Swing core when a file listed within #getSupportedFileExtensions()
is opened by the user. |
BaseIO |
getIO()
Returns the I/O class that is responsible to open/save files of a extension declared in #getSupportedFileExtensions() |
JScrollPane |
getJspGraph()
Retorna o painel do draw. |
JScrollPane |
getJspTree()
Retorna o painel da arvore. |
Integer |
getMode()
|
String |
getModuleName()
Obtains the name of this module. |
Network |
getNet()
|
PNCompilationPane |
getNetWindowCompilation()
Retorna a tela de compila__o ( PNCompilationPane). |
PNEditionPane |
getNetWindowEdition()
Retorna a tela de edi__o ( PNEditionPane). |
NetworkController |
getNetworkController()
|
Graph |
getPersistingGraph()
Obtains the graph to be persisted or is being edited by this window. |
String |
getSavingMessage()
Obtains a message to be shown to user while saving a net editted by a window implementing this interface. |
SingleEntityNetwork |
getSingleEntityNetwork()
Retorna a rede probabil_stica (ProbabilisticNetwork) |
JLabel |
getStatus()
|
JTable |
getTable()
Returns the CPT JTable. |
Node |
getTableOwner()
|
JTextField |
getTxtDescription()
Returns the JTextField that has the node's description. |
JTextField |
getTxtName()
Returns the JTextField that has the node's name. |
boolean |
isBCompiled()
|
boolean |
isCompiled()
Retorna se a janela que esta aparecendo esta em modo de edicao(false) ou se ela esta em modo de compila__o(true). |
UnBBayesModule |
openFile(File file)
Opens a new desktop window into currently used java desktop |
void |
setAddRemoveStateButtonVisible(boolean visible)
|
void |
setBCompiled(boolean compiled)
|
void |
setCardLayout(CardLayout card)
|
void |
setController(NetworkController controller)
|
void |
setDistributionPane(JPanel distributionPane)
|
void |
setFileName(String fileName)
|
void |
setGraphPane(GraphPane graphPane)
|
void |
setGraphViewport(JViewport graphViewport)
|
void |
setJspGraph(JScrollPane jspGraph)
|
void |
setMode(Integer mode)
|
void |
setModuleName(String moduleName)
|
void |
setNet(Network net)
|
void |
setStatus(JLabel status)
|
void |
setStatus(String status)
Seta o status exibido na barra de status. |
void |
setTable(JTable table,
Node tableOwner)
Delegates to #getPnEditionPane()#setTable(JTable, Node) |
void |
setTableOwner(Node node)
|
void |
showProbabilityDistributionPanel(IProbabilityFunctionPanelBuilder builder)
This method builds a customized probability distribution panel (e.g. |
void |
updateTitle()
|
| Methods inherited from class unbbayes.util.extension.UnBBayesModule |
|---|
getModuleID, getSupportedFileExtensions, getSupportedFilesDescription, getUnbbayesFrame, setModuleID, setName, setUnbbayesFrame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Integer PN_MODE
| Constructor Detail |
|---|
protected NetworkWindow()
public NetworkWindow(Network net)
| Method Detail |
|---|
public void updateTitle()
public GraphPane getGraphPane()
GraphPane)GraphPanepublic EvidenceTree getEvidenceTree()
JTree)JTreepublic JViewport getGraphViewport()
JViewport), que
contem o grafo responsavel pela representacao grafica da rede.
JViewport)JViewportpublic JTable getTable()
JTable.
JTable.JTablepublic JTextField getTxtDescription()
JTextField that has the node's description.
JTextField that has the node's description.JTextFieldpublic JTextField getTxtName()
JTextField that has the node's name.
JTextField that has the node's name.JTextFieldpublic void setDistributionPane(JPanel distributionPane)
public void setTable(JTable table,
Node tableOwner)
#getPnEditionPane()#setTable(JTable, Node)
table - tableOwner - PNEditionPane.setTable(JTable, Node)public JScrollPane getJspGraph()
JScrollPane)JScrollPanepublic JScrollPane getJspTree()
JScrollPane)JScrollPanepublic Node getTableOwner()
public void setTableOwner(Node node)
public SingleEntityNetwork getSingleEntityNetwork()
(ProbabilisticNetwork)
ProbabilisticNetworkpublic void setStatus(String status)
status - mensagem de status.public void changeToPNCompilationPane()
public void changeToPNEvaluationPane(JPanel evaluationPane)
public void changeToPNEditionPane()
public void changeToHierarchy()
public void changeToEditNet()
public boolean isCompiled()
public PNEditionPane getNetWindowEdition()
PNEditionPane).
PNEditionPanepublic PNCompilationPane getNetWindowCompilation()
PNCompilationPane).
PNCompilationPanepublic HierarchicDefinitionPane getHierarchicDefinitionPanel()
public NetworkController getNetworkController()
public EditNet getEditNet()
public String getFileName()
public void setFileName(String fileName)
public void setAddRemoveStateButtonVisible(boolean visible)
public Integer getMode()
public void setMode(Integer mode)
mode - the mode to setpublic String getSavingMessage()
IPersistenceAwareWindow
getSavingMessage in interface IPersistenceAwareWindowgetSavingMessage in class UnBBayesModulepublic NetworkController getController()
public void setController(NetworkController controller)
controller - the controller to setpublic JInternalFrame getInternalFrame()
IPersistenceAwareWindow#getSupportedFileExtensions()
is opened by the user.
getInternalFrame in interface IPersistenceAwareWindowgetInternalFrame in class UnBBayesModuleJInternalFramepublic BaseIO getIO()
IPersistenceAwareWindow#getSupportedFileExtensions()
BaseIO#supportsExtension(String)public Graph getPersistingGraph()
IPersistenceAwareWindow
public String getModuleName()
UnBBayesModule
getModuleName in class UnBBayesModulepublic void setModuleName(String moduleName)
moduleName - the moduleName to set
public UnBBayesModule openFile(File file)
throws IOException
openFile in class UnBBayesModulefile - : the file to be opened
IOExceptionUnBBayesModule.openFile(java.io.File)public void showProbabilityDistributionPanel(IProbabilityFunctionPanelBuilder builder)
builder: - a panel builder handling a panel and its associated node. The probability
function panel's owner must be the currently selected node.public Network getNet()
public void setNet(Network net)
net - the net to setpublic CardLayout getCardLayout()
public void setCardLayout(CardLayout card)
card - the card to setpublic void setGraphViewport(JViewport graphViewport)
graphViewport - the graphViewport to setpublic void setGraphPane(GraphPane graphPane)
graphPane - the graphPane to setpublic void setJspGraph(JScrollPane jspGraph)
jspGraph - the jspGraph to setpublic boolean isBCompiled()
public void setBCompiled(boolean compiled)
compiled - the bCompiled to setpublic JLabel getStatus()
public void setStatus(JLabel status)
status - the status to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||