/* * 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 getAttributes() { if (attributes == null) { attributes = new HashMap(); } attributes.put("shape", "house"); attributes.put("style", "filled"); attributes.put("fontname", "Verdana"); attributes.put("fontsize", "10"); return attributes; } @Override protected String getGraphNodetext() { return getFullUrl(); } }