use of maspack.widgets.LabeledComponentBase in project artisynth_core by artisynth.
the class HydrostatModel method createBundlesPanel.
public void createBundlesPanel(String[] names) {
bundlesPanel = new ControlPanel("Bundles", "LiveUpdate");
for (int i = 0; i < names.length; i++) {
LabeledComponentBase c = bundlesPanel.addWidget(names[i], this, "bundles/" + names[i] + ":excitation", 0.0, 1.0);
if (c != null)
c.setLabelFontColor(Color.getHSBColor((float) i / names.length, 1f, 1f));
}
bundlesPanel.pack();
bundlesPanel.setVisible(true);
}
use of maspack.widgets.LabeledComponentBase in project artisynth_core by artisynth.
the class HydrostatModel method createExcitersPanel.
public void createExcitersPanel(String[] names) {
exciterPanel = new ControlPanel("Exciters", "LiveUpdate");
for (int i = 0; i < names.length; i++) {
LabeledComponentBase c = exciterPanel.addWidget(names[i], this, "exciters/" + names[i] + ":excitation", 0.0, 1.0);
if (c != null)
c.setLabelFontColor(Color.getHSBColor((float) i / names.length, 1f, 1f));
}
exciterPanel.pack();
exciterPanel.setVisible(true);
}
Aggregations