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);
}
}
Aggregations