public class SOMTopicVisualizationPanel
extends javax.swing.JPanel
implements java.lang.Runnable, java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.KeyListener
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
private java.awt.RenderingHints |
antialiasHints |
static java.lang.String |
ASSOCIATE_TOPICS_IN_EVERY_CELL_TO_A_CELL_SPECIFIC_GROUP |
static java.lang.String |
ASSOCIATE_TOPICS_IN_SELECTED_CELLS_TO_A_GROUP |
private java.awt.Font |
cellFont |
private java.util.ArrayList<java.lang.String>[][] |
cellLabels |
private int |
cellSize |
static java.lang.String |
CLEAR_SELECTION |
static java.lang.String |
COPY_AS_IMAGE |
static java.lang.String |
COPY_CELL_NEURONS |
static java.lang.String |
COPY_CELL_TOPICS |
static java.lang.String |
COPY_CELL_TOPICS_VECTORS |
private java.awt.Font |
defaultFont |
static java.lang.String |
DESELECT_CELL |
private int |
fontSize |
private SOMMap |
map |
private int |
mapSize |
private java.lang.Object[] |
menuStruct |
private java.awt.RenderingHints |
metricsHints |
private java.awt.event.MouseEvent |
mouseEvent |
private javax.swing.JDialog |
parent |
static java.lang.String |
PERMUTATE_ALL_TOPICS_IN_SELECTED_CELLS |
static java.lang.String |
PERMUTATE_TOPICS_WITHIN_EVERY_CELL |
static java.lang.String |
PERMUTATE_TOPICS_WITHIN_SELECTED_CELLS |
private int |
progress |
private int |
progressMax |
private java.awt.RenderingHints |
qualityHints |
static java.lang.String |
SELECT_ALL_CELLS |
static java.lang.String |
SELECT_CELL |
private boolean[][] |
selectedCells |
private int |
shouldStop |
static java.lang.String |
SI_PREFIX |
private java.util.ArrayList<Tuples.T3<Topic,java.lang.Integer,java.lang.Integer>> |
topicLocations |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
SOMTopicVisualizationPanel() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent) |
void |
associateTopicsTogetherInCell(int x,
int y) |
void |
clearCellSelection() |
void |
deselectCell(int x,
int y) |
int |
getCellSize() |
boolean |
getCellState(int x,
int y) |
void |
getCellTopicsAsString(java.lang.StringBuilder sb,
int x,
int y) |
java.awt.Dimension |
getMaximumSize() |
java.awt.Dimension |
getMinimumSize() |
Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String basename) |
java.awt.Dimension |
getPreferredSize() |
java.lang.String |
getTopicLabel(Topic t) |
java.util.ArrayList<Topic> |
getTopicsInNearCells(int x,
int y) |
void |
getTopicVectorAsString(java.lang.StringBuffer sb,
int x,
int y) |
void |
groupAssociation(Topic topic,
java.lang.String groupTopicName) |
void |
groupTopicsInCell(java.lang.String groupName,
int x,
int y) |
void |
initialize(javax.swing.JDialog parent,
SOMMap map) |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
mouseClicked(java.awt.event.MouseEvent mouseEvent) |
void |
mouseDragged(java.awt.event.MouseEvent mouseEvent) |
void |
mouseEntered(java.awt.event.MouseEvent mouseEvent) |
void |
mouseExited(java.awt.event.MouseEvent mouseEvent) |
void |
mouseMoved(java.awt.event.MouseEvent mouseEvent) |
void |
mousePressed(java.awt.event.MouseEvent mouseEvent) |
void |
mouseReleased(java.awt.event.MouseEvent mouseEvent) |
void |
nearSimilarityAssociation(Topic player1,
Topic player2) |
void |
paint(java.awt.Graphics g) |
void |
run() |
void |
selectAllCells() |
void |
selectCell(int x,
int y) |
void |
setCellSize(int size) |
void |
shouldStop() |
void |
similarityAssociation(Topic player1,
Topic player2) |
void |
strongSimilarityAssociation(Topic player1,
Topic player2) |
void |
toggleCellSelection(int x,
int y) |
java.util.ArrayList<Topic> |
topicsInCell(int x,
int y) |
java.util.ArrayList<Topic> |
topicsInCellSelection() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, getNextFocusableComponent, getPopupLocation, 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, 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, updateadd, 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, validateTreeaction, 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, transferFocusUpCyclepublic static final java.lang.String SI_PREFIX
public static final java.lang.String ASSOCIATE_TOPICS_IN_EVERY_CELL_TO_A_CELL_SPECIFIC_GROUP
public static final java.lang.String ASSOCIATE_TOPICS_IN_SELECTED_CELLS_TO_A_GROUP
public static final java.lang.String PERMUTATE_TOPICS_WITHIN_EVERY_CELL
public static final java.lang.String PERMUTATE_TOPICS_WITHIN_SELECTED_CELLS
public static final java.lang.String PERMUTATE_ALL_TOPICS_IN_SELECTED_CELLS
public static final java.lang.String COPY_AS_IMAGE
public static final java.lang.String COPY_CELL_TOPICS_VECTORS
public static final java.lang.String COPY_CELL_TOPICS
public static final java.lang.String COPY_CELL_NEURONS
public static final java.lang.String SELECT_CELL
public static final java.lang.String DESELECT_CELL
public static final java.lang.String SELECT_ALL_CELLS
public static final java.lang.String CLEAR_SELECTION
private javax.swing.JDialog parent
private int shouldStop
private SOMMap map
private java.util.ArrayList<Tuples.T3<Topic,java.lang.Integer,java.lang.Integer>> topicLocations
private java.util.ArrayList<java.lang.String>[][] cellLabels
private boolean[][] selectedCells
private int cellSize
private int fontSize
private java.awt.Font cellFont
private java.awt.Font defaultFont
private int mapSize
private int progress
private int progressMax
private java.awt.event.MouseEvent mouseEvent
private java.lang.Object[] menuStruct
private java.awt.RenderingHints qualityHints
private java.awt.RenderingHints antialiasHints
private java.awt.RenderingHints metricsHints
public void initialize(javax.swing.JDialog parent,
SOMMap map)
public void setCellSize(int size)
public int getCellSize()
public void shouldStop()
public java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic java.awt.Dimension getMaximumSize()
getMaximumSize in class javax.swing.JComponentpublic void paint(java.awt.Graphics g)
paint in class javax.swing.JComponentpublic java.lang.String getTopicLabel(Topic t)
public void run()
run in interface java.lang.Runnablepublic void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed in interface java.awt.event.ActionListenerpublic void associateTopicsTogetherInCell(int x,
int y)
public void groupTopicsInCell(java.lang.String groupName,
int x,
int y)
public void getCellTopicsAsString(java.lang.StringBuilder sb,
int x,
int y)
public void getTopicVectorAsString(java.lang.StringBuffer sb,
int x,
int y)
public java.util.ArrayList<Topic> getTopicsInNearCells(int x, int y)
public java.util.ArrayList<Topic> topicsInCellSelection()
public java.util.ArrayList<Topic> topicsInCell(int x, int y)
public Topic getOrCreateTopic(TopicMap tm, java.lang.String basename) throws TopicMapException
TopicMapExceptionpublic void groupAssociation(Topic topic, java.lang.String groupTopicName)
public void selectCell(int x,
int y)
public void deselectCell(int x,
int y)
public void toggleCellSelection(int x,
int y)
public void clearCellSelection()
public void selectAllCells()
public boolean getCellState(int x,
int y)
public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent mouseEvent)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent mouseEvent)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent mouseEvent)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent mouseEvent)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent mouseEvent)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent mouseEvent)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerCopyright 2004-2015 Wandora Team