阅读:8781回复:1
问题贴
HtmlTagFigure 类
public void initFigure() { content.getChildren().clear(); model_figure.clear(); AbstractTag tagComponent = ((HtmlTag) model).getTagComponent(); tagComponent.getFigure(content, model_figure, viewer); params.setParams(tagComponent.getStyle(viewer), viewer, ((HtmlTag) model).get$key()); checkError(); }HtmlParams 类 public void setParams(Map<String, String> css, HtmlViewer viewer, String $key) { this.css = css; for (Map.Entry<String, String> entry : css.entrySet()) { System.out.println("key= " + entry.getKey() + " and value= " + entry.getValue()); } ratio = XHtmlUtils.getRatioWidth(css.get("width"), 0); width = XHtmlUtils.getPXWidth(css.get("width"), 0); height = XHtmlUtils.getPXWidth(css.get("height"), 0); corners = XHtmlUtils.getPXWidth(css.get(XHtmlConstants.CSS.CORNERS), 0); this.$key = $key; this.viewer = viewer; } 然后就不知道跳到什么地方,怎样把文字和属性画出来的 |
|