use of com.ramussoft.reportgef.AbstractComponentFactory in project ramus by Vitaliy-Yakovchuk.
the class XMLComponentFramefork method createLabalComponentFactory.
private ComponentFactory createLabalComponentFactory() {
return new AbstractComponentFactory() {
@Override
public String getType() {
return "Label";
}
@Override
public Component createComponent(Diagram diagram, Engine engine, AccessRules accessRules, Bounds bounds) {
Label label = new Label();
label.setWidth(((XMLDiagram) diagram).getWidthForCompontns());
return label;
}
@Override
public Component getComponent(Engine engine, AccessRules accessRules, Bounds bounds) {
return null;
}
};
}
use of com.ramussoft.reportgef.AbstractComponentFactory in project ramus by Vitaliy-Yakovchuk.
the class XMLComponentFramefork method createTableComponentFactory.
private ComponentFactory createTableComponentFactory() {
return new AbstractComponentFactory() {
@Override
public String getType() {
return "Table";
}
@Override
public Component createComponent(Diagram diagram, Engine engine, AccessRules accessRules, Bounds bounds) {
Table label = new Table();
label.setWidth(((XMLDiagram) diagram).getWidthForCompontns());
return label;
}
@Override
public Component getComponent(Engine engine, AccessRules accessRules, Bounds bounds) {
return null;
}
};
}
use of com.ramussoft.reportgef.AbstractComponentFactory in project ramus by Vitaliy-Yakovchuk.
the class XMLComponentFramefork method createTableColumnFactory.
private ComponentFactory createTableColumnFactory() {
return new AbstractComponentFactory() {
@Override
public String getType() {
return "TableColumn";
}
@Override
public Component createComponent(Diagram diagram, Engine engine, AccessRules accessRules, Bounds bounds) {
TableColumn label = new TableColumn();
label.setWidth(((XMLDiagram) diagram).getWidthForCompontns());
return label;
}
@Override
public Component getComponent(Engine engine, AccessRules accessRules, Bounds bounds) {
return null;
}
};
}
Aggregations