Uses of Interface
org.cytoscape.view.model.View
-
Packages that use View Package Description org.cytoscape.application.swing This package defines the various interfaces, abstract classes, and enums that represent the Cytoscape Swing Application API.org.cytoscape.io.write This package provides factory interfaces to be used by anyone wishing to provide export or writing capabilities to the rest of Cytoscape.org.cytoscape.task This package provides base classes for common task factory types as well as their associated task types found in Cytoscape.org.cytoscape.view.layout This package provides access to the available layout algorithms, as well as provides abstract layout classes and layout information containers for the convenience of implementing other layout algorithms.org.cytoscape.view.model Module for View Models and Visual Properties.org.cytoscape.view.model.events Definitions for View-Model related events and their listeners.org.cytoscape.view.presentation API set for rendering engines (visualizers).org.cytoscape.view.presentation.customgraphics This package provides an API for augmenting aRenderingEngine
s node rendering with custom graphics.org.cytoscape.view.presentation.property.values Interfaces for VisualPropertyValues -- ArrowShape, LineType and NodeShapeorg.cytoscape.view.vizmap Visual Mapping basic API module.org.cytoscape.view.vizmap.mappings APIs for different mapping functions -- continuous mapping, discrete mapping and pass through mapping. -
-
Uses of View in org.cytoscape.application.swing
Methods in org.cytoscape.application.swing with parameters of type View Modifier and Type Method Description CyMenuItem
CyEdgeViewContextMenuFactory. createMenuItem(CyNetworkView netView, View<CyEdge> edgeView)
This method should return a CyMenuItem to be added to the context menu of the specified edge view.CyMenuItem
CyNodeViewContextMenuFactory. createMenuItem(CyNetworkView netView, View<CyNode> nodeView)
This method should return a CyMenuItem to be added to the context menu of the specified node view.Constructor parameters in org.cytoscape.application.swing with type arguments of type View Constructor Description AbstractViewUpdater(VisualProperty<S> vp, String columnName, Map<CyRow,View<?>> rowViewMap)
Constructor. -
Uses of View in org.cytoscape.io.write
Methods in org.cytoscape.io.write with parameters of type View Modifier and Type Method Description CyWriter
PresentationWriterManager. getWriter(View<?> view, RenderingEngine<?> re, CyFileFilter filter, File file)
Returns theCyWriter
Task that will attempt to write the specified view to the specified file of the specified file type.CyWriter
PresentationWriterManager. getWriter(View<?> view, RenderingEngine<?> re, CyFileFilter filter, OutputStream os)
Returns theCyWriter
Task that will attempt to write the specified view to the specified output stream of the specified file type. -
Uses of View in org.cytoscape.task
Fields in org.cytoscape.task declared as View Modifier and Type Field Description protected View<CyEdge>
AbstractEdgeViewTask. edgeView
The edge view that descendant tasks will operate on.protected View<CyNode>
AbstractNodeViewTask. nodeView
The node view that descendants of this class will operate on.Methods in org.cytoscape.task with parameters of type View Modifier and Type Method Description TaskIterator
EdgeViewTaskFactory. createTaskIterator(View<CyEdge> edgeView, CyNetworkView networkView)
Creates a new TaskIterator using the given edge view and network view.TaskIterator
NodeViewTaskFactory. createTaskIterator(View<CyNode> nodeView, CyNetworkView networkView)
Provisions this factory with the node view and its associated network view, both of which will be passed into any task that will be created by this factory.boolean
AbstractEdgeViewTaskFactory. isReady(View<CyEdge> edgeView, CyNetworkView networkView)
Returns true if the supplied edge and network views are not null.boolean
AbstractNodeViewTaskFactory. isReady(View<CyNode> nodeView, CyNetworkView networkView)
Returns true of the supplied network and node views are not null.boolean
EdgeViewTaskFactory. isReady(View<CyEdge> edgeView, CyNetworkView networkView)
Returns true if this task factory is ready to produce a TaskIterator.boolean
NodeViewTaskFactory. isReady(View<CyNode> nodeView, CyNetworkView networkView)
Returns true if the node view and network view are in a state that is ready to be processed by the generated tasks and false otherwise.Constructors in org.cytoscape.task with parameters of type View Constructor Description AbstractEdgeViewTask(View<CyEdge> edgeView, CyNetworkView netView)
Base constructor for all tasks that need an edge view to operate on.AbstractNodeViewTask(View<CyNode> nodeView, CyNetworkView netView)
Base class constructor for all tasks that need to operate on a node view and possibly its associated network view. -
Uses of View in org.cytoscape.view.layout
Fields in org.cytoscape.view.layout with type parameters of type View Modifier and Type Field Description static Set<View<CyNode>>
CyLayoutAlgorithm. ALL_NODE_VIEWS
A convenience declaration for an empty set signifying that all node views should be laid out when creating the task iterator.protected Set<View<CyNode>>
AbstractLayoutTask. nodesToLayOut
The node views that will be laid out by the algorithm.Methods in org.cytoscape.view.layout that return View Modifier and Type Method Description View<CyNode>
LayoutNode. getNodeView()
Accessor function to return the Viewassociated with this LayoutNode. Methods in org.cytoscape.view.layout with parameters of type View Modifier and Type Method Description protected void
LayoutPartition. addNode(CyNetwork network, View<CyNode> nv, boolean locked)
Add a node to this partition.Method parameters in org.cytoscape.view.layout with type arguments of type View Modifier and Type Method Description TaskIterator
CyLayoutAlgorithm. createTaskIterator(CyNetworkView networkView, Object layoutContext, Set<View<CyNode>> nodesToLayOut, String layoutAttribute)
Creates a task iterator containing the layout tasks.boolean
AbstractLayoutAlgorithm. isReady(CyNetworkView view, Object tunableContext, Set<View<CyNode>> nodesToLayout, String attributeName)
boolean
CyLayoutAlgorithm. isReady(CyNetworkView networkView, Object layoutContext, Set<View<CyNode>> nodesToLayOut, String layoutAttribute)
Returns true if the task factory is ready to produce a task iterator.Constructors in org.cytoscape.view.layout with parameters of type View Constructor Description LayoutNode(View<CyNode> nodeView, int index, CyRow row)
The main constructor for a LayoutNode.Constructor parameters in org.cytoscape.view.layout with type arguments of type View Constructor Description AbstractLayoutTask(String displayName, CyNetworkView networkView, Set<View<CyNode>> nodesToLayOut, String layoutAttribute, UndoSupport undo)
Constructor.AbstractParallelPartitionLayoutTask(String displayName, boolean singlePartition, CyNetworkView networkView, Set<View<CyNode>> nodesToLayOut, String layoutAttribute, UndoSupport undo)
Creates a new AbstractPartitionLayoutTask object.AbstractPartitionLayoutTask(String displayName, boolean singlePartition, CyNetworkView networkView, Set<View<CyNode>> nodesToLayOut, String layoutAttribute, UndoSupport undo)
Creates a new AbstractPartitionLayoutTask object.LayoutPartition(CyNetworkView networkView, Collection<View<CyNode>> nodeSet, EdgeWeighter edgeWeighter)
LayoutPartition: use this constructor to create a LayoutPartition that includes the entire network. -
Uses of View in org.cytoscape.view.model
Subinterfaces of View in org.cytoscape.view.model Modifier and Type Interface Description interface
CyNetworkView
Additional methods for CyNetworkView.interface
CyNetworkViewSnapshot
An immutable snapshot of aCyNetworkView
created using theCyNetworkView.createSnapshot()
method.interface
NullCyNetworkView
A CyNetwork with no corresponding view.Methods in org.cytoscape.view.model that return View Modifier and Type Method Description View<CyEdge>
CyNetworkView. getEdgeView(CyEdge edge)
Returns a View for a specified Edge.View<CyEdge>
CyNetworkViewSnapshot. getEdgeView(long suid)
Returns the immutable edge View for the given view SUID.View<CyEdge>
CyNetworkViewSnapshot. getMutableEdgeView(long suid)
Returns the mutable edge View for the given view SUID, or null if the edge view no longer exists in the mutable network view.View<CyNode>
CyNetworkViewSnapshot. getMutableNodeView(long suid)
Returns the mutable node View for the given view SUID, or null if the node view no longer exists in the mutable network view.View<CyNode>
CyNetworkView. getNodeView(CyNode node)
Returns a View for a specified Node.View<CyNode>
CyNetworkViewSnapshot. getNodeView(long suid)
Returns the immutable node View for the given view SUID.View<CyNode>
SnapshotEdgeInfo. getSourceNodeView()
Returns the source node view;View<CyNode>
SnapshotEdgeInfo. getTargetNodeView()
Returns the target node view;Methods in org.cytoscape.view.model that return types with arguments of type View Modifier and Type Method Description Iterable<View<CyEdge>>
CyNetworkViewSnapshot. getAdjacentEdgeIterable(long nodeSuid)
Returns an Iterable that contains the edges that are adjacent (connected) to the given node.Iterable<View<CyEdge>>
CyNetworkViewSnapshot. getAdjacentEdgeIterable(View<CyNode> node)
Returns an Iterable that contains the edges that are adjacent (connected) to the given node.Collection<View<? extends CyIdentifiable>>
CyNetworkView. getAllViews()
Returns a list of all View including those for Nodes, Edges, and Network.Collection<View<CyEdge>>
CyNetworkView. getEdgeViews()
Returns a list of Views for all CyEdges in the network.default Iterable<View<CyEdge>>
CyNetworkView. getEdgeViewsIterable()
Returns an Iterable for all edge views in the network.Collection<View<CyNode>>
CyNetworkView. getNodeViews()
Returns a list of Views for all CyNodes in the network.default Iterable<View<CyNode>>
CyNetworkView. getNodeViewsIterable()
Returns an Iterable for all node views in the network.Collection<View<CyEdge>>
CyNetworkViewSnapshot. getTrackedEdges(Object key)
Returns edges that were configured to have their VisualProperties tracked usingCyNetworkViewFactoryConfig.addTrackedVisualProperty(Object, VisualProperty, java.util.function.Predicate)
and pass the predicate.Collection<View<CyNode>>
CyNetworkViewSnapshot. getTrackedNodes(Object key)
Returns nodes that were configured to have their VisualProperties tracked usingCyNetworkViewFactoryConfig.addTrackedVisualProperty(Object, VisualProperty, java.util.function.Predicate)
and pass the predicate.Methods in org.cytoscape.view.model with parameters of type View Modifier and Type Method Description Iterable<View<CyEdge>>
CyNetworkViewSnapshot. getAdjacentEdgeIterable(View<CyNode> node)
Returns an Iterable that contains the edges that are adjacent (connected) to the given node.SnapshotEdgeInfo
CyNetworkViewSnapshot. getEdgeInfo(View<CyEdge> edge)
Returns an object that provides more information about the given edge.SnapshotNodeInfo
CyNetworkViewSnapshot. getNodeInfo(View<CyNode> node)
Returns an object that provides more information about the given node.Method parameters in org.cytoscape.view.model with type arguments of type View Modifier and Type Method Description default void
View. batch(Consumer<View<S>> viewAction)
Performs the given action on this View object.default void
View. batch(Consumer<View<S>> viewAction, boolean setDirty)
Performs the given action on this View object. -
Uses of View in org.cytoscape.view.model.events
Methods in org.cytoscape.view.model.events that return View Modifier and Type Method Description View<T>
ViewChangeRecord. getView()
Returns the view that has been changed.Methods in org.cytoscape.view.model.events that return types with arguments of type View Modifier and Type Method Description Collection<View<CyEdge>>
AddedEdgeViewsEvent. getEdgeViews()
Returns new edge view added to the source network view object.Collection<View<CyNode>>
AddedNodeViewsEvent. getNodeViews()
Returns new node view object.Constructors in org.cytoscape.view.model.events with parameters of type View Constructor Description ViewChangeRecord(View<T> view, VisualProperty<?> vp, Object value)
Constructor.ViewChangeRecord(View<T> view, VisualProperty<?> vp, Object value, boolean lockedValue)
Constructor parameters in org.cytoscape.view.model.events with type arguments of type View Constructor Description AboutToRemoveEdgeViewsEvent(CyNetworkView source, Collection<View<CyEdge>> payload)
Creates the event for about to be removed edge views.AboutToRemoveNodeViewsEvent(CyNetworkView source, Collection<View<CyNode>> payload)
Creates the event for about to be removed node views.AddedEdgeViewsEvent(CyNetworkView source, Collection<View<CyEdge>> edgeViews)
Creates the event for new edge views.AddedNodeViewsEvent(CyNetworkView source, Collection<View<CyNode>> nodeViews)
Creates the event for a new node view. -
Uses of View in org.cytoscape.view.presentation
Methods in org.cytoscape.view.presentation that return View Modifier and Type Method Description View<T>
RenderingEngine. getViewModel()
Returns View being rendered.Methods in org.cytoscape.view.presentation with parameters of type View Modifier and Type Method Description RenderingEngine<T>
RenderingEngineFactory. createRenderingEngine(Object visualizationContainer, View<T> viewModel)
A view model can have multiple presentations.Collection<RenderingEngine<?>>
RenderingEngineManager. getRenderingEngines(View<?> viewModel)
Get rendering engines for the given view model. -
Uses of View in org.cytoscape.view.presentation.customgraphics
Methods in org.cytoscape.view.presentation.customgraphics with parameters of type View Modifier and Type Method Description void
Cy2DGraphicLayer. draw(Graphics2D g, Shape shape, CyNetworkView networkView, View<? extends CyIdentifiable> view)
This method is called by Cytoscape when aCyNetworkView
is being updated in order to let the custom graphics draw onto itsGraphics2D
object.List<T>
CyCustomGraphics. getLayers(CyNetworkView networkView, View<? extends CyIdentifiable> grView)
Get layers that belong to this object. -
Uses of View in org.cytoscape.view.presentation.property.values
Methods in org.cytoscape.view.presentation.property.values with parameters of type View Modifier and Type Method Description Point2D
Handle. calculateHandleLocation(CyNetworkView netView, View<CyEdge> edgeView)
Calculate absolute position of this handle for the given edge view.Handle
HandleFactory. createHandle(CyNetworkView graphView, View<CyEdge> view, double x, double y)
Creates a new instance of the Handle.void
Handle. defineHandle(CyNetworkView netView, View<CyEdge> edgeView, double x, double y)
Define this handle. -
Uses of View in org.cytoscape.view.vizmap
Methods in org.cytoscape.view.vizmap with parameters of type View Modifier and Type Method Description void
VisualMappingFunction. apply(CyRow row, View<? extends CyIdentifiable> view)
Apply mapping to the view model.void
VisualStyle. apply(CyRow row, View<? extends CyIdentifiable> view)
Apply Visual Property values only to the given View Object (node or edge). -
Uses of View in org.cytoscape.view.vizmap.mappings
Methods in org.cytoscape.view.vizmap.mappings with parameters of type View Modifier and Type Method Description void
AbstractVisualMappingFunction. apply(CyRow row, View<? extends CyIdentifiable> view)
-