Search in sources :

Example 1 with AnchorLayout

use of com.servoy.j2db.util.gui.AnchorLayout in project servoy-client by Servoy.

the class DataRendererFactory method setBasicSettings.

private void setBasicSettings(IDataRenderer panel, Color bg, Dimension size, Point location, boolean printing) {
    DataRenderer dr = (DataRenderer) panel;
    if (dr != null) {
        if (bg != null) {
            dr.setBackground(bg);
        }
        if (printing) {
            dr.setLayout(new FixedSpringLayout());
        } else {
            dr.setLayout(new AnchorLayout(size));
            dr.setPreferredSize(size);
        }
        dr.setSize(size);
        dr.setLocation(location);
    }
}
Also used : AnchorLayout(com.servoy.j2db.util.gui.AnchorLayout) FixedSpringLayout(com.servoy.j2db.util.gui.FixedSpringLayout) IDataRenderer(com.servoy.j2db.ui.IDataRenderer)

Aggregations

IDataRenderer (com.servoy.j2db.ui.IDataRenderer)1 AnchorLayout (com.servoy.j2db.util.gui.AnchorLayout)1 FixedSpringLayout (com.servoy.j2db.util.gui.FixedSpringLayout)1