summaryrefslogtreecommitdiffstats
path: root/Master/Agile Software Development/TestApp/src/testapp/data/LinkItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Agile Software Development/TestApp/src/testapp/data/LinkItem.java')
-rw-r--r--Master/Agile Software Development/TestApp/src/testapp/data/LinkItem.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/Master/Agile Software Development/TestApp/src/testapp/data/LinkItem.java b/Master/Agile Software Development/TestApp/src/testapp/data/LinkItem.java
new file mode 100644
index 0000000..600163d
--- /dev/null
+++ b/Master/Agile Software Development/TestApp/src/testapp/data/LinkItem.java
@@ -0,0 +1,50 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package testapp.data;
+
+import java.util.HashMap;
+import java.util.logging.*;
+
+/**
+ *
+ * @author sven
+ */
+public class LinkItem extends Item {
+
+ @Override
+ public ItemClassification analyse() {
+ return doAnalyse();
+ }
+
+ public LinkItem(String url, Item parent) {
+ super(url, parent);
+ itemType = ItemType.LINK;
+ }
+// public LinkItem(String url) {
+// super(url);
+// itemType = ItemType.LINK;
+// }
+
+ @Override
+ protected HashMap<String, String> getAttributes() {
+ if (attributes == null) {
+ attributes = new HashMap<String,String>();
+ }
+ attributes.put("shape", "box");
+ attributes.put("style", "filled");
+ attributes.put("fontname", "Verdana");
+ attributes.put("fontsize", "10");
+ return attributes;
+ }
+ @Override
+ protected String getGraphNodetext() {
+ //return this.filename;
+ if (this.filename.compareTo("")!=0)
+ return "link to: "+this.filename;
+ else
+ return "link to: "+this.getUrl();
+ }
+}