public class AssetWeightPanel
extends javax.swing.JPanel
Modifier and Type | Class and Description |
---|---|
(package private) class |
AssetWeightPanel.TopicWeightTable |
(package private) class |
AssetWeightPanel.TopicWeightTableModel |
(package private) class |
AssetWeightPanel.TopicWeightTableRowSorter |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
private javax.swing.JButton |
addFollowWeightTypeButton |
private javax.swing.JButton |
addPartialWeightTypeButton |
private Wandora |
app |
private javax.swing.JDialog |
assetWeightDialog |
private javax.swing.JTabbedPane |
assetWeightTabbedPane |
private double |
averageNormalizedWeight |
private double |
averageWeight |
private javax.swing.JPanel |
buttonFillerPanel |
private javax.swing.JPanel |
buttonPanel |
private javax.swing.JButton |
calculateButton |
private javax.swing.JButton |
closeButton |
private double |
coefficient |
private javax.swing.JLabel |
coefficientLabel |
private javax.swing.JPanel |
coefficientPanel |
private javax.swing.JTextField |
coefficientTextField |
private javax.swing.JButton |
copyResultsButton |
private double |
defaultFollowWeightOfAssociation |
private javax.swing.JTextField |
defaultFollowWeightOfAssociationTextField |
private double |
defaultPartialWeightOfAssociation |
private javax.swing.JTextField |
defaultPartialWeightOfAssociationTextField |
private double |
defaultPartialWeightOfOccurrence |
private javax.swing.JTextField |
defaultPartialWeightOfOccurrenceTextField |
private boolean |
followAllAssociations |
private javax.swing.JCheckBox |
followAllAssociationsCheckBox |
private javax.swing.JPanel |
followAssociationsPanel |
private boolean |
followClasses |
private javax.swing.JCheckBox |
followClassesCheckBox |
private javax.swing.JPanel |
followClassesPanel |
private boolean |
followInstances |
private javax.swing.JCheckBox |
followInstancesCheckBox |
private javax.swing.JPanel |
followInstancesPanel |
private boolean |
followNaryAssociations |
private javax.swing.JCheckBox |
followNaryAssociationsCheckBox |
private javax.swing.JLabel |
followOptionsLabel |
private javax.swing.JPanel |
followOptionsPanel |
private javax.swing.JPanel |
followOptionsPanelPanelInner |
private double |
followWeightOfClass |
private javax.swing.JTextField |
followWeightOfClassTextField |
private double |
followWeightOfInstance |
private javax.swing.JTextField |
followWeightOfInstanceTextField |
private javax.swing.JPanel |
followWeightsButtonPanel |
private javax.swing.JPanel |
followWeightsPanel |
private javax.swing.JPanel |
followWeightsPanelInner |
private java.util.HashMap<Topic,java.lang.Double> |
followWeightTypes |
private AssetWeightPanel.TopicWeightTable |
followWeightTypesTable |
private javax.swing.JPanel |
followWeightTypesTablePanel |
private javax.swing.JScrollPane |
followWeightTypesTableScrollPane |
private boolean |
includeAllAssociations |
private boolean |
includeAllOccurrences |
private javax.swing.JCheckBox |
includeAssociationsCheckBox |
private javax.swing.JPanel |
includeAssociationsPanel |
private boolean |
includeClasses |
private javax.swing.JCheckBox |
includeClassesCheckBox |
private javax.swing.JPanel |
includeClassesPanel |
private boolean |
includeInstances |
private javax.swing.JCheckBox |
includeInstancesCheckBox |
private javax.swing.JPanel |
includeInstancesPanel |
private javax.swing.JCheckBox |
includeOccurrencesCheckBox |
private javax.swing.JPanel |
includeOccurrencesPanel |
private javax.swing.JLabel |
initialPartialWeightLabel |
private double |
initialPartialWeightOfATopic |
private javax.swing.JPanel |
initialPartialWeightPanel |
private javax.swing.JTextField |
initialPartialWeightTextField |
private javax.swing.JLabel |
introductionLabel |
private javax.swing.JPanel |
introductionPanel |
private javax.swing.JPanel |
introductionPanelInner |
private javax.swing.JPanel |
jPanel1 |
private javax.swing.JPanel |
jPanel2 |
private javax.swing.JPanel |
jPanel3 |
private javax.swing.JPanel |
jPanel4 |
private java.util.HashMap<Topic,java.lang.Double> |
neighborhoodWeights |
private javax.swing.JToggleButton |
normalizeButton |
private java.util.HashMap<Topic,java.lang.Double> |
normalizedTotalTopicWeights |
private double |
partialWeightOfClass |
private javax.swing.JTextField |
partialWeightOfClassTextField |
private double |
partialWeightOfInstance |
private javax.swing.JTextField |
partialWeightOfinstanceTextField |
private javax.swing.JLabel |
partialWeightOptionsLabel |
private javax.swing.JPanel |
partialWeightOptionsPanel |
private javax.swing.JPanel |
partialWeightOptionsPanelInner |
private java.util.HashMap<Topic,java.lang.Double> |
partialWeights |
private javax.swing.JPanel |
partialWeightsPanel |
private java.util.HashMap<Topic,java.lang.Double> |
partialWeightTypes |
private javax.swing.JPanel |
partialWeightTypesButtonPanel |
private javax.swing.JPanel |
partialWeightTypesPanelInner |
private AssetWeightPanel.TopicWeightTable |
partialWeightTypesTable |
private javax.swing.JPanel |
partialWeightTypesTablePanel |
private javax.swing.JScrollPane |
partialWeightTypesTableScrollPane |
private javax.swing.JButton |
removeFollowWeightTypeButton |
private javax.swing.JButton |
removePartialWeightTypeButton |
private javax.swing.JPanel |
resultsButtonPanel |
private javax.swing.JLabel |
resultsInfoLabel |
private javax.swing.JPanel |
resultsPanel |
private javax.swing.JPanel |
resultsPanelInner |
private AssetWeightPanel.TopicWeightTable |
resultsTable |
private javax.swing.JPanel |
resultsTablePanel |
private javax.swing.JScrollPane |
resultsTableScrollPane |
private TopicMap |
tm |
private java.util.Collection<Topic> |
topics |
private java.util.HashMap<Topic,java.lang.Double> |
totalTopicWeights |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
AssetWeightPanel(Wandora application,
java.util.Collection<Topic> topics)
Creates new form AssetWeightPanel
|
Modifier and Type | Method and Description |
---|---|
private void |
addFollowWeightTypeButtonMouseReleased(java.awt.event.MouseEvent evt) |
private void |
addPartialWeightTypeButtonMouseReleased(java.awt.event.MouseEvent evt) |
void |
calculate() |
void |
calculateAndUpdate() |
private void |
calculateButtonMouseReleased(java.awt.event.MouseEvent evt) |
private double |
calculateNeighborhoodWeight(Topic topic,
TopicMap tm) |
private double |
calculatePartialWeight(Topic topic) |
void |
close() |
private void |
closeButtonMouseReleased(java.awt.event.MouseEvent evt) |
private void |
copyResultsButtonMouseReleased(java.awt.event.MouseEvent evt) |
double |
getCoefficient() |
double |
getDefaultFollowWeightOfAssociation() |
double |
getDefaultPartialWeightOfAssociation() |
double |
getDefaultPartialWeightOfOccurrence() |
private double |
getFollowWeightForType(Topic type) |
double |
getFollowWeightOfClass() |
double |
getFollowWeightOfInstance() |
double |
getInitialPartialWeight() |
private double |
getNeighborhoodWeight(Topic topic,
TopicMap tm) |
private double |
getPartialWeight(Topic topic) |
private double |
getPartialWeightForAssociationType(Topic type) |
private double |
getPartialWeightForOccurrenceType(Topic type) |
double |
getPartialWeightOfClass() |
double |
getPartialWeightOfInstance() |
private void |
initComponents()
This method is called from within the constructor to
initialize the form.
|
private void |
normalizeButtonMouseReleased(java.awt.event.MouseEvent evt) |
void |
open(java.lang.String title,
TopicMap topicMap) |
private void |
removeFollowWeightTypeButtonMouseReleased(java.awt.event.MouseEvent evt) |
private void |
removePartialWeightTypeButtonMouseReleased(java.awt.event.MouseEvent evt) |
void |
setTopics(java.util.Collection<Topic> topics) |
private void |
updateResultsInfo(double average) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
private javax.swing.JDialog assetWeightDialog
private Wandora app
private java.util.Collection<Topic> topics
private TopicMap tm
private AssetWeightPanel.TopicWeightTable followWeightTypesTable
private AssetWeightPanel.TopicWeightTable partialWeightTypesTable
private AssetWeightPanel.TopicWeightTable resultsTable
private java.util.HashMap<Topic,java.lang.Double> followWeightTypes
private java.util.HashMap<Topic,java.lang.Double> partialWeightTypes
private java.util.HashMap<Topic,java.lang.Double> partialWeights
private java.util.HashMap<Topic,java.lang.Double> neighborhoodWeights
private java.util.HashMap<Topic,java.lang.Double> totalTopicWeights
private java.util.HashMap<Topic,java.lang.Double> normalizedTotalTopicWeights
private javax.swing.JButton addFollowWeightTypeButton
private javax.swing.JButton addPartialWeightTypeButton
private javax.swing.JTabbedPane assetWeightTabbedPane
private javax.swing.JPanel buttonFillerPanel
private javax.swing.JPanel buttonPanel
private javax.swing.JButton calculateButton
private javax.swing.JButton closeButton
private javax.swing.JLabel coefficientLabel
private javax.swing.JPanel coefficientPanel
private javax.swing.JTextField coefficientTextField
private javax.swing.JButton copyResultsButton
private javax.swing.JTextField defaultFollowWeightOfAssociationTextField
private javax.swing.JTextField defaultPartialWeightOfAssociationTextField
private javax.swing.JTextField defaultPartialWeightOfOccurrenceTextField
private javax.swing.JCheckBox followAllAssociationsCheckBox
private javax.swing.JPanel followAssociationsPanel
private javax.swing.JCheckBox followClassesCheckBox
private javax.swing.JPanel followClassesPanel
private javax.swing.JCheckBox followInstancesCheckBox
private javax.swing.JPanel followInstancesPanel
private javax.swing.JCheckBox followNaryAssociationsCheckBox
private javax.swing.JLabel followOptionsLabel
private javax.swing.JPanel followOptionsPanel
private javax.swing.JPanel followOptionsPanelPanelInner
private javax.swing.JTextField followWeightOfClassTextField
private javax.swing.JTextField followWeightOfInstanceTextField
private javax.swing.JPanel followWeightTypesTablePanel
private javax.swing.JScrollPane followWeightTypesTableScrollPane
private javax.swing.JPanel followWeightsButtonPanel
private javax.swing.JPanel followWeightsPanel
private javax.swing.JPanel followWeightsPanelInner
private javax.swing.JCheckBox includeAssociationsCheckBox
private javax.swing.JPanel includeAssociationsPanel
private javax.swing.JCheckBox includeClassesCheckBox
private javax.swing.JPanel includeClassesPanel
private javax.swing.JCheckBox includeInstancesCheckBox
private javax.swing.JPanel includeInstancesPanel
private javax.swing.JCheckBox includeOccurrencesCheckBox
private javax.swing.JPanel includeOccurrencesPanel
private javax.swing.JLabel initialPartialWeightLabel
private javax.swing.JPanel initialPartialWeightPanel
private javax.swing.JTextField initialPartialWeightTextField
private javax.swing.JLabel introductionLabel
private javax.swing.JPanel introductionPanel
private javax.swing.JPanel introductionPanelInner
private javax.swing.JPanel jPanel1
private javax.swing.JPanel jPanel2
private javax.swing.JPanel jPanel3
private javax.swing.JPanel jPanel4
private javax.swing.JToggleButton normalizeButton
private javax.swing.JTextField partialWeightOfClassTextField
private javax.swing.JTextField partialWeightOfinstanceTextField
private javax.swing.JLabel partialWeightOptionsLabel
private javax.swing.JPanel partialWeightOptionsPanel
private javax.swing.JPanel partialWeightOptionsPanelInner
private javax.swing.JPanel partialWeightTypesButtonPanel
private javax.swing.JPanel partialWeightTypesPanelInner
private javax.swing.JPanel partialWeightTypesTablePanel
private javax.swing.JScrollPane partialWeightTypesTableScrollPane
private javax.swing.JPanel partialWeightsPanel
private javax.swing.JButton removeFollowWeightTypeButton
private javax.swing.JButton removePartialWeightTypeButton
private javax.swing.JPanel resultsButtonPanel
private javax.swing.JLabel resultsInfoLabel
private javax.swing.JPanel resultsPanel
private javax.swing.JPanel resultsPanelInner
private javax.swing.JPanel resultsTablePanel
private javax.swing.JScrollPane resultsTableScrollPane
private double initialPartialWeightOfATopic
private double defaultPartialWeightOfAssociation
private double defaultPartialWeightOfOccurrence
private double partialWeightOfClass
private double partialWeightOfInstance
private boolean includeAllOccurrences
private boolean includeAllAssociations
private boolean includeClasses
private boolean includeInstances
private double defaultFollowWeightOfAssociation
private double followWeightOfClass
private double followWeightOfInstance
private double coefficient
private boolean followAllAssociations
private boolean followClasses
private boolean followInstances
private boolean followNaryAssociations
private double averageWeight
private double averageNormalizedWeight
public void open(java.lang.String title, TopicMap topicMap)
public void close()
public void setTopics(java.util.Collection<Topic> topics)
private void updateResultsInfo(double average)
private void initComponents()
private void addFollowWeightTypeButtonMouseReleased(java.awt.event.MouseEvent evt)
private void addPartialWeightTypeButtonMouseReleased(java.awt.event.MouseEvent evt)
private void closeButtonMouseReleased(java.awt.event.MouseEvent evt)
private void calculateButtonMouseReleased(java.awt.event.MouseEvent evt)
private void normalizeButtonMouseReleased(java.awt.event.MouseEvent evt)
private void copyResultsButtonMouseReleased(java.awt.event.MouseEvent evt)
private void removePartialWeightTypeButtonMouseReleased(java.awt.event.MouseEvent evt)
private void removeFollowWeightTypeButtonMouseReleased(java.awt.event.MouseEvent evt)
public void calculateAndUpdate()
public void calculate() throws TopicMapException
TopicMapException
private double getNeighborhoodWeight(Topic topic, TopicMap tm) throws TopicMapException
TopicMapException
private double calculateNeighborhoodWeight(Topic topic, TopicMap tm) throws TopicMapException
TopicMapException
private double getFollowWeightForType(Topic type)
private double getPartialWeight(Topic topic) throws TopicMapException
TopicMapException
private double calculatePartialWeight(Topic topic) throws TopicMapException
TopicMapException
private double getPartialWeightForAssociationType(Topic type)
private double getPartialWeightForOccurrenceType(Topic type)
public double getInitialPartialWeight()
public double getPartialWeightOfClass()
public double getPartialWeightOfInstance()
public double getDefaultPartialWeightOfAssociation()
public double getDefaultPartialWeightOfOccurrence()
public double getDefaultFollowWeightOfAssociation()
public double getFollowWeightOfClass()
public double getFollowWeightOfInstance()
public double getCoefficient()
Copyright 2004-2015 Wandora Team