package org.simantics.modeling.ui.diagram.monitor; import java.util.ArrayList; import java.util.List; import org.simantics.browsing.ui.swt.widgets.impl.ReadFactoryImpl; import org.simantics.db.ReadGraph; import org.simantics.db.exception.DatabaseException; import org.simantics.utils.datastructures.Pair; public class AvailableFontSizeFactory extends ReadFactoryImpl>> { @Override public List> perform(ReadGraph graph, Object input) throws DatabaseException { Integer[] sizes = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72}; ArrayList> result = new ArrayList>(); for(Integer size : sizes) { result.add(Pair.make(size.toString(), (Object)size)); } return result; } }