|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel infomat.view.vector.IVectorPanel<T>
public class IVectorPanel<T extends IVectorIndex>
A JPanel that presents the content of a IVector. It gives the user several means of processing the content. There are a number of methods with names beginning with "set" that defines what of these methods are presented.
Nested Class Summary | |
---|---|
private class |
IVectorPanel.NumberOfItemsPanel
|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
IVectorPanel(InfomatModel model)
|
|
IVectorPanel(InfomatModel model,
boolean selectable,
boolean fileable)
|
|
IVectorPanel(InfomatModel model,
boolean selectable,
IObjectGroup restrictionGroup)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addIVector(IVector<T> vec)
Only used in the search-function. |
void |
changeIVector(IVector<T> vec)
|
java.awt.Font |
getFont()
|
int |
getFontSize()
|
IVector<T> |
getIVector()
|
boolean |
getOrderable()
|
private IVector<T> |
getOriginalIVector()
|
java.util.Vector<T> |
getSelectedIVectorIndexes()
|
protected ISimilarity |
getSimilarity()
|
void |
initateGraphics()
|
private void |
load()
|
private void |
putAll()
|
private void |
removeObjsFromVec(java.util.Vector<T> rm,
IVector<T> vec)
|
void |
save()
|
void |
setFileable(boolean fileable)
|
private void |
setFileChooser()
|
void |
setFilePath(java.lang.String filePath)
|
void |
setIVector(IVector<T> vec)
|
private void |
setIVector(IVector<T> vec,
IVector<T> originalVec)
|
void |
setLoadSave(boolean loadable,
boolean saveable)
|
void |
setOrderable(boolean orderable)
|
void |
setRestrictionGroup(IObjectGroup restrictionGroup)
|
void |
setSelectable(boolean selectable)
|
void |
setShowValues(boolean showValues)
|
void |
setSimilarity(ISimilarity similarity)
Only works when the IVectorIndex:es are IObjects. |
void |
setTextFileable(boolean textFileable)
|
void |
setTextFilePath(java.lang.String textFilePath)
|
void |
setTextLoadSave(boolean textLoadable,
boolean textSaveable)
|
void |
setTXTStopFiles(Stoplist stoplist)
|
void |
setXMLFiles()
|
private void |
showMessage(java.lang.String title,
java.lang.String message)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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 |
Methods inherited from class java.awt.Container |
---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
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, 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, hide, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private InfomatModel model
private IVector<T extends IVectorIndex> originalVec
private IVector<T extends IVectorIndex> vec
private java.util.Vector<IVectorIndexPanel<T extends IVectorIndex>> panelVec
private boolean selectable
private SmallButton selAllB
private SmallButton deselAllB
private SmallButton invSelB
private SmallButton rmB
private boolean fileable
private SmallButton loadB
private SmallButton saveB
private boolean loadable
private boolean saveable
private java.lang.String fileChooserPath
private javax.swing.JFileChooser fileChooser
private int fileType
private boolean textFileable
private SmallButton textLoadB
private SmallButton textSaveB
private boolean textLoadable
private boolean textSaveable
private java.lang.String textFileChooserPath
private javax.swing.JFileChooser textFileChooser
private boolean orderable
private SmallButton normOB
private ActionSelectionPanel orderActionSelectionPanel
private static java.lang.String[] orderActionSelectionNames
private static java.lang.String[] orderActionSelectionNamesNoSimilarity
private ActionSelectionPanel selectionActionSelectionPanel
private static java.lang.String[] selectionActionSelectionNames
private IVectorPanel.NumberOfItemsPanel numberOfItemsPanel
private boolean showValues
private Stoplist stoplist
private IObjectGroup restrictionGroup
private ISimilarity similarity
private int fontSize
private java.awt.Font font
Constructor Detail |
---|
public IVectorPanel(InfomatModel model)
public IVectorPanel(InfomatModel model, boolean selectable, boolean fileable)
public IVectorPanel(InfomatModel model, boolean selectable, IObjectGroup restrictionGroup)
Method Detail |
---|
private void setFileChooser()
public void setXMLFiles()
public void setTXTStopFiles(Stoplist stoplist)
public void setSelectable(boolean selectable)
public void setFileable(boolean fileable)
public void setLoadSave(boolean loadable, boolean saveable)
public void setFilePath(java.lang.String filePath)
public void setTextFileable(boolean textFileable)
public void setTextLoadSave(boolean textLoadable, boolean textSaveable)
public void setTextFilePath(java.lang.String textFilePath)
public void setOrderable(boolean orderable)
public boolean getOrderable()
public void setShowValues(boolean showValues)
public void setRestrictionGroup(IObjectGroup restrictionGroup)
public void setSimilarity(ISimilarity similarity)
protected ISimilarity getSimilarity()
public int getFontSize()
public java.awt.Font getFont()
getFont
in interface java.awt.MenuContainer
getFont
in class java.awt.Component
public void initateGraphics()
public void setIVector(IVector<T> vec)
public void addIVector(IVector<T> vec)
public void changeIVector(IVector<T> vec)
private void setIVector(IVector<T> vec, IVector<T> originalVec)
public IVector<T> getIVector()
private IVector<T> getOriginalIVector()
private void putAll()
public java.util.Vector<T> getSelectedIVectorIndexes()
private void removeObjsFromVec(java.util.Vector<T> rm, IVector<T> vec)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
private void load()
public void save()
private void showMessage(java.lang.String title, java.lang.String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |