1 package org.catacomb.druid.blocks; 2 3 import org.catacomb.druid.build.Context; 4 import org.catacomb.druid.build.GUIPath; 5 import org.catacomb.druid.gui.base.DruPanel; 6 import org.catacomb.druid.gui.edit.DruFloat; 7 8 9 public class FloatSlider extends Panel { 10 11 12 public String label; 13 14 public String store; 15 16 public String action; 17 public double min; 18 public double max; 19 public String style; 20 21 22 23 24 public DruPanel instantiatePanel() { 25 26 DruFloat druf = new DruFloat((min + max) / 2., min, max, style); 27 return druf; 28 } 29 30 public void populatePanel(DruPanel dp, Context ctx, GUIPath gpath) { 31 32 DruFloat druf = (DruFloat)dp; 33 34 druf.setLabel(label); 35 druf.setMethodName(action); 36 druf.setTitle(label); 37 38 } 39 40 41 }