|
|||||||||
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.JPanel
cytoscape.visual.ui.VizMapTab
cytoscape.visual.ui.VizMapAttrTab
public class VizMapAttrTab
VizMapAttrTab implements a tab for each mappable attribute of the graph except the size tab, which is a special case. These tabs are displayed in the Set Visual Properties dialog.
Nested Class Summary | |
---|---|
protected class |
VizMapAttrTab.CalculatorUIListener
CalculatorUIListener listens to the current calculator for the visual attribute displayed by this tab. |
protected class |
VizMapAttrTab.TabContainerListener
TabContainerListener refreshes the tab's UI when the tab becomes visible. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected VizMapAttrTab.CalculatorUIListener |
calcListener
Listener for calculator UI changes |
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 | |
---|---|
VizMapAttrTab(VizMapUI mainUI,
JTabbedPane tabContainer,
int tabIndex,
VisualMappingManager VMM,
byte type)
create a new tab representing the underlying type. |
Method Summary | |
---|---|
protected void |
drawCalc()
Draws the panel containing the calculator selection combo box and the calculator manipulation buttons. |
protected void |
drawDefault(Object defaultObj)
Builds the panel for displaying and changing the default value for this visual attribute. |
protected ImageIcon |
getImageIcon()
Returns an ImageIcon suitable for this visual attribute, or null if we don't have an icon for this particular visual attribute. |
protected static String |
getTypeName(byte type)
|
protected void |
rebuildCalcComboBox()
Creates the combo box for selecting a calculator and adds it to the appropriate panel after first removing any previous combo box. |
void |
refreshUI()
Refreshes the panel that displays the UI for the currently selected calculator. |
protected void |
setCurrentCalculator(Calculator newCalculator)
Changes the 'currentCalculator' field of this class to the new calculator specified by the argument. |
void |
visualStyleChanged()
Alert the VizMapAttrTab that the relevant visual style has changed. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected VizMapAttrTab.CalculatorUIListener calcListener
Constructor Detail |
---|
public VizMapAttrTab(VizMapUI mainUI, JTabbedPane tabContainer, int tabIndex, VisualMappingManager VMM, byte type)
VMM
- VisualMappingManager for the windowtabContainer
- The containing JTabbedPanetabIndex
- index of this tab in tabContainern
- Underlying networktype
- One of types defined in VisualMappingManager
c
- Method Detail |
---|
public void visualStyleChanged()
visualStyleChanged
in class VizMapTab
public void refreshUI()
refreshUI
in class VizMapTab
protected void setCurrentCalculator(Calculator newCalculator)
protected void drawDefault(Object defaultObj)
protected ImageIcon getImageIcon()
protected void rebuildCalcComboBox()
protected void drawCalc()
protected static String getTypeName(byte type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |