/* * 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 StyleItem extends Item { @Override public ItemClassification analyse() { return doAnalyse(); } public StyleItem(String url, Item parent) { super(url, parent); itemType = ItemType.STYLE; } // public StyleItem(String url) { // super(url); // itemType = ItemType.STYLE; // } @Override protected HashMap getAttributes() { if (attributes == null) { attributes = new HashMap(); } attributes.put("shape", "septagon"); attributes.put("style", "filled"); attributes.put("fontname", "Verdana"); attributes.put("fontsize", "10"); return attributes; } @Override protected String getGraphNodetext() { //return this.filename; return "CSS STYLE "+this.url; } }