-
Notifications
You must be signed in to change notification settings - Fork 32
TitledSeparator
An enhanced separator, with a title and/or an image.
The titled separator is composed of a text and optionally an image, initialized by the methods setText()
and setImage()
.
You can change the alignment of the text (left, center, right) by using the method setAlignment(int value)
with the following values : SWT.LEFT, SWT.CENTER and SWT.LEFT.
Finally, you can change the foreground color, the background color and the font by using the setters setForeground()
, setBackground
and setFont()
.
An example called TitledSeparatorSnippet.java is located in the directory src/test/java/org/mihalis/opal/titledSeparator.
This example is also available here : https://github.com/lcaron/opal/blob/master/src/test/java/org/mihalis/opal/titledSeparator/TitledSeparatorSnippet.java