Tivoli Monitoring, Version 6.2

Graphic view

The graphic view provides a canvas for you to cover with icons that represent the Navigator items and any event indicators. You might create, for example, a graphic view showing your company's floor plan or organization chart.

Adding a graphic view to the workspace
Graphic view toolbar
Graphic view style properties
Creating a custom background image
Creating custom iconsChanging the default graphic or style sheet

Required permissions Your user ID must have Workspace Author Mode permission to use this function.

Adding a graphic view to the workspace

  1. Open the workspace where you want the view.

  2. If you want the view to occupy a new pane, click  split vertically Split Vertically or  split horizontally Split Horizontally in one of the views.

  3. Click  graphic viewGraphic View.

    The mouse pointer changes to the view icon (hand icon in Linux). If you get the wrong icon or decide not to add the view, press Escape or click somewhere in the toolbar.

  4. Click inside the view where you want the graphic.

    After you click, the old view is replaced by the default graphic, overlaid with icons representing the child items of the current Navigator item.

  5. If you want to change the background image or the style of the icons or their labels, edit the Graphic view style properties.

  6. Click  selectSelect, then drag icons into position; use this and other tools in the Graphic view toolbar to manipulate the view.

  7. If you want to add other Navigator items to the view, drag them from the Navigator view.

    You can drag items one at a time or use Ctrl+click to select multiple items, then drag them as a group. Be careful to drag and not click, which selects and opens the workspace for that Navigator item.

  8. To keep the graphic view in this workspace for future work sessions, do one of the following:

Tip:
If a new item appears on the Navigator after you created the graphic view, you can add it at any time by dragging its name from the Navigator view to the graphic view; if an item gets removed from the Navigator, you can remove its icon by selecting it with  select  clear

Graphic view toolbar

The graphic view has these tools for adjusting the view and the icons:

 reload style sheetsReload Stylesheets

Resets the view and refreshes the icon style. It is useful if you are working with a view and the icons change state or move around unexpectedly.

 actual size Actual Size

Displays graphics at 100%. Suitable for raster images such as .gif, .jpeg and .png files. Not applicable to map files and is disabled when a map background displays.

If you clicked  fit to contents Fit to Contents, Actual Size returns the background graphic and icons to their original size.

 fit to contents Fit to Contents

Scales the view so that all icons are visible. This is useful when you have added or removed icons. Click Actual Size to go back to original size.

 zoom Zoom in

Zooms in on the view to see an enlarged version.

 zoom out Zoom out

Zooms the view out to a smaller size.

 zoom box Zoom Box

Expands or contracts the view to fit a selected area.

 panPan

Pans the image including background and icons.

 overviewOverview

Opens the overview window. The Overview window has a box, which you can grab to pan the image.

 selectSelect

Selection mode. This is a toggle tool: click it again to turn off selection. Use the Select tool to drag an icon into position or to select it for removal. You can click and drag from one point to the opposite corner to select a group of icons, or use Shift+click to select multiple icons.

 clearClear

Removes the icons that are highlighted with the Select tool.

 grid Grid

Shows or hides the grid. This is a toggle tool: click it again to turn off the grid. It is especially useful as a guide for positioning icons on an even plane.

 undo Undo

Voids the last action.

 redo Redo

Repeats the last voided action.

 photoSnapshot

Takes a snapshot photo of the viewable area. You can save the snapshot as a PNG (Portable Network Graphic) file by clicking  export Export in the lower-right corner of the snapshot window. (See also the Tip under Graph in this topic.)

 printPrint

Prints the active view.

Graphic view style properties

The graphic view consists of a header or footer, a background map or image, and icons.

You can edit the style properties of each of these areas to control their appearance.

 Edit view properties

To edit the properties

  1. Click Properties editor - view in the graphic view title bar.

  2. Click the area of the thumbnail graphic corresponding to the area you want to work with and edit it as described below for Graph (plot area), Header or Footer.

    If the preview does not refresh as you edit, click Test to see how the view will look with your style changes. If the graphic view is showing behind the window, you can click Apply to see your changes in the full graphic view.

  3. When you are finished editing the graphic view properties, save them by clicking Apply if you want to keep the window open or OK to close the window.

  4. To keep the changes you made to the view, click  saveSave.

