use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class GridLayoutModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new IntegerProperty(PROP_NUMBER_OF_COLUMNS, "Number of Columns", WidgetPropertyCategory.Display, 3, 1, 1000));
addProperty(new BooleanProperty(PROP_FILL_GRIDS, "Fill Grids", WidgetPropertyCategory.Display, false));
addProperty(new IntegerProperty(PROP_GRID_GAP, "Grid Gap", WidgetPropertyCategory.Display, 2, 0, 100));
removeProperty(PROP_FONT);
}
use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class PolyLineModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
removeProperty(PROP_LINE_COLOR);
addProperty(new ComboProperty(PROP_ARROW, "Arrows", WidgetPropertyCategory.Display, ArrowType.stringValues(), 0));
addProperty(new BooleanProperty(PROP_FILL_ARROW, "Fill Arrow", WidgetPropertyCategory.Display, true));
addProperty(new IntegerProperty(PROP_ARROW_LENGTH, "Arrow Length", WidgetPropertyCategory.Display, 20, 1, 1000));
}
use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class RoundedRectangleModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new IntegerProperty(PROP_CORNER_WIDTH, "Corner Width", WidgetPropertyCategory.Display, DEFAULT_CORNER_WIDTH));
addProperty(new IntegerProperty(PROP_CORNER_HEIGHT, "Corner Height", WidgetPropertyCategory.Display, DEFAULT_CORNER_HEIGHT));
addProperty(new ColorProperty(PROP_BACKGROUND_GRADIENT_START_COLOR, "Background Gradient Start Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_WHITE));
addProperty(new ColorProperty(PROP_FOREGROUND_GRADIENT_START_COLOR, "Foreground Gradient Start Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_WHITE));
addProperty(new BooleanProperty(PROP_GRADIENT, "Gradient", WidgetPropertyCategory.Display, false));
}
use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class SashContainerModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, true));
addProperty(new ComboProperty(PROP_SASH_STYLE, "Sash Style", WidgetPropertyCategory.Display, SashContainerFigure.SashStyle.stringValues(), 2));
addProperty(new DoubleProperty(PROP_SASH_POSITION, "Sash Position", WidgetPropertyCategory.Display, 0.5));
addProperty(new IntegerProperty(PROP_SASH_WIDTH, "Sash Width", WidgetPropertyCategory.Display, 3, 1, 100));
// addProperty(new BooleanProperty(PROP_LOCK_CHILDREN, "Lock Children",
// WidgetPropertyCategory.Behavior, false));
addProperty(new BooleanProperty(PROP_PANEL1_AUTO_SCALE_CHILDREN, "Auto Scale Children (at Runtime)", new WidgetPropertyCategory() {
@Override
public String toString() {
return "Panel 1 (Left/Up)";
}
}, false));
addProperty(new BooleanProperty(PROP_PANEL2_AUTO_SCALE_CHILDREN, "Auto Scale Children (at Runtime)", new WidgetPropertyCategory() {
@Override
public String toString() {
return "Panel 2 (Right/Down)";
}
}, false));
}
use of org.csstudio.opibuilder.properties.IntegerProperty in project yamcs-studio by yamcs.
the class AbstractBoolWidgetModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new IntegerProperty(PROP_BIT, "Bit", WidgetPropertyCategory.Behavior, -1, -1, 63));
addProperty(new BooleanProperty(PROP_SHOW_BOOL_LABEL, "Show Boolean Label", WidgetPropertyCategory.Display, false));
addProperty(new StringProperty(PROP_ON_LABEL, "On Label", WidgetPropertyCategory.Display, DEFAULT_ON_LABEL));
addProperty(new StringProperty(PROP_OFF_LABEL, "Off Label", WidgetPropertyCategory.Display, DEFAULT_OFF_LABEL));
addProperty(new ColorProperty(PROP_ON_COLOR, "On Color", WidgetPropertyCategory.Display, DEFAULT_ON_COLOR));
addProperty(new ColorProperty(PROP_OFF_COLOR, "Off Color", WidgetPropertyCategory.Display, DEFAULT_OFF_COLOR));
addProperty(new ComboProperty(PROP_DATA_TYPE, "Data Type", WidgetPropertyCategory.Behavior, new String[] { "Bit", "Enum" }, 0));
addProperty(new StringProperty(PROP_ON_STATE, "On State", WidgetPropertyCategory.Behavior, ""));
addProperty(new StringProperty(PROP_OFF_STATE, "Off State", WidgetPropertyCategory.Behavior, ""));
addProperty(new ComboProperty(PROP_BOOL_LABEL_POS, "Boolean Label Position", WidgetPropertyCategory.Display, BoolLabelPosition.stringValues(), 0));
}
Aggregations