Author: mes
Date: 2012-04-20 16:53:11 -0700 (Fri, 20 Apr 2012)
New Revision: 28939
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/BasicCollapsiblePanel.java
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/ColumnResizer.java
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/JTreeTable.java
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/OpenBrowserImpl.java
Log:
updated javadoc
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/BasicCollapsiblePanel.java
===================================================================
---
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/BasicCollapsiblePanel.java
2012-04-20 23:49:06 UTC (rev 28938)
+++
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/BasicCollapsiblePanel.java
2012-04-20 23:53:11 UTC (rev 28939)
@@ -422,8 +422,9 @@
}
}
- /** Sets the tooltip text of this BasicCollapsiblePanel.
- * @param The string to set as the tooltip.
+ /**
+ * Sets the tooltip text of this BasicCollapsiblePanel.
+ * @param text The string to set as the tooltip.
*/
public void setToolTipText(String text)
{
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/ColumnResizer.java
===================================================================
---
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/ColumnResizer.java
2012-04-20 23:49:06 UTC (rev 28938)
+++
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/ColumnResizer.java
2012-04-20 23:53:11 UTC (rev 28939)
@@ -59,7 +59,11 @@
private ColumnResizer() {}
-
+
+ /**
+ * Adjust the columns in the table to their preferred widths.
+ * @param table The table whose columns should be adjusted.
+ */
public static void adjustColumnPreferredWidths(JTable table) {
// strategy - get max width for cells in column and
// make that the preferred width
@@ -74,12 +78,10 @@
Component comp =
rend.getTableCellRendererComponent(table, value, false, false,
row, col);
maxwidth =
Math.max(comp.getPreferredSize().width, maxwidth);
- } // for row
+ }
- /*
- * this version of the width set considers the column
header's
- * preferred width too
- */
+ // this version of the width set considers the column
header's
+ // preferred width too
TableColumn column = columnModel.getColumn(col);
TableCellRenderer headerRenderer =
column.getHeaderRenderer();
@@ -91,14 +93,12 @@
false, false, 0, col);
maxwidth = Math.max(maxwidth,
headerComp.getPreferredSize().width);
- /*
- * If the value is too big, adjust to fixed maximum val.
- */
+ // If the value is too big, adjust to fixed maximum val.
if (DEFLMAX_WIDTH < maxwidth) {
maxwidth = DEFLMAX_WIDTH;
}
column.setPreferredWidth(maxwidth + 20);
- } // for col
+ }
}
}
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/JTreeTable.java
===================================================================
---
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/JTreeTable.java
2012-04-20 23:49:06 UTC (rev 28938)
+++
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/JTreeTable.java
2012-04-20 23:53:11 UTC (rev 28939)
@@ -206,7 +206,7 @@
/**
* Constructs this TreeTabelCellRenderer.
- * @param model DOCUMENT ME!
+ * @param model The tree table model to be rendered.
*/
public TreeTableCellRenderer(TreeModel model) {
super(model);
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/OpenBrowserImpl.java
===================================================================
---
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/OpenBrowserImpl.java
2012-04-20 23:49:06 UTC (rev 28938)
+++
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/internal/OpenBrowserImpl.java
2012-04-20 23:53:11 UTC (rev 28939)
@@ -72,9 +72,9 @@
}
/**
- * DOCUMENT ME!
- *
- * @param url DOCUMENT ME!
+ * Opens the specified URL in the system default web browser.
+ * @param url The URL to open
+ * @return true if the URL opens successfully.
*/
public boolean openURL(String url) {
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.