Search in sources :

Example 1 with SchemeBorder

use of org.eclipse.draw2d.SchemeBorder in project yamcs-studio by yamcs.

the class ScrollbarFigure method createDefaultThumb.

/**
 * Creates the Scrollbar's "thumb", the draggable Figure that indicates the Scrollbar's position.
 */
protected IFigure createDefaultThumb() {
    var thumb = new Panel();
    thumb.setMinimumSize(new Dimension(6, 6));
    thumb.setBackgroundColor(ColorConstants.button);
    thumb.setBorder(new SchemeBorder(CSSSchemeBorder.SCHEMES.BUTTON_CONTRAST));
    return thumb;
}
Also used : Panel(org.eclipse.draw2d.Panel) CSSSchemeBorder(org.csstudio.ui.util.CSSSchemeBorder) SchemeBorder(org.eclipse.draw2d.SchemeBorder) Dimension(org.eclipse.draw2d.geometry.Dimension)

Aggregations

CSSSchemeBorder (org.csstudio.ui.util.CSSSchemeBorder)1 Panel (org.eclipse.draw2d.Panel)1 SchemeBorder (org.eclipse.draw2d.SchemeBorder)1 Dimension (org.eclipse.draw2d.geometry.Dimension)1