Author: abeld
Date: 2009-04-15 12:12:58 -0700 (Wed, 15 Apr 2009)
New Revision: 16585
Removed:
core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/ViewColumn.java
Modified:
core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/CyNetworkView.java
Log:
make edit-views branch of viewmodel-api row-oriented: remove ViewColumn
Modified:
core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/CyNetworkView.java
===================================================================
---
core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/CyNetworkView.java
2009-04-15 18:57:50 UTC (rev 16584)
+++
core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/CyNetworkView.java
2009-04-15 19:12:58 UTC (rev 16585)
@@ -87,9 +87,6 @@
*/
List<View<? extends GraphObject>> getAllViews();
- <T> ViewColumn<T> getColumn(final VisualProperty<? extends T> vp);
-
-
// temp methods
void fitContent();
void fitSelected();
Deleted:
core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/ViewColumn.java
===================================================================
---
core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/ViewColumn.java
2009-04-15 18:57:50 UTC (rev 16584)
+++
core3/viewmodel-api/branches/edit-views/src/main/java/org/cytoscape/view/model/ViewColumn.java
2009-04-15 19:12:58 UTC (rev 16585)
@@ -1,63 +0,0 @@
-package org.cytoscape.view.model;
-
-import java.util.List;
-import java.util.Map;
-
-import org.cytoscape.view.model.View;
-
-/**
- * A column in the viewmodel table
- * @param <T> the data type of the VisualProperty this belongs to
- */
-public interface ViewColumn<T> {
-
- Class<T> getDataType();
- /**
- *
- * @param view the "row" value of which to return
- * @return the value
- */
- T getValue(View<?> view);
-
- /**
- *
- * Sets the computed value for the given view. Note that using this
method
- * for setting many values will be horribly inefficient. Use setValues()
- * instead.
- */
- <V extends T> void setValue(View<?> view, V value);
-
- /**
- * Bulk method for setting many values at once. This fires only a
single event and is thus much more efficient.
- */
- public void setValues(Map<? extends View<?>, T> values, List<? extends
View<?>> toClear);
-
- /**
- * Remove the value stored for the given view.
- *
- * This is needed to allow reverting the value for a given view to "the
default value, whatever that is".
- *
- * @param view the View for which to clear the value
- */
- void clearValue(View<?> view);
- /**
- * Used by VisualStyle.apply to set the per-VisualStyle default value
- * @param value the per-VisualStyle default value
- */
- void setDefaultValue(T value);
-
- void setLockedValue(final View<?> view, final T value);
-
- /**
- * @param view target view
- * @return true if current VisualProperty value is locked
- */
- boolean isValueLocked(final View<?> view);
-
- /**
- * Clear value lock for given VisualProperty.
- *
- * @param view target view
- */
- void clearValueLock(final View<?> view);
-}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---