Visual Thought User's Guide
[TOC] [Prev] [Next] [Index]
Chapter 15
Drag-and-Drop Palettes
Palettes are Visual Thought windows that contain predefined objects. You can use these objects over and over again in your diagrams. They are called drag-and-drop palettes because, to use them, you click on an object in the Palette window, drag it over to the View window and drop it. Once the object is in the View window, you can move it, resize it, edit it, etc.
Palette Modes
Two Palette Modes
Palette windows have two modes:
Changing Modes in Palettes
You can change a Palette from the Palette mode into the View mode with a single click of the mouse:

Using Palettes in Palette Mode
Palettes in this mode are designed to allow you to easily drag-and-drop objects. Open pre-defined palettes using the File menu: File
Open, and then choose the palette you want.
For easy access, you can choose the Options
Palettes... menu item to pop up a file chooser that already points to the palettes directory.

Saved Palettes automatically have a .vpalette extension appended if necessary.
To close or save palettes in this mode, use your window manager functions or switch to the View mode first, then close the palette as you would a View (e.g., Ctrl-W or File
Close).
Normally, closing a window with the window manager involves clicking on its title bar to bring up a list of possible actions. For example, to close a Palette in Solaris with the OpenWindows window manager, right-click on the Title bar of the Palette to pop up the window manager menu, then select the Quit menu item.
Example of Using a Palette in Palette Mode
To create an object using a Palette:

Objects that are being dragged sometimes change size as they are dragged in and out of Views and Palettes. That is because they are drawn at the zoom factor of the window they are dragged over.

Using Palettes in View Mode
In View mode, Palettes behave exactly like Views. Palettes in this mode are designed to allow you to edit pre-defined objects as well as create and edit your own reusable objects. An example is presented below.
Example of Using a Palette in View Mode
You can create your own palette(s) that contain objects-such as your company logo-that you use repeatedly.
Examples of Two Specific Palettes
This section shows you how to use two different Palettes-the Arrows palette and the Attractors palette.
Arrows Palette
The Arrows palette contains a variety of lines with different arrowheads. To open the Arrows palette,

Attractors Palette
Attractor shapes are unique objects. Unlike regular shapes from other Palettes, attractors allow connections to "snap" only to certain points on their perimeters.

.
Example of the Bus Attractor Shape
The Bus Attractor shape is a special attractor shape. It forces any connections to it to be perpendicular. This property is enforced even if the bus is rotated.
In the example below, the same shapes were attached to a Bus Attractor shape and a regular rectangle. Notice how connections behave differently. Also note that connections point to the center of the rectangle shape.

Visual Thought User's Guide
[TOC] [Prev] [Next] [Index]
webmaster@confluent.com
¨ 1997 Confluent, Inc. All rights reserved.