Author: ruschein
Date: 2010-10-11 10:13:49 -0700 (Mon, 11 Oct 2010)
New Revision: 22200
Modified:
cytoscape/trunk/application/src/test/java/cytoscape/visual/TestEdgeView.java
cytoscape/trunk/application/src/test/java/cytoscape/visual/TestNodeView.java
cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DEdgeView.java
cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DGraphView.java
cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DNodeView.java
cytoscape/trunk/corelibs/giny/src/main/java/giny/view/EdgeView.java
cytoscape/trunk/corelibs/giny/src/main/java/giny/view/NodeView.java
Log:
Added an isHidden() method to NodeView and EdgeView.
Modified:
cytoscape/trunk/application/src/test/java/cytoscape/visual/TestEdgeView.java
===================================================================
---
cytoscape/trunk/application/src/test/java/cytoscape/visual/TestEdgeView.java
2010-10-11 16:57:53 UTC (rev 22199)
+++
cytoscape/trunk/application/src/test/java/cytoscape/visual/TestEdgeView.java
2010-10-11 17:13:49 UTC (rev 22200)
@@ -101,6 +101,10 @@
return selected;
}
+ public boolean isHidden() {
+ return false;
+ }
+
String toolTip;
public void setToolTip(String tip) {
toolTip = tip;
Modified:
cytoscape/trunk/application/src/test/java/cytoscape/visual/TestNodeView.java
===================================================================
---
cytoscape/trunk/application/src/test/java/cytoscape/visual/TestNodeView.java
2010-10-11 16:57:53 UTC (rev 22199)
+++
cytoscape/trunk/application/src/test/java/cytoscape/visual/TestNodeView.java
2010-10-11 17:13:49 UTC (rev 22200)
@@ -454,6 +454,10 @@
return selected;
}
+ public boolean isHidden() {
+ return false;
+ }
+
/**
* DOCUMENT ME!
*
Modified: cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DEdgeView.java
===================================================================
--- cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DEdgeView.java
2010-10-11 16:57:53 UTC (rev 22199)
+++ cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DEdgeView.java
2010-10-11 17:13:49 UTC (rev 22200)
@@ -36,6 +36,7 @@
package ding.view;
+
import giny.model.Edge;
import giny.view.Bend;
import giny.view.EdgeView;
@@ -569,6 +570,10 @@
return m_selected;
}
+ final public boolean isHidden() {
+ return m_view.isHidden(this);
+ }
+
/**
* DOCUMENT ME!
*/
Modified: cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DGraphView.java
===================================================================
--- cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DGraphView.java
2010-10-11 16:57:53 UTC (rev 22199)
+++ cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DGraphView.java
2010-10-11 17:13:49 UTC (rev 22200)
@@ -1,13 +1,6 @@
/*
- Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org)
+ Copyright (c) 2006, 2007, 2010, The Cytoscape Consortium (www.cytoscape.org)
- The Cytoscape Consortium is:
- - Institute for Systems Biology
- - University of California San Diego
- - Memorial Sloan-Kettering Cancer Center
- - Institut Pasteur
- - Agilent Technologies
-
This library 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 2.1 of the License, or
@@ -34,6 +27,7 @@
*/
package ding.view;
+
import giny.model.Edge;
import giny.model.GraphPerspective;
import giny.model.Node;
@@ -1378,6 +1372,20 @@
}
}
+ final boolean isHidden(final DEdgeView edgeView) {
+ synchronized (m_lock) {
+ final int edgeIndex = edgeView.getRootGraphIndex();
+ return
m_drawPersp.containsEdge(m_drawPersp.getEdge(edgeIndex));
+ }
+ }
+
+ final boolean isHidden(final DNodeView nodeView) {
+ synchronized (m_lock) {
+ final int nodeIndex = nodeView.getRootGraphIndex();
+ return
m_drawPersp.containsNode(m_drawPersp.getNode(nodeIndex));
+ }
+ }
+
/*
* obj should be either a DEdgeView or a DNodeView.
*/
Modified: cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DNodeView.java
===================================================================
--- cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DNodeView.java
2010-10-11 16:57:53 UTC (rev 22199)
+++ cytoscape/trunk/corelibs/ding/src/main/java/ding/view/DNodeView.java
2010-10-11 17:13:49 UTC (rev 22200)
@@ -872,6 +872,10 @@
return true;
}
+ final public boolean isHidden() {
+ return graphView.isHidden(this);
+ }
+
/**
* DOCUMENT ME!
*
Modified: cytoscape/trunk/corelibs/giny/src/main/java/giny/view/EdgeView.java
===================================================================
--- cytoscape/trunk/corelibs/giny/src/main/java/giny/view/EdgeView.java
2010-10-11 16:57:53 UTC (rev 22199)
+++ cytoscape/trunk/corelibs/giny/src/main/java/giny/view/EdgeView.java
2010-10-11 17:13:49 UTC (rev 22200)
@@ -1,5 +1,6 @@
package giny.view;
+
import java.awt.*;
import java.awt.geom.*;
import giny.model.*;
@@ -7,289 +8,294 @@
public interface EdgeView {
- /**
- * Draws splined curves for edges.
- */
- public static int CURVED_LINES = 1;
+ /**
+ * Draws splined curves for edges.
+ */
+ public static int CURVED_LINES = 1;
- /**
- * Draws straight lines for edges.
- */
- public static int STRAIGHT_LINES = 2;
+ /**
+ * Draws straight lines for edges.
+ */
+ public static int STRAIGHT_LINES = 2;
- public static int NO_END = 0;
- public static int WHITE_DELTA = 1;
- public static int BLACK_DELTA = 2;
- public static int EDGE_COLOR_DELTA = 3;
- public static int WHITE_ARROW = 4;
- public static int BLACK_ARROW = 5;
- public static int EDGE_COLOR_ARROW = 6;
- public static int WHITE_DIAMOND = 7;
- public static int BLACK_DIAMOND = 8;
- public static int EDGE_COLOR_DIAMOND = 9;
- public static int WHITE_CIRCLE = 10;
- public static int BLACK_CIRCLE = 11;
- public static int EDGE_COLOR_CIRCLE = 12;
- public static int WHITE_T = 13;
- public static int BLACK_T = 14;
- public static int EDGE_COLOR_T = 15;
- public static int EDGE_HALF_ARROW_TOP = 16;
- public static int EDGE_HALF_ARROW_BOTTOM = 17;
+ public static int NO_END = 0;
+ public static int WHITE_DELTA = 1;
+ public static int BLACK_DELTA = 2;
+ public static int EDGE_COLOR_DELTA = 3;
+ public static int WHITE_ARROW = 4;
+ public static int BLACK_ARROW = 5;
+ public static int EDGE_COLOR_ARROW = 6;
+ public static int WHITE_DIAMOND = 7;
+ public static int BLACK_DIAMOND = 8;
+ public static int EDGE_COLOR_DIAMOND = 9;
+ public static int WHITE_CIRCLE = 10;
+ public static int BLACK_CIRCLE = 11;
+ public static int EDGE_COLOR_CIRCLE = 12;
+ public static int WHITE_T = 13;
+ public static int BLACK_T = 14;
+ public static int EDGE_COLOR_T = 15;
+ public static int EDGE_HALF_ARROW_TOP = 16;
+ public static int EDGE_HALF_ARROW_BOTTOM = 17;
- //------------------------------------------------------//
- // Get and Set Methods for all Common Viewable Elements
- //------------------------------------------------------//
+ //------------------------------------------------------//
+ // Get and Set Methods for all Common Viewable Elements
+ //------------------------------------------------------//
- /**
- * @return the index of this edge in the GraphPerspective
- */
- public int getGraphPerspectiveIndex ();
+ /**
+ * @return the index of this edge in the GraphPerspective
+ */
+ public int getGraphPerspectiveIndex ();
- /**
- * @return the index of this edge in the RootGraph
- */
- public int getRootGraphIndex ();
+ /**
+ * @return the index of this edge in the RootGraph
+ */
+ public int getRootGraphIndex ();
- /**
- * @return the Edge to which we are a view on
- */
- public Edge getEdge();
+ /**
+ * @return the Edge to which we are a view on
+ */
+ public Edge getEdge();
- /**
- * @return the GraphView we are in
- */
- public GraphView getGraphView ();
+ /**
+ * @return the GraphView we are in
+ */
+ public GraphView getGraphView ();
- /**
- * @param width set a new line width for this edge
- */
- public void setStrokeWidth ( float width );
+ /**
+ * @param width set a new line width for this edge
+ */
+ public void setStrokeWidth ( float width );
- /**
- * @return the currently set edge width
- */
- public float getStrokeWidth ();
+ /**
+ * @return the currently set edge width
+ */
+ public float getStrokeWidth ();
- /**
- * @param stroke the stroke to use on this edge
- */
- public void setStroke ( Stroke stroke );
+ /**
+ * @param stroke the stroke to use on this edge
+ */
+ public void setStroke ( Stroke stroke );
- /**
- * @return the stroke used on this edge
- */
- public Stroke getStroke ();
+ /**
+ * @return the stroke used on this edge
+ */
+ public Stroke getStroke ();
- /**
- * @param line_type set a new line type for the edge
- */
- public void setLineType ( int line_type );
+ /**
+ * @param line_type set a new line type for the edge
+ */
+ public void setLineType ( int line_type );
- /**
- * @return the currently set edge line type
- */
- public int getLineType ();
+ /**
+ * @return the currently set edge line type
+ */
+ public int getLineType ();
- /**
- * This really refers to the <B>Stroke</B>,
- * TODO: Make separte stroke methods
- * @param paint the paint for this node
- */
- public void setUnselectedPaint ( Paint paint );
+ /**
+ * This really refers to the <B>Stroke</B>,
+ * TODO: Make separte stroke methods
+ * @param paint the paint for this node
+ */
+ public void setUnselectedPaint ( Paint paint );
- /**
- * This really refers to the <B>Stroke</B>,
- * TODO: Make separte stroke methods
- * @return the currently set edge Paint
- */
- public Paint getUnselectedPaint ();
+ /**
+ * This really refers to the <B>Stroke</B>,
+ * TODO: Make separte stroke methods
+ * @return the currently set edge Paint
+ */
+ public Paint getUnselectedPaint ();
- /**
- * This really refers to the <B>Stroke</B>,
- * TODO: Make separte stroke methods
- * @param paint the paint for this node
- */
- public void setSelectedPaint ( Paint paint );
+ /**
+ * This really refers to the <B>Stroke</B>,
+ * TODO: Make separte stroke methods
+ * @param paint the paint for this node
+ */
+ public void setSelectedPaint ( Paint paint );
- /**
- * This really refers to the <B>Stroke</B>,
- * TODO: Make separte stroke methods
- * @return the currently set edge Selectionpaint
- */
- public Paint getSelectedPaint ();
+ /**
+ * This really refers to the <B>Stroke</B>,
+ * TODO: Make separte stroke methods
+ * @return the currently set edge Selectionpaint
+ */
+ public Paint getSelectedPaint ();
- /**
- * @return the currently set Source Edge End Type
- */
- public Paint getSourceEdgeEndPaint ();
+ /**
+ * @return the currently set Source Edge End Type
+ */
+ public Paint getSourceEdgeEndPaint ();
- /**
- * @return the currently set Source Edge End Type
- */
- public Paint getSourceEdgeEndSelectedPaint ();
+ /**
+ * @return the currently set Source Edge End Type
+ */
+ public Paint getSourceEdgeEndSelectedPaint ();
- /**
- * @return the currently set Target Edge End Type
- */
- public Paint getTargetEdgeEndPaint ();
+ /**
+ * @return the currently set Target Edge End Type
+ */
+ public Paint getTargetEdgeEndPaint ();
- /**
- * @return the currently set Target Edge End Type
- */
- public Paint getTargetEdgeEndSelectedPaint ();
+ /**
+ * @return the currently set Target Edge End Type
+ */
+ public Paint getTargetEdgeEndSelectedPaint ();
- /**
- * @param paint set the value for the source edge end when selected
- */
- public void setSourceEdgeEndSelectedPaint ( Paint paint );
+ /**
+ * @param paint set the value for the source edge end when selected
+ */
+ public void setSourceEdgeEndSelectedPaint ( Paint paint );
- /**
- * @param paint set the value for the target edge end when selected
- */
- public void setTargetEdgeEndSelectedPaint ( Paint paint );
+ /**
+ * @param paint set the value for the target edge end when selected
+ */
+ public void setTargetEdgeEndSelectedPaint ( Paint paint );
- /**
- * @param paint the new paint for the stroke of the source eged end
- */
- public void setSourceEdgeEndStrokePaint ( Paint paint );
+ /**
+ * @param paint the new paint for the stroke of the source eged end
+ */
+ public void setSourceEdgeEndStrokePaint ( Paint paint );
- /**
- * @param paint the new paint for the stroke of the target eged end
- */
- public void setTargetEdgeEndStrokePaint ( Paint paint );
+ /**
+ * @param paint the new paint for the stroke of the target eged end
+ */
+ public void setTargetEdgeEndStrokePaint ( Paint paint );
- /**
- * @param paint set the value for the source edge end
- */
- public void setSourceEdgeEndPaint ( Paint paint );
+ /**
+ * @param paint set the value for the source edge end
+ */
+ public void setSourceEdgeEndPaint ( Paint paint );
- /**
- * @param paint set the value for the target edge end
- */
- public void setTargetEdgeEndPaint ( Paint paint );
+ /**
+ * @param paint set the value for the target edge end
+ */
+ public void setTargetEdgeEndPaint ( Paint paint );
- public void select ();
+ public void select ();
- public void unselect ();
+ public void unselect ();
- /**
- * When we are selected then we draw ourselves red, and draw any handles.
- */
- public boolean setSelected ( boolean state );
+ /**
+ * When we are selected then we draw ourselves red, and draw any
handles.
+ */
+ public boolean setSelected ( boolean state );
- /**
- * @return selcted state
- */
- public boolean isSelected ();
+ /**
+ * @return selected state
+ */
+ public boolean isSelected ();
- /**
- * @return selcted state
- */
- public boolean getSelected ();
+ /**
+ * @return selected state
+ */
+ public boolean getSelected ();
- /**
- * Add a PHandle to the edge at the point specified.
- *
- * @param pt The point at which to draw the PHandle and to which the
- * PHandle will be attached via the locator.
- */
-// public void addHandle ( Point2D pt );
+ /**
+ * @return true if the EdgeView is hidden, else false
+ */
+ public boolean isHidden();
- /**
- * Removes the PHandle at the specified point.
- *
- * @param pt If this point intersects an existing PHandle, then remove that
- * PHandle.
- */
- // public void removeHandle ( Point2D pt );
+ /**
+ * Add a PHandle to the edge at the point specified.
+ *
+ * @param pt The point at which to draw the PHandle and to which the
+ * PHandle will be attached via the locator.
+ */
+ // public void addHandle ( Point2D pt );
- /**
- * Checks to see if a PHandle already exists for the given point.
- *
- * @param pt If this point intersects a currently existing PHandle, then
- * return true, else return false.
- */
- //public boolean handleAlreadyExists ( Point2D pt );
+ /**
+ * Removes the PHandle at the specified point.
+ *
+ * @param pt If this point intersects an existing PHandle, then remove
that
+ * PHandle.
+ */
+ // public void removeHandle ( Point2D pt );
- /**
- * This is the main method called to update the drawing of the edge.
- */
- public void updateEdgeView ();
+ /**
+ * Checks to see if a PHandle already exists for the given point.
+ *
+ * @param pt If this point intersects a currently existing PHandle, then
+ * return true, else return false.
+ */
+ //public boolean handleAlreadyExists ( Point2D pt );
- /**
- * Draws the EdgeEnd, also sets the Source/Target Points to values such
- * that the edge does not "go through" the end
- */
- public void updateTargetArrow ();
+ /**
+ * This is the main method called to update the drawing of the edge.
+ */
+ public void updateEdgeView ();
- /**
- * Draws the EdgeEnd, also sets the Source/Target Points to values such
- * that the edge does not "go through" the end
- */
- public void updateSourceArrow ();
+ /**
+ * Draws the EdgeEnd, also sets the Source/Target Points to values such
+ * that the edge does not "go through" the end
+ */
+ public void updateTargetArrow ();
- /**
- * Sets the Drawing style for the edge end.
- */
- public void setSourceEdgeEnd(int type);
+ /**
+ * Draws the EdgeEnd, also sets the Source/Target Points to values such
+ * that the edge does not "go through" the end
+ */
+ public void updateSourceArrow ();
- /**
- * Sets the Drawing style for the edge end.
- */
- public void setTargetEdgeEnd(int type);
+ /**
+ * Sets the Drawing style for the edge end.
+ */
+ public void setSourceEdgeEnd(int type);
+ /**
+ * Sets the Drawing style for the edge end.
+ */
+ public void setTargetEdgeEnd(int type);
+
- /**
- * Return the Drawing style for the edge end.
- */
- public int getSourceEdgeEnd();
+ /**
+ * Return the Drawing style for the edge end.
+ */
+ public int getSourceEdgeEnd();
- /**
- * REturn the Drawing style for the edge end.
- */
- public int getTargetEdgeEnd();
+ /**
+ * REturn the Drawing style for the edge end.
+ */
+ public int getTargetEdgeEnd();
- /**
- * Draws the Edge
- */
- public void updateLine();
+ /**
+ * Draws the Edge
+ */
+ public void updateLine();
- /**
- * Draws the edge as red and draws any handles previously added.
- */
- public void drawSelected();
+ /**
+ * Draws the edge as red and draws any handles previously added.
+ */
+ public void drawSelected();
- /**
- * Draws the edge as black and removes any handles from the display.
- */
- public void drawUnselected();
+ /**
+ * Draws the edge as black and removes any handles from the display.
+ */
+ public void drawUnselected();
- /**
- * @return the Bend used
- */
- public Bend getBend ();
+ /**
+ * @return the Bend used
+ */
+ public Bend getBend ();
- public void clearBends ();
+ public void clearBends ();
- public Label getLabel();
+ public Label getLabel();
- /**
- * Sets what the tooltip will be for this EdgeView
- */
- public void setToolTip ( String tip );
+ /**
+ * Sets what the tooltip will be for this EdgeView
+ */
+ public void setToolTip ( String tip );
- public void setLabelOffsetX(double x);
- public void setLabelOffsetY(double y);
- public void setEdgeLabelAnchor(int position);
+ public void setLabelOffsetX(double x);
+ public void setLabelOffsetY(double y);
+ public void setEdgeLabelAnchor(int position);
- public double getLabelOffsetX();
- public double getLabelOffsetY();
- public int getEdgeLabelAnchor();
+ public double getLabelOffsetX();
+ public double getLabelOffsetY();
+ public int getEdgeLabelAnchor();
- public double getLabelWidth();
- public void setLabelWidth(double width);
+ public double getLabelWidth();
+ public void setLabelWidth(double width);
}
Modified: cytoscape/trunk/corelibs/giny/src/main/java/giny/view/NodeView.java
===================================================================
--- cytoscape/trunk/corelibs/giny/src/main/java/giny/view/NodeView.java
2010-10-11 16:57:53 UTC (rev 22199)
+++ cytoscape/trunk/corelibs/giny/src/main/java/giny/view/NodeView.java
2010-10-11 17:13:49 UTC (rev 22200)
@@ -1,5 +1,6 @@
package giny.view;
+
import giny.model.Node;
import java.awt.Paint;
@@ -14,280 +15,284 @@
*/
public interface NodeView {
- public static final int TRIANGLE = 0;
- public static final int DIAMOND = 1;
- public static final int ELLIPSE = 2;
- public static final int HEXAGON = 3;
- public static final int OCTAGON = 4;
- public static final int PARALELLOGRAM = 5;
- public static final int RECTANGLE = 6;
- public static final int ROUNDED_RECTANGLE = 7;
- public static final int VEE = 8;
+ public static final int TRIANGLE = 0;
+ public static final int DIAMOND = 1;
+ public static final int ELLIPSE = 2;
+ public static final int HEXAGON = 3;
+ public static final int OCTAGON = 4;
+ public static final int PARALELLOGRAM = 5;
+ public static final int RECTANGLE = 6;
+ public static final int ROUNDED_RECTANGLE = 7;
+ public static final int VEE = 8;
- /**
- * @return the view we are in
- */
- public GraphView getGraphView() ;
+ /**
+ * @return the view we are in
+ */
+ public GraphView getGraphView() ;
- /**
- * @return The Node we are a view on
- */
- public Node getNode () ;
+ /**
+ * @return The Node we are a view on
+ */
+ public Node getNode () ;
- /**
- * @return the index of this node in the perspective to which we are in a
view on.
- */
- public int getGraphPerspectiveIndex () ;
+ /**
+ * @return the index of this node in the perspective to which we are in
a view on.
+ */
+ public int getGraphPerspectiveIndex () ;
- /**
- * @return the index of this node in the root graph to which we are in a
view on.
- */
- public int getRootGraphIndex () ;
+ /**
+ * @return the index of this node in the root graph to which we are in
a view on.
+ */
+ public int getRootGraphIndex () ;
- /**
- * @return The list of EdgeViews connecting these two nodes. Possibly null.
- */
- public List getEdgeViewsList(NodeView otherNode) ;
+ /**
+ * @return The list of EdgeViews connecting these two nodes. Possibly
null.
+ */
+ public List getEdgeViewsList(NodeView otherNode) ;
- /**
- * Shape is currently defined via predefined variables in
- * the NodeView interface. To get the actual java.awt.Shape
- * use getPathReference()
- * @return the current int-tpye shape
- */
- public int getShape () ;
+ /**
+ * Shape is currently defined via predefined variables in
+ * the NodeView interface. To get the actual java.awt.Shape
+ * use getPathReference()
+ * @return the current int-tpye shape
+ */
+ public int getShape () ;
- /**
- * This sets the Paint that will be used by this node
- * when it is painted as selected.
- * @param paint The Paint to be used
- */
- public void setSelectedPaint (Paint paint) ;
+ /**
+ * This sets the Paint that will be used by this node
+ * when it is painted as selected.
+ * @param paint The Paint to be used
+ */
+ public void setSelectedPaint (Paint paint) ;
- /**
- * @return the currently set selection Paint
- */
- public Paint getSelectedPaint () ;
+ /**
+ * @return the currently set selection Paint
+ */
+ public Paint getSelectedPaint () ;
- /**
- * Set the deafult paint of this node
- * @param paint the default Paint of this node
- */
- public void setUnselectedPaint ( Paint paint ) ;
+ /**
+ * Set the deafult paint of this node
+ * @param paint the default Paint of this node
+ */
+ public void setUnselectedPaint ( Paint paint ) ;
- /**
- * @return the currently set paint
- */
- public Paint getUnselectedPaint () ;
+ /**
+ * @return the currently set paint
+ */
+ public Paint getUnselectedPaint () ;
- /**
- * @param b_paint the paint the border will use
- */
- public void setBorderPaint ( Paint b_paint ) ;
+ /**
+ * @param b_paint the paint the border will use
+ */
+ public void setBorderPaint ( Paint b_paint ) ;
- /**
- * @return the currently set BOrder Paint
- */
- public Paint getBorderPaint () ;
+ /**
+ * @return the currently set BOrder Paint
+ */
+ public Paint getBorderPaint () ;
- /**
- * @param border_width The width of the border.
- */
- public void setBorderWidth ( float border_width ) ;
+ /**
+ * @param border_width The width of the border.
+ */
+ public void setBorderWidth ( float border_width ) ;
- /**
- * @return the currently set Border width
- */
- public float getBorderWidth () ;
+ /**
+ * @return the currently set Border width
+ */
+ public float getBorderWidth () ;
- /**
- * @param stroke the new stroke for the border
- */
- public void setBorder ( Stroke stroke );
+ /**
+ * @param stroke the new stroke for the border
+ */
+ public void setBorder ( Stroke stroke );
- /**
- * @return the current border
- */
- public Stroke getBorder ();
+ /**
+ * @return the current border
+ */
+ public Stroke getBorder ();
- /**
- * @param trans new value for the transparency
- */
- public void setTransparency ( float trans );
+ /**
+ * @param trans new value for the transparency
+ */
+ public void setTransparency ( float trans );
- /**
- * @return the value for the transparency for this node
- */
- public float getTransparency ();
+ /**
+ * @return the value for the transparency for this node
+ */
+ public float getTransparency ();
- /**
- * TODO: Reconcile with Border Methods
- * @param width the currently set width of this node
- */
- public boolean setWidth ( double width ) ;
+ /**
+ * TODO: Reconcile with Border Methods
+ * @param width the currently set width of this node
+ */
+ public boolean setWidth ( double width ) ;
- /**
- * TODO: Reconcile with Border Methods
- * @return the currently set width of this node
- */
- public double getWidth () ;
+ /**
+ * TODO: Reconcile with Border Methods
+ * @return the currently set width of this node
+ */
+ public double getWidth () ;
- /**
- * TODO: Reconcile with Border Methods
- * @param height the currently set height of this node
- */
- public boolean setHeight ( double height ) ;
+ /**
+ * TODO: Reconcile with Border Methods
+ * @param height the currently set height of this node
+ */
+ public boolean setHeight ( double height ) ;
- /**
- * TODO: Reconcile with Border Methods
- * @return the currently set height of this node
- */
- public double getHeight () ;
+ /**
+ * TODO: Reconcile with Border Methods
+ * @return the currently set height of this node
+ */
+ public double getHeight () ;
- /**
- * @return The Value of the label
- */
- public giny.view.Label getLabel () ;
+ /**
+ * @return The Value of the label
+ */
+ public giny.view.Label getLabel () ;
- /**
- * @return the degree of the Node in the GraphPerspective.
- */
- public int getDegree() ;
+ /**
+ * @return the degree of the Node in the GraphPerspective.
+ */
+ public int getDegree() ;
- public void setOffset ( double x, double y );
+ public void setOffset ( double x, double y );
- public Point2D getOffset ();
+ public Point2D getOffset ();
- /**
- * @param new_x_position the new X position for this node
- */
- public void setXPosition(double new_x_position) ;
+ /**
+ * @param new_x_position the new X position for this node
+ */
+ public void setXPosition(double new_x_position) ;
- /**
- * Set udpdate to false in order to do a layout, and then call updateNode on
all the nodes..
- // TODO -- HACKY
- * @param new_x_position for this node
- * @param update if this is true, the node will move immediatly.
- */
- public void setXPosition ( double new_x_position, boolean update ) ;
+ /**
+ * Set udpdate to false in order to do a layout, and then call
updateNode on all the nodes..
+ // TODO -- HACKY
+ * @param new_x_position for this node
+ * @param update if this is true, the node will move immediatly.
+ */
+ public void setXPosition ( double new_x_position, boolean update ) ;
- /**
- * note that unless updateNode() has been called, this may not be
- * the "real" location of this node
- * @return the current x position of this node
- * @see #setXPosition
- */
- public double getXPosition() ;
+ /**
+ * note that unless updateNode() has been called, this may not be
+ * the "real" location of this node
+ * @return the current x position of this node
+ * @see #setXPosition
+ */
+ public double getXPosition() ;
- /**
- * @param new_y_position the new Y position for this node
- */
- public void setYPosition(double new_y_position) ;
+ /**
+ * @param new_y_position the new Y position for this node
+ */
+ public void setYPosition(double new_y_position) ;
- /**
- * Set udpdate to false in order to do a layout, and then call updateNode on
all the nodes..
- // TODO -- HACKY
- * @param new_y_position for this node
- * @param update if this is true, the node will move immediatly.
- */
- public void setYPosition ( double new_y_position, boolean update ) ;
+ /**
+ * Set udpdate to false in order to do a layout, and then call
updateNode on all the nodes..
+ // TODO -- HACKY
+ * @param new_y_position for this node
+ * @param update if this is true, the node will move immediatly.
+ */
+ public void setYPosition ( double new_y_position, boolean update ) ;
- /**
- * note that unless updateNode() has been called, this may not be
- * the "real" location of this node
- * @return the current y position of this node
- * @see #setYPosition
- */
- public double getYPosition() ;
+ /**
+ * note that unless updateNode() has been called, this may not be
+ * the "real" location of this node
+ * @return the current y position of this node
+ * @see #setYPosition
+ */
+ public double getYPosition() ;
- /**
- * moves this node to its stored x and y locations.
- */
- public void setNodePosition(boolean animate) ;
+ /**
+ * moves this node to its stored x and y locations.
+ */
+ public void setNodePosition(boolean animate) ;
- /**
- * This draws us as selected
- */
- public void select() ;
+ /**
+ * This draws us as selected
+ */
+ public void select() ;
- /**
- * This draws us as unselected
- */
- public void unselect() ;
+ /**
+ * This draws us as unselected
+ */
+ public void unselect() ;
- /**
- *
- */
- public boolean isSelected() ;
+ /**
+ *
+ */
+ public boolean isSelected() ;
- /**
- *
- */
- public boolean setSelected(boolean selected) ;
+ /**
+ *
+ */
+ public boolean setSelected(boolean selected) ;
+ /**
+ * @return true if the NodeView is hidden, else false
+ */
+ public boolean isHidden();
- /**
- * Set a new shape for the Node, based on one of the pre-defined shapes
- * <B>Note:</B> calling setPathTo( Shape ), allows one to define their own
- * java.awt.Shape ( i.e. A picture of Johnny Cash )
- */
- public void setShape(int shape) ;
+ /**
+ * Set a new shape for the Node, based on one of the pre-defined shapes
+ * <B>Note:</B> calling setPathTo( Shape ), allows one to define their
own
+ * java.awt.Shape ( i.e. A picture of Johnny Cash )
+ */
+ public void setShape(int shape) ;
- /**
- * Sets what the tooltip will be for this NodeView
- */
- public void setToolTip ( String tip );
+ /**
+ * Sets what the tooltip will be for this NodeView
+ */
+ public void setToolTip ( String tip );
- /**
- * Returns current label position as ObjkectPosition object.
- *
- * @return label position as ObjectPosition
- */
- public ObjectPosition getLabelPosition();
+ /**
+ * Returns current label position as ObjkectPosition object.
+ *
+ * @return label position as ObjectPosition
+ */
+ public ObjectPosition getLabelPosition();
- /**
- * Set current label position.
- *
- * @param position
- */
- public void setLabelPosition(final ObjectPosition position);
+ /**
+ * Set current label position.
+ *
+ * @param position
+ */
+ public void setLabelPosition(final ObjectPosition position);
- @Deprecated
- public void setLabelOffsetX(double x);
- @Deprecated
- public void setLabelOffsetY(double y);
- @Deprecated
- public void setNodeLabelAnchor(int position);
- @Deprecated
- public double getLabelOffsetX();
- @Deprecated
- public double getLabelOffsetY();
- @Deprecated
- public int getNodeLabelAnchor();
+ @Deprecated
+ public void setLabelOffsetX(double x);
+ @Deprecated
+ public void setLabelOffsetY(double y);
+ @Deprecated
+ public void setNodeLabelAnchor(int position);
+ @Deprecated
+ public double getLabelOffsetX();
+ @Deprecated
+ public double getLabelOffsetY();
+ @Deprecated
+ public int getNodeLabelAnchor();
- public double getLabelWidth();
- public void setLabelWidth(double width);
+ public double getLabelWidth();
+ public void setLabelWidth(double width);
- /** Determines whether a nested network should be rendered as part of a
node's view or not.
- * @return true if the node has a nested network and we want it rendered,
else false.
- */
- boolean nestedNetworkIsVisible();
+ /** Determines whether a nested network should be rendered as part of a
node's view or not.
+ * @return true if the node has a nested network and we want it
rendered, else false.
+ */
+ boolean nestedNetworkIsVisible();
- /** Set the visibility of a node's nested network when rendered.
- * @param makeVisible forces the visibility of a nested network.
- * Please note that this call has no effect if a node has no associated
nested network!
- */
- void showNestedNetwork(final boolean makeVisible);
+ /** Set the visibility of a node's nested network when rendered.
+ * @param makeVisible forces the visibility of a nested network.
+ * Please note that this call has no effect if a node has no associated
nested network!
+ */
+ void showNestedNetwork(final boolean makeVisible);
}
--
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.