de.sciss.treetable.j.ui.TreeInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtreetable Show documentation
Show all versions of jtreetable Show documentation
A TreeTable component for Swing
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
package de.sciss.treetable.j.ui;
import java.awt.Rectangle;
import java.beans.PropertyChangeListener;
import java.util.Enumeration;
import javax.swing.Scrollable;
import javax.swing.event.TreeExpansionListener;
import javax.swing.event.TreeWillExpandListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import javax.swing.tree.TreeSelectionModel;
public interface TreeInterface extends Scrollable {
public void setModel(TreeModel model);
public Enumeration getExpandedDescendants(TreePath parent);
public void collapsePath(TreePath path);
public void expandPath(TreePath path);
public void makeVisible(TreePath path);
public void scrollPathToVisible(TreePath path);
public Rectangle getPathBounds(TreePath path);
public TreePath getClosestPathForLocation(int x, int y);
public TreePath getPathForLocation(int x, int y);
public TreePath getPathForRow(int row);
public int getRowCount();
public int getClosestRowForLocation(int x, int y);
public int getRowForLocation(int x, int y);
public int getRowForPath(TreePath path);
public boolean isCollapsed(TreePath path);
public boolean isExpanded(TreePath path);
public boolean hasBeenExpanded(TreePath path);
public boolean isFixedRowHeight();
public boolean isLargeModel();
public void setLargeModel(boolean largeModel);
public boolean isRootVisible();
public void setRootVisible(boolean rootVisible);
public boolean getScrollsOnExpand();
public void setScrollsOnExpand(boolean scrollsOnExpand);
public boolean getShowsRootHandles();
public void setShowsRootHandles(boolean newValue);
public void setToggleClickCount(int clickCount);
public int getToggleClickCount();
public int getVisibleRowCount();
public void setVisibleRowCount(int newCount);
public int getRowHeight();
public void setRowHeight(int rowHeight);
public TreeSelectionModel getSelectionModel();
public void setSelectionModel(TreeSelectionModel selectionModel);
public void clearSelection();
public boolean isSelectionEmpty();
public int getSelectionCount();
public int getMaxSelectionRow();
public int getMinSelectionRow();
public boolean isPathSelected(TreePath path);
public TreePath getAnchorSelectionPath();
public void setAnchorSelectionPath(TreePath newPath);
public TreePath getLeadSelectionPath();
public void setLeadSelectionPath(TreePath newPath);
public int getLeadSelectionRow();
public boolean getExpandsSelectedPaths();
public void setExpandsSelectedPaths(boolean newValue);
public TreePath getSelectionPath();
public void addSelectionInterval(int index0, int index1);
public void addSelectionPath(TreePath path);
public void addSelectionPaths(TreePath[] paths);
public void addSelectionRows(int[] rows);
public void removeSelectionInterval(int index0, int index1);
public void removeSelectionPath(TreePath path);
public void removeSelectionPaths(TreePath[] paths);
public void removeSelectionRows(int[] rows);
public void setSelectionPath(TreePath path);
public TreePath[] getSelectionPaths();
public void setSelectionPaths(TreePath[] paths);
public int[] getSelectionRows();
public void setSelectionRows(int[] rows);
public void setSelectionInterval(int index0, int index1);
public void addPropertyChangeListener(PropertyChangeListener l);
public void removePropertyChangeListener(PropertyChangeListener l);
public void addTreeExpansionListener(TreeExpansionListener l);
public void removeTreeExpansionListener(TreeExpansionListener l);
public void addTreeWillExpandListener(TreeWillExpandListener l);
public void removeTreeWillExpandListener(TreeWillExpandListener l);
public void doLayout();
}