|
|||||||||
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
uk.ac.starlink.datanode.tree.TreeNodeChooser
uk.ac.starlink.datanode.tree.NdxNodeChooser
public class NdxNodeChooser
TreeNodeChooser subclass designed to return Ndx
objects.
Nested Class Summary |
---|
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 |
---|
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 | |
---|---|
NdxNodeChooser()
Constructs a new chooser. |
Method Summary | |
---|---|
Ndx |
chooseNdx(Component parent)
Pops up a modal dialog to choose an NDX from this chooser, with default characteristics. |
Ndx |
chooseNdx(Component parent,
String buttonText,
String title)
Pops up a modal dialog to choose an NDX from this chooser. |
DataNodeFactory |
getNodeMaker()
Returns the DataNodeFactory which is used for turning objects into data nodes. |
protected boolean |
isChoosable(DataNode node)
Allows selection of any node which can supply an NDX which fits the dimensionality constraints of this chooser. |
Ndx |
makeNdx(DataNode node)
Turns a DataNode into an NDX. |
void |
setMaxDims(int maxDims)
Sets the maximum dimensionality that an NDX must have to qualify for choosability. |
void |
setMinDims(int minDims)
Sets the minimum dimensionality that an NDX must have to qualify for choosability. |
void |
setRoot(DataNode root)
Sets the root of the tree to a new node, possibly one not already in the tree. |
Methods inherited from class uk.ac.starlink.datanode.tree.TreeNodeChooser |
---|
chooseDataNode, clear, createDialog, getButtonPanel, getChooseAction, getChosenPath, getRoot, getRootSelector, getSearchAllAction, getSearchSelectedAction, getSelectedNode, selectNode, setControlsVisible, setNodeMaker, setRootObject, showAllChoosable, showNodeDetail, valueChanged |
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 |
Constructor Detail |
---|
public NdxNodeChooser()
Method Detail |
---|
public void setRoot(DataNode root)
TreeNodeChooser
setRoot
in class TreeNodeChooser
root
- new rootpublic DataNodeFactory getNodeMaker()
TreeNodeChooser
getNodeMaker
in class TreeNodeChooser
public void setMinDims(int minDims)
minDims
- minimum acceptable dimensionalitypublic void setMaxDims(int maxDims)
maxDims
- maximum acceptable dimensionalityprotected boolean isChoosable(DataNode node)
isChoosable
in class TreeNodeChooser
node
- the node to test for choosability
public Ndx chooseNdx(Component parent, String buttonText, String title)
parent
- the parent component for the dialogbuttonText
- the text to appear on the 'choose' buttontitle
- the title of the dialog window
public Ndx chooseNdx(Component parent)
parent
- the parent component for the dialog
public Ndx makeNdx(DataNode node) throws IOException
node
- the data node
IOException
- if there's trouble
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |