Search in sources :

Example 1 with Diagram

use of com.ramussoft.reportgef.gui.Diagram 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;
        }
    };
}
Also used : Bounds(com.ramussoft.reportgef.model.Bounds) Label(com.ramussoft.report.editor.xml.components.Label) AccessRules(com.ramussoft.common.AccessRules) AbstractComponentFactory(com.ramussoft.reportgef.AbstractComponentFactory) Engine(com.ramussoft.common.Engine) Diagram(com.ramussoft.reportgef.gui.Diagram)

Example 2 with Diagram

use of com.ramussoft.reportgef.gui.Diagram 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;
        }
    };
}
Also used : Table(com.ramussoft.report.editor.xml.components.Table) Bounds(com.ramussoft.reportgef.model.Bounds) AccessRules(com.ramussoft.common.AccessRules) AbstractComponentFactory(com.ramussoft.reportgef.AbstractComponentFactory) Engine(com.ramussoft.common.Engine) Diagram(com.ramussoft.reportgef.gui.Diagram)

Example 3 with Diagram

use of com.ramussoft.reportgef.gui.Diagram 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;
        }
    };
}
Also used : Bounds(com.ramussoft.reportgef.model.Bounds) AccessRules(com.ramussoft.common.AccessRules) AbstractComponentFactory(com.ramussoft.reportgef.AbstractComponentFactory) TableColumn(com.ramussoft.report.editor.xml.components.TableColumn) Engine(com.ramussoft.common.Engine) Diagram(com.ramussoft.reportgef.gui.Diagram)

Aggregations

AccessRules (com.ramussoft.common.AccessRules)3 Engine (com.ramussoft.common.Engine)3 AbstractComponentFactory (com.ramussoft.reportgef.AbstractComponentFactory)3 Diagram (com.ramussoft.reportgef.gui.Diagram)3 Bounds (com.ramussoft.reportgef.model.Bounds)3 Label (com.ramussoft.report.editor.xml.components.Label)1 Table (com.ramussoft.report.editor.xml.components.Table)1 TableColumn (com.ramussoft.report.editor.xml.components.TableColumn)1