Package org.gephi.visualization.opengl.compatibility.objects

Examples of org.gephi.visualization.opengl.compatibility.objects.Edge2dModel


            } else {
                weight = edge.getWeight(timeInterval.getLow(), timeInterval.getHigh());
            }
            minWeight = Math.min(minWeight, weight);
            maxWeight = Math.max(maxWeight, weight);
            Edge2dModel obj = (Edge2dModel) edge.getEdgeData().getModel();
            if (obj == null) {
                //Model is null, ADD
                obj = (Edge2dModel) edgeInit.initModel(edge.getEdgeData());
                engine.addObject(AbstractEngine.CLASS_EDGE, obj);
                if (!undirected && vizConfig.isShowArrows() && !edge.isSelfLoop()) {
                    Arrow2dModel arrowObj = (Arrow2dModel) arrowInit.initModel(edge.getEdgeData());
                    engine.addObject(AbstractEngine.CLASS_ARROW, arrowObj);
                    arrowObj.setCacheMarker(cacheMarker);
                    arrowObj.setWeight(weight);
                    obj.setArrow(arrowObj);
                }
            } else if (!obj.isValid()) {
                engine.addObject(AbstractEngine.CLASS_EDGE, obj);
                if (!undirected && vizConfig.isShowArrows() && !edge.isSelfLoop()) {
                    Arrow2dModel arrowObj = obj.getArrow();
                    engine.addObject(AbstractEngine.CLASS_ARROW, arrowObj);
                    arrowObj.setCacheMarker(cacheMarker);
                    arrowObj.setWeight(weight);
                }
            } else {
                if (!undirected && vizConfig.isShowArrows() && !edge.isSelfLoop() && edge.isDirected()) {
                    Arrow2dModel arrowObj = obj.getArrow();
                    arrowObj.setCacheMarker(cacheMarker);
                    arrowObj.setWeight(weight);
                }
            }
            obj.setWeight(weight);
            obj.setCacheMarker(cacheMarker);
        }

        limits.setMinWeight(minWeight);
        limits.setMaxWeight(maxWeight);
    }
View Full Code Here


            } else {
                weight = edge.getWeight(timeInterval.getLow(), timeInterval.getHigh());
            }
            minWeight = Math.min(minWeight, weight);
            maxWeight = Math.max(maxWeight, weight);
            Edge2dModel obj = (Edge2dModel) edge.getEdgeData().getModel();
            if (obj == null) {
                //Model is null, ADD
                obj = (Edge2dModel) edgeInit.initModel(edge.getEdgeData());
                engine.addObject(AbstractEngine.CLASS_EDGE, obj);
                if (!undirected && vizConfig.isShowArrows() && !edge.isSelfLoop()) {
                    Arrow2dModel arrowObj = (Arrow2dModel) arrowInit.initModel(edge.getEdgeData());
                    engine.addObject(AbstractEngine.CLASS_ARROW, arrowObj);
                    arrowObj.setCacheMarker(cacheMarker);
                    arrowObj.setWeight(weight);
                    obj.setArrow(arrowObj);
                }
            } else if (!obj.isValid()) {
                engine.addObject(AbstractEngine.CLASS_EDGE, obj);
                if (!undirected && vizConfig.isShowArrows() && !edge.isSelfLoop()) {
                    Arrow2dModel arrowObj = obj.getArrow();
                    engine.addObject(AbstractEngine.CLASS_ARROW, arrowObj);
                    arrowObj.setCacheMarker(cacheMarker);
                    arrowObj.setWeight(weight);
                }
            } else {
                if (!undirected && vizConfig.isShowArrows() && !edge.isSelfLoop() && edge.isDirected()) {
                    Arrow2dModel arrowObj = obj.getArrow();
                    arrowObj.setCacheMarker(cacheMarker);
                    arrowObj.setWeight(weight);
                }
            }
            obj.setWeight(weight);
            obj.setCacheMarker(cacheMarker);
        }

        limits.setMinMetaWeight(minWeight);
        limits.setMaxMetaWeight(maxWeight);
    }
View Full Code Here

            }
        } else {
            if (e.getEdge().isSelfLoop()) {
                edge = new SelfLoop2dModel();
            } else {
                edge = new Edge2dModel();
            }
        }
        edge.setObj(e);
        e.setModel(edge);
View Full Code Here

TOP

Related Classes of org.gephi.visualization.opengl.compatibility.objects.Edge2dModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.