summaryrefslogtreecommitdiffstats
path: root/Master/Agile Software Development/TestApp/src/testapp/data/PageItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Agile Software Development/TestApp/src/testapp/data/PageItem.java')
-rw-r--r--Master/Agile Software Development/TestApp/src/testapp/data/PageItem.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/Agile Software Development/TestApp/src/testapp/data/PageItem.java b/Master/Agile Software Development/TestApp/src/testapp/data/PageItem.java
new file mode 100644
index 0000000..071539a
--- /dev/null
+++ b/Master/Agile Software Development/TestApp/src/testapp/data/PageItem.java
@@ -0,0 +1,48 @@
+/*
+ * 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 PageItem extends Item {
+
+ @Override
+ public ItemClassification analyse() {
+ return doAnalyse();
+ }
+
+ public PageItem(String url, Item parent) {
+ super(url, parent);
+ itemType = ItemType.PAGE;
+ attributes = getAttributes();
+ }
+
+// public PageItem(String url) {
+// super(url);
+// itemType = ItemType.PAGE;
+// attributes = getAttributes();
+// }
+ @Override
+ protected HashMap<String, String> getAttributes() {
+ if (attributes == null) {
+ attributes = new HashMap<String, String>();
+ }
+ attributes.put("shape", "house");
+ attributes.put("style", "filled");
+ attributes.put("fontname", "Verdana");
+ attributes.put("fontsize", "10");
+ return attributes;
+ }
+
+ @Override
+ protected String getGraphNodetext() {
+ return getFullUrl();
+ }
+}