Search in sources :

Example 1 with DashboardLayout

use of org.netxms.ui.eclipse.dashboard.layout.DashboardLayout in project netxms by netxms.

the class DashboardControl method createContent.

/**
 * Create dashboard's content
 */
private void createContent() {
    setBackground(SharedColors.getColor(SharedColors.DASHBOARD_BACKGROUND, getDisplay()));
    DashboardLayout layout = new DashboardLayout();
    layout.numColumns = dashboard.getNumColumns();
    layout.marginWidth = embedded ? 0 : 15;
    layout.marginHeight = embedded ? 0 : 15;
    layout.horizontalSpacing = 10;
    layout.verticalSpacing = 10;
    setLayout(layout);
    for (final DashboardElement e : elements) {
        createElementWidget(e);
    }
}
Also used : DashboardLayout(org.netxms.ui.eclipse.dashboard.layout.DashboardLayout) DashboardElement(org.netxms.client.dashboards.DashboardElement)

Aggregations

DashboardElement (org.netxms.client.dashboards.DashboardElement)1 DashboardLayout (org.netxms.ui.eclipse.dashboard.layout.DashboardLayout)1