/usr/share/doc/libjgraph-java-doc/examples/com/jgraph/example/fastgraph/FastEdge.java is in libjgraph-java-doc 5.12.4.2+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /*
* Copyright (c) 2005, David Benson
*
* See LICENSE file in distribution for licensing details of this source file
*/
package com.jgraph.example.fastgraph;
import org.jgraph.graph.AttributeMap;
import org.jgraph.graph.DefaultEdge;
public class FastEdge extends DefaultEdge {
public FastEdge(Object userObject, AttributeMap storageMap) {
super(userObject, storageMap);
}
/**
* Sets the attributes.
* @param attributes The attributes to set
*/
public void setAttributes(AttributeMap attributes) {
if (attributes == null)
attributes = new AttributeMap(1, 1.0f);
this.attributes = attributes;
}
}
|