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