File: FastEdge.java

package info (click to toggle)
libjgraph-java 5.12.4.2%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 7,888 kB
  • sloc: java: 20,619; xml: 135; makefile: 8
file content (26 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (6)
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;
	}
}