The Palette view is displayed when you have an EventFlow application open in the EventFlow Editor. By default it opens in the lower left corner of the SB Authoring perspective. Alternatively, the Palette can be docked within the EventFlow. The palette provides easy access to StreamBase components, which you simply drag and drop on the canvas to add to your application.
Only the EventFlow editor has a palette. When no EventFlow editor is open, or when a StreamSQL or text editor is active, the palette is not available.
When an EventFlow application is open, the Palette view displays a set tokens that represent the different application components. You can drag a token into your EventFlow Editor to add an instance of that component to your diagram. The components are organized in these drawers in the Palette:
-
Operators: Contains StreamBase operators and module references, the basic building blocks of EventFlow applications. For more information, see Using StreamBase Operators and Using Application Modules.
-
Data Constructs: StreamBase data constructs, which can be used to store information (either short-term or long-term) processed by associated operators. For more information about data constructs, see Using Data Constructs.
-
Streams: Contains all available user-defined streams, or components that represent entry and exit points into and out of an application. For more information about streams, start in Defining Input Streams.
-
Global Adapters: Contains embedded adapters that are stored in the Global Repository. Embedded adapters are programs that are run as part of your StreamBase application, and that convert data from one source to the StreamBase tuple protocol, and vice versa. A set of embedded adapters is installed with StreamBase Studio.
For more information, start in Using Embedded Adapters.
-
Modules: Contains icons for all the
sbappandssqlmodules that are available to be referenced in the current application. That is, the applications can be either in the current project; in other, referenced projects; or in an external directory that is configured in your project'ssbd.sbconffile. -
Project Adapters: Contains any custom embedded adapters that you add to your project's Java Build Path.
-
Project Operators: Contains any custom Java Operators that you add to your project's Java Build Path. For more information, see Using Java Operators.
The Palette is open only when an EventFlow editor is open and active. When no EventFlow editor is open, the Palette view is empty.
Instead of using the Palette view, you can dock the palette inside the EventFlow editor. With an EventFlow application open, click the X in the Palette view's tab to close the view. When the Palette view is closed, a docked Palette appears in the EventFlow editor. As an alternative, you can click the small Menu triangle in the upper right of the Palette view, and select Dock in Diagram Editor (closes view)).
|
The docked palette may initially appear collapsed or expanded. To expand a collapsed palette, hover your cursor over the Palette bar (identified by the title, Palette); to toggle the other way, pass the cursor over the Palette bar and onto the canvas. Finally, you can toggle and lock the palette in either state by clicking the small black triangle in the Palette bar.
The palette may be displayed on the left or right side of the editor; you can drag the Palette bar to move it to either side.
The open drawer may also include scroll buttons if the palette is sized too small to display all the contents: the scroll control is a small black arrow in the top or bottom bar of the drawer.
The preceding example shows both forms of the same palette, and it points to the Show, Hide, and scroll buttons.
To close a docked palette and return to the Palette view, click → and choose the Palette view.
You can change the way palettes are displayed.
To change the size or location of a docked palette, right-click its title bar and choose the (left) or (right) option.
To control other settings, right-click anywhere inside the Palette view or docked palette and choose one of the following menu items:
-
Display icons and text in different ways.
-
-
: Displays the Settings dialog, where you can change these settings and a few more.
The Palette Settings dialog controls the same layout and icon size options displayed in the menu. In addition, it controls the following options:
-
Font: Specifies the fonts used to display labels and other text in the palette. Click to choose font options available on your system.
-
Drawer options: Specifies how drawers are opened and closed.
To display a context-sensitive Help view or an InfoPop that provides a brief description of the view and links to more information, click any area within the view and then press F1 on Windows, or Ctrl-F1 on Linux. For information about managing the windows, Studio Tips and Tricks.