Graph

On this tab you can select the background for the graphic view and specify a stylesheet for any text displayed.

The icon used for the large and small icon style matches the icon of the Navigator item (such as Enterprise Navigator item ,  system ,  computer ,  agent , and node ).

Header

Use the Header tab to add a header to the graph, specify the text that appears in the header, and the style of the text.

Use the Footer tab to add a footer to the graph, specify the text that appears in the header, and the style of the text.

Creating a custom background image

You can also use your own non-georeferenced images for the graphic view background, so long as they are of type PNG, JPG or GIF.

Note:
This release of Tivoli Enterprise Portal does not support the addition of geo-referenced maps.
  1. Create the image you want to use as a background in a graphical editor and save as a .PNG, .JPG or .GIF file, using a one-word name (underscores are acceptable).

    Use only ASCII characters in the filename. Names that use characters outside the ASCII code range will not be displayed in the list of available files when the user browses to select one.

  2. Copy the image to:

    <itm_installdir>

       open foldercnb (Windows); cw (Linux)

        open folderclasses

         open foldercandle

          open folderfw

           open folderresources

            open folderbackgrounds

             open folderuser

  3. After adding the graphic view to a workspace, click Properties editor - workspace Properties.

  4. Click the middle (plot area) of the thumbnail graphic.

  5. In the Background area, click Radio button selectedImage.

  6. If you want the image to shrink or expand to fit the full view space, select Check box selected Fit to view.

    If you leave this option cleared, the image will retain its original size; if it is larger than the view space, scroll bars are displayed; if it is smaller than the view space, it will be placed at the top left corner with white space fill-in.

  7. Click Browse, and select the image you added in Step 1 from the list of images under background/users.

  8. Click Apply if you can see the graphic view is showing behind the window and want to see how your image will look in the view space.

Creating custom icons

Tivoli Enterprise Portal uses various icons to represent the different levels and items in the Navigator. Those same icons are applied to the background image in the graphic view. You can change the size of the icons and the position of the labels by the style sheet for the view. You can also create your own icons to substitute any or all of the provided icons for graphic view. For example, you might want to use your company logo instead of the Enterprise Navigator item to represent the Enterprise. The basic steps have you:

A. Create icon images
B. Create a style sheet
C. Apply new style sheet

After creating the icon images, you need to copy one of the Tivoli Enterprise Portal style sheets and edit it to reference your images, then update the graphic view style properties to use the new style sheet. The new style sheet and icons must be saved on the portal server computer.

A. Create icon images
  1. Create a one-word .GIF or .JPG image file for every Navigator item icon you want to change in the graphic view. Tivoli Enterprise Portal also provides a set of large and small icons you can use located in the icons\user folder (see Step 2):  business_services  human_resources  merchandising  retail  shipping  business_services_small  human_resources_small  merchandising_small  retail_small  shipping_small

    GIFs can have transparent backgrounds and can be animated.

    If the graphic is an irregular (non-linear) shape and the background color different from that of the background image, set a transparent background and save the image in GIF format.

    Create icons as close to 32 x 32 pixels (large_icon_) or 20 x 20 pixels (small_icon_) as possible. An image greater or smaller will be resized to those dimensions automatically and might look distorted. Also, the image will retain proper proportions only if it is the same height and width. For example, if your original icon is 76 x 54, resize it to fit 32 x 32 if you will be using one of the large icon style sheets.

    Use only ASCII characters in the filename. Names that use characters outside the ASCII code range will not be displayed in the list of available files when the user browses to select one.

  2. Copy the icon images to:

    <itm_installdir>

       open foldercnb (Windows); cw (Linux)

        open folderclasses

         open foldercandle

          open folderfw

           open folderresources

            open foldericons

             open folderuser

B. Create a style sheet
  1. Change to the Navigator view whose graphic view icons you plan to change.

    Having the Navigator open while you type the item names in the style sheet (step 4) ensures their correct spelling and letter casing.

  2. Identify the Tivoli style sheet most like the one you want. It must be one of the large_icon_ or small_icon_ style sheets (not shape_ or parent_).

    The style sheet controls the color, size and position of the text labels (Navigator item names), as well as any icons you do not replace with custom icons.

  3. Make a copy of the style sheet in the following directory:

    <itm_installdir>

       open foldercnb (Windows); cw (Linux)

        open folderclasses

         open foldercandle

          open folderfw

           open folderresources

            open folderstyles

    giving it a one-word name that identifies it as one you customized, and place it in the child directory:

     open folder user
  4. Open your new style sheet in a text editor such as Notepad.

  5. Edit the @import lines at the top of the file to insert ../ in front of the $.

    Example: @import “../$base.css”; @import “../$baseLargeIcon.ss”; @import “../$baseNodeLabelBottom.css”;

  6. Copy and paste the following entry at the end of the file, one line for each Navigator item whose graphic view icon you want to change.

    node[name = “My Item Name”]{iconImage: url(../../icons/user/iconname.gif);}
  7. Replace Your Item Name Here with the exact name of the Navigator item; replace iconname.gif with the exact name of the icon graphic file.

    Be careful to follow the syntax exactly. Any errors, such as missing or extra parentheses, quotes, or misspellings will give unpredictable results. The symptom might be that your style sheet change did not affect the graphic view or the view contents disappear.

  8. Save the text file.

C. Apply new style sheet
  1. Open the workspace with the graphic view to which you want to apply your style sheet; -OR- add a graphic view to the current workspace.

  2. In the graphic view title bar click Properties editor - viewProperties.

  3. Click the Graph area of the thumbnail graphic.

  4. Adjust the Background settings as needed.

  5. In the Style field click Browse, select the custom style sheet from the Select Name list, and click OK.

    Your style sheets are displayed as user/style at the end of the list. If you do not see your style sheet in the list, check that you saved it in the right directory and that you did not start the name with $. If you are in browser mode, make sure you added a style entry to $_index.txt and that you spelled it correctly.

    You can drag the border between Preview and Style to make the preview image larger.

  6. When you are finished editing the graphic view properties , click Apply, or click OK to close the window.

  7. To keep the changes you made to the view, click  Save workspace Save Workspace.

Notes:
  1. When you erase the background image name (no image selected) or use a non-map background, you usually need to save the workspace, switch to another workspace, then return to it to see the correct icon sizes. This is required whenever the image sizes do not scale as you expect.
  2. After you have created a user style sheet and associated it with a graphic view, you can make further changes with a text editor and see the effect without reopening the Properties editor. To do so, save the changed file, click  reload style sheets Reload Stylesheet to refresh the style sheet and see the new icons.
  3. If you want your new style sheet to be applied automatically to all new graphic views you create, you can make it the default.

Changing the default graphic or style sheet

When you drop a new graphic view onto the workspace, the background that displays is the default image. The style of the icons overlaying the graphic is also the default. You can change the graphic and the styling through the Properties editor Style tab. If you have a graphic you would prefer as the default to the one from Tivoli, the world map, you can make it the default. The same applies if you have a style sheet you would prefer as the default.

Note:
The graphic view backgrounds and styles directories reside on the browser client where the Tivoli Web server is installed, which is normally on the same system as the portal server.
Default map graphic
  1. Rename the original default.jpg in:

    <itm_installdir>

       open foldercnb (Windows); cw (Linux)

        open folderclasses

         open foldercandle

          open folderfw

           open folderresources

            open folderbackgrounds

    to default_backup.jpg.
  2. Copy the graphic you want to be the default to the same directory and name it default.jpg.

Default style sheet
  1. Rename the original default.css style sheet in:

    <itm_installdir>

       open foldercnb (Windows); cw (Linux)

        open folderclasses

         open foldercandle

          open folderfw

           open folderresources

            open folderstyles

    to default_backup.css.
  2. Copy the style sheet you want to be the default to the same location and rename it to default.css.

    All users connecting to this portal server will get this default style sheet whenever they create a new Graphic view.

An attribute you designate to further qualify a situation. You can see the value of the display item in the event workspace and in the message log and event console views.




Feedback

[ Top of Page | Previous Page | Next Page | Contents | Index ]