本文整理汇总了Java中edu.uci.ics.jung.visualization.picking.PickedInfo类的典型用法代码示例。如果您正苦于以下问题:Java PickedInfo类的具体用法?Java PickedInfo怎么用?Java PickedInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PickedInfo类属于edu.uci.ics.jung.visualization.picking包,在下文中一共展示了PickedInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: transform
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public Stroke transform(Node v)
{
PickedInfo<Node> pi = vv.getPickedVertexState();
Graph<Node, Edge> graph = vv.getModel().getGraphLayout().getGraph();
if (highlight)
{
if (pi.isPicked(v))
return heavy;
else
{
for(Node w : graph.getNeighbors(v)) {
// for (Iterator iter = graph.getNeighbors(v)v.getNeighbors().iterator(); iter.hasNext(); )
// {
// Vertex w = (Vertex)iter.next();
if (pi.isPicked(w))
return medium;
}
return light;
}
}
else
return light;
}
开发者ID:andreiolaru-ro,项目名称:AmIciTy-Grph,代码行数:25,代码来源:NodeStrokeTransformer.java
示例2: PickableEdgePaintTransformer
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
/**
*
* @param pi specifies which vertices report as "picked"
* @param draw_paint <code>Paint</code> used to draw edge shapes
* @param picked_paint <code>Paint</code> used to draw picked edge shapes
*/
public PickableEdgePaintTransformer(PickedInfo<E> pi, Paint draw_paint, Paint picked_paint) {
if (pi == null)
throw new IllegalArgumentException("PickedInfo instance must be non-null");
this.pi = pi;
this.draw_paint = draw_paint;
this.picked_paint = picked_paint;
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:14,代码来源:PickableEdgePaintTransformer.java
示例3: PickableVertexPaintTransformer
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
/**
*
* @param pi specifies which vertices report as "picked"
* @param draw_paint <code>Paint</code> used to draw vertex shapes
* @param fill_paint <code>Paint</code> used to fill vertex shapes
* @param picked_paint <code>Paint</code> used to fill picked vertex shapes
*/
public PickableVertexPaintTransformer(PickedInfo<V> pi,
Paint fill_paint, Paint picked_paint)
{
if (pi == null)
throw new IllegalArgumentException("PickedInfo instance must be non-null");
this.pi = pi;
this.fill_paint = fill_paint;
this.picked_paint = picked_paint;
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:17,代码来源:PickableVertexPaintTransformer.java
示例4: PickableVertexIconTransformer
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
/**
*
* @param pi specifies which vertices report as "picked"
* @param icon <code>Icon</code> used to represent vertices
* @param picked_icon <code>Icon</code> used to represent picked vertices
*/
public PickableVertexIconTransformer(PickedInfo<V> pi, Icon icon, Icon picked_icon)
{
if (pi == null)
throw new IllegalArgumentException("PickedInfo instance must be non-null");
this.pi = pi;
this.icon = icon;
this.picked_icon = picked_icon;
}
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:15,代码来源:PickableVertexIconTransformer.java
示例5: ViwnVertexFillColor
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
/**
* @param pi
* @param root_node
*/
public ViwnVertexFillColor(PickedInfo<ViwnNode> pi, ViwnNode root_node) {
this.pi = pi;
root = root_node;
}
开发者ID:CLARIN-PL,项目名称:WordnetLoom,代码行数:9,代码来源:ViwnVertexFillColor.java
示例6: ViwnVertexFillColor
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
/**
* @param pi
* @param root_node
*/
public ViwnVertexFillColor(PickedInfo<ViwnNode> pi, ViwnNode root_node) {
this.pi = pi;
this.root = root_node;
}
开发者ID:CLARIN-PL,项目名称:WordnetLoom,代码行数:9,代码来源:ViwnVertexFillColor.java
示例7: SeedDrawColor
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public SeedDrawColor(PickedInfo<V> pi)
{
this.pi = pi;
seed_coloring = false;
}
开发者ID:marcvanzee,项目名称:mdp-plan-revision,代码行数:6,代码来源:PluggableRendererDemo.java
示例8: SeedFillColor
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public SeedFillColor(PickedInfo<V> pi)
{
this.pi = pi;
seed_coloring = false;
}
开发者ID:marcvanzee,项目名称:mdp-plan-revision,代码行数:6,代码来源:PluggableRendererDemo.java
示例9: VertexStrokeHighlight
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public VertexStrokeHighlight(Graph<V,E> graph, PickedInfo<V> pi)
{
this.graph = graph;
this.pi = pi;
}
开发者ID:marcvanzee,项目名称:mdp-plan-revision,代码行数:6,代码来源:PluggableRendererDemo.java
示例10: FillColorTransformer
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public FillColorTransformer(PickedInfo<Node> pi)
{
_nodePicked = pi;
}
开发者ID:darrudi,项目名称:HPR,代码行数:5,代码来源:KnowledgeExplorer.java
示例11: VisualEdgeDrawColor
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public VisualEdgeDrawColor(PickedInfo<VisualEdge> pi)
{
this.picked = pi;
}
开发者ID:pmanousis,项目名称:Hecataeus,代码行数:5,代码来源:VisualEdgeDrawColor.java
示例12: VisualEdgeColor
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public VisualEdgeColor(PickedInfo<VisualEdge> pi)
{
this.picked = pi;
}
开发者ID:pmanousis,项目名称:Hecataeus,代码行数:5,代码来源:VisualEdgeColor.java
示例13: VisualNodeStroke
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public VisualNodeStroke(PickedInfo<VisualNode> pi, VisualGraph g ,VisualizationViewer vv){
this.picked = pi;
this.graph = g;
this.viewer = vv;
}
开发者ID:pmanousis,项目名称:Hecataeus,代码行数:7,代码来源:VisualNodeStroke.java
示例14: VisualClusteredNodeColor
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public VisualClusteredNodeColor(PickedInfo<VisualNode> pi){
this.picked = pi;
// this.myNode = node;
}
开发者ID:pmanousis,项目名称:Hecataeus,代码行数:5,代码来源:VisualClusteredNodeColor.java
示例15: VisualNodeColor
import edu.uci.ics.jung.visualization.picking.PickedInfo; //导入依赖的package包/类
public VisualNodeColor(PickedInfo<VisualNode> pi)
{
this.picked = pi;
}
开发者ID:pmanousis,项目名称:Hecataeus,代码行数:5,代码来源:VisualNodeColor.java
注:本文中的edu.uci.ics.jung.visualization.picking.PickedInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论