Show an icon in the node of Network Graphics

Dear guys,
Is it possible to show a system icon like "ICON_CHECKED" in the nodes of a network/hierarchy graphics ?
Thanks a lot.
Donny

Dear guys,
I know in the IMG->Frontservice, we can define the Network/Hierarchy fiels' properties. Like GraphSymbolFile, we can set a bmp image to show a icon.
But it seems this setting is a bmp file which need this file exists in the client PC.
(in C:\Program Files\SAP\FrontEnd\SAPgui). If the file doesn't exist in client,
this fiels will be empty. So for my case, I believe it is better to show a system icon here.
Does anyone try to use this before ?
Thank you very much.
Donny

Similar Messages

  • How to add an icon to a node in network graphics?

    Hi all,
      Do you know how to add an icon (any SAP' icon) to a node in network graphics?
    Just like a tree can have a leaf with icon (for example, a person icon, a plant icon), can a node in network graphics have an icon also?  and how to implement in network graphics?
      I already studied t-code gral: NETZOCX1
    NETZOCX2
    NETZ_BO1
    NETZ_BO2
    NETZ_BO3
    But no actual output.
    It seems using node type in network graphics can help to determine different icons, could you give some suggestion or examples?
    Thanks a lot!!

    Hi,
      Thanks for you link about SAP Graphics Framework. It seems not very useful in our case.
      Since we are using Control Framework now, there is Tree and Networks in it. Can a node in a network have an icon (such as person icon, plant icon)? I know a leaf in a tree in Control Framework can have an icon.
      Anybody has comments or suggestion?
      Thanks!

  • .bmp files do not show as icons in the event library - I am having to convert them to .jpg  to achieve a display

    Although .bmp files are to some extent supported, I find that on importing them they do not show as icons in the event library. I am having to convernt them to .jpg files to produce this result.   Am I doing something wrongly, or is this the experience of others as well?

    Yes - I've posted one of the files to Dropbox and it appears perfectly in picture form on my IPad.   So it seems there is nothing wrong with the files.  I'm even more puzzled now!  I'll try to upload a smaller (less than 2mb) file here.  The files I am using in the project, which is a kind of family history using stills,  are a complete mix of types - tif, jpg, Canon raw(cr2), psd and bmp.   Some, including, I suspect, many of the .bmps are scans from old prints, as this one.

  • Show "connecting" icon on the view

    Hi,
    Please give me a hint how to do the following:
    I would like to show connecting icon with the label "connecting" next to it in the center of the existing view when I perform loading data from Internet in my application. After the operation is completed I would like to hide this dialog.
    Is here any recommended way of doing so?
    Thanks!

    Call setCloseAction(new TabCloseAction()) on CustomTab which TabCloseAction inherits AbstractAction class as neither setCloseable nor setShowSelectedCloseButton is need.

  • XFCE thunar is showing 2 icons of the same partition[SOLVED]

    hi again guys,
    after upgrading to systemd, thunar is showing 2 icons of the same partition any one know why this is happening ? and how i resolve this issue
    Solution: Upgrading to Thunar 1.3.0-4 fixes this issue
    Last edited by pyarch (2012-11-04 01:52:26)

    pyarch wrote:hi again guys,
    after upgrading to systemd, thunar is showing 2 icons of the same partition any one know why this is happening ? and how i resolve this issue
    http://imageshack.us/scaled/landing/59/thunar.jpg
    It seems fixed in thunar.Upgrading thunar should solve this problem.

  • How to show mandatory icon after the Label text?

    Hi ,
    I am using JDeveloper 11.1.1.4.
    My Scenario is I have  <af:inputtext>  with Property required="true".
    Label look like ,
    "*Name but I want to show like Name* .I want to show the * icon after the label text .
    How to achieve this in ADF ? ..
    Thanks ...

    Hi rfh,
    Thanks for the updates ,
    I tried with ,
    .AFRequiredIconStyle
      float:right;
    this CSS moving the * icon to right side but not after the label ,It's moveing infront of the InputText Value the output looks like,
    Label   *Value
    I tried with ,
    AFRequiredIcon:alias
        content:inhibit;
    It's diabled * icon entire application .This solution is ok ...But I want to diable * icon for only particular places.
    How to hide * icon for particular fields ? ......
    Thanks......

  • How do I get a Vista 64 bit XP machine to show a "+" icon on the tab bar to "Open a new tab" and the "Open a new tab" icon on the far right of the Bookmarks tool bar?

    I have Firefox 4.0.1 installed on two laptops, one with Windows Vista, 64 bit and the other with Windows XP. Both machines have the "Open a new tab" icon on the far right of the Bookmarks tool bar. The XP machine also has a + icon on the tab bar to "Open a new tab" while the Vista machine does not have that + icon. I like using that; is there any way to get it on the Vista machine?

    After weeks of trying, I stumbled on the solution:
    # Right-click on an empty section of the Tab Strip, select Customize... and the Customize Toolbar window will open.
    # At the bottom of the Customize Toolbar window, there are additional options for changing the appearance of the icons in your toolbars. From the Show drop-down menu, you can choose what to display in the toolbars — Icons, Text, or Icons and Text together. By default, Firefox just shows Icons.
    # Select Icons and Text
    # When you are finished making changes, click Done to close the Customize Toolbar window.

  • I have just downloaded ios7 and none of my app icons are showing on the home screen.   In the App Store they are showing as purchases.   How do I get them to show as icons on the home screen?

    I have just downloaded ios7 to my iphone4.   Now none of my apps are showing as icons on my home screen.    What should I do?    This didn't happen when I updated my iPad.

    You may have transferred all your songs, but your iPad is seeing the library as a different entity.
    The following article(s) may help you.
    Moving your iTunes library to a new computer  

  • HT4623 screen shows itunes icon with the connection symbol without any respond

    my iphone yesterday my daughter was usnig it in a game and suddenly the screen shut off although the system is working i can hear the messages allert and the voice button make vibration
    today i connect it to the computer and it turnes on again but i leave it connected to the itunes to restore the new software or whatever the msg says then i found onlly the itunes icon and the connection cable symbol appears on the screen without any respond
    what can i do to retrive my iphone and bring it work back again
    Maha Amin

    Use recovery mode
    http://support.apple.com/kb/HT1808

  • Have just up dated my iphone 4 to ios5, is the notification centre supposed to show as icon on the main screen, if so how do i get it to show and also i thought you could now use the camera direct form the locked screen?

    Have just updated my iphone 4 to ios 5, is the notification centre supposed to appear on your main screen as an icon if so how do i get it to show, and i thought you could now use the camera from the locked sreen i can't seem to this at the moment can anyone help? thank you

    Double click home button for camera to show up (and iPod).  Notifications seem to show up on lock screen that way, too.

  • HT1476 My iphone 4s doesn't charge at all.  Via wall adapter, or usb regardless of cable).  Always shows plug icon, never the lightning bolt.

    My iphone 4s worked perfectly fine for 1 year.  Then all of a sudden one day it quit charging.  It does show the plug icon (regardless of how charged it is), but the battery percentage number keeps dropping.  It drained completely and I took it to get repaired.  They changed the battery, which gave me one more day.  (long enough to back up my pictures and take a few screenshots showing this plug icon regardless of charge level. 
    I have tried 3 different cables, and have tried to charge my phone on two different computers.  No results.  I reset back to factory settings/ installed the newest system update.  Still no results. 
    Please help. 

    Never overlook the simple, physical cause of a problem. It is too easy to go for "this is an advanced complex electronic device therefore the problem must be equally complicated"
    Decades ago used to man a technical support phoneline. Loads of problems with external hard drives. The outstanding solution was "Is it plugged in? Is the power outlet switched on?".........

  • Ipod touch 4g ios5 showing charged icon while the battery is half charged

    i bought my ipod touch 4g a month back from naperville, IL. Since four days while charging, the battery level reaches half and the battery full icon i.e. the plug icon comes up and the ipod stops charging. Kindly help me find the solution of the problem...the ipod is running on the latest iOS5 version. I've tried charging my iPod through wall n pc... 
    thankyou

    I found it was album artwork being too big for the 4 gen itouch music app...
    use
    Sanse Mp3 Art Sizer
    http://hcware.110mb.com/mp3art/
    to resize the album picture files to 500 max and the problem should be solved.
    You will need to run it in the Command Line to change the resize values from the default 250 pixel 80% Quality jpeg.
    So...
    Run this...
    sansemp3artsizer /500/90
    which equals 500 pixels and 90 percent quality.
    Took 24 hours to get through 20,000 files but it worked and now my itouch doesn't crash.
    Of course I shouldn't have had to this this as my old 3rd gen worked fine, as did my even older ipod classic worked fine....

  • HT202213 I have suddenly been unable to connect my computer to my apple tv.  I have turned on my home sharing in itunes but it still does not show an icon in the sidebar.  I have reset my apple tv and redone all the passwords and email info and still does

    I have had my apple tv for 2 years and until I updated it I had no problems.  Now it keeps telling me to turn on my home sharing in iTunes which I have done innumerablre times. It won't recognise my macbook pro so I reset my apple tv to original settings and still it won't work.  Any ideas??????

    Me too I have the same problem as MicheleP57!!!! What can I do???

  • Unable to drag the Icon associated with the node

    I am working on dragging a node from Tree to a list.
    I have to drag the Icon associated with the leaf too. I am able to drag only the string of the node not the Icon that is associated with it. Can you help me with this? I have the code as below. Thanks.
    public class IconNode extends DefaultMutableTreeNode {
    protected Icon icon;
    protected String iconName;
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode() {
    this(null);
    }//end IconNode
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode(Object userObject) {
    this(userObject, true, null);
    }// end IconNode
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode(Object userObject, boolean allowsChildren
              , Icon icon) {
    super(userObject, allowsChildren);
    this.icon = icon;
    }//end IconNode
    //* setIcon
    /**sets the Icon to the node*/
    public void setIcon(Icon icon) {
    this.icon = icon;
    }// end setIcon
    //* getIcon
    /**gets the Icon of the node*/
    public Icon getIcon() {
    return icon;
    }//end getIcon
    //* getIconName
    /**gets the IconName*/
    public String getIconName() {
    if (iconName != null) {
    return iconName;
    } else {
    String str = userObject.toString();
    int index = str.lastIndexOf(".");
    if (index != -1) {
    return str.substring(++index);
    } else {
    return null;
    }//end getIconName
    //* setIconName
    /**sets the IconName*/
    public void setIconName(String name) {
    iconName = name;
    }//end setIconName
    }// end IconNodepublic class IconNode extends DefaultMutableTreeNode {
    protected Icon icon;
    protected String iconName;
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode() {
    this(null);
    }//end IconNode
    public class DNDTree extends JTree
    public DNDTree (IconNode top)
    super (top);
    DNDTreeHandler dndHandler = new DNDTreeHandler(this);
    setAutoscrolls(true);
    public class DNDTreeHandler extends DnDHandler
    TransferableDataItem transDataItem = new TransferableDataItem();
    public DNDTreeHandler(Component dndComponent)
    super(dndComponent);
    public DataFlavor[] getSupportedDataFlavors()
    return transDataItem.getTransferDataFlavors();
    * Gets the data from the selected object being dragged
    * @return node DataItem being dragged
    public Transferable getTransferable()
    TreePath path = getSelectionPath();
    //DefaultMutableTreeNode selection = (DefaultMutableTreeNode)path.getLastPathComponent();
    IconNode selection = (IconNode)path.getLastPathComponent();
    if (path == null)
    return(null);
    else
    TransferableDataItem node = new TransferableDataItem(selection);
    return(node);
    * Handles the drop of the component after the drag is complete
    * @param transferable Object being dropped
    * @param event drop event information
    public void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception
    Point location = event.getLocation();
    //Get path of node where object being dropped
    TreePath path = getClosestPathForLocation(location.x, location.y);
    //No drop target
    if(path == null)
    System.err.println ("Rejected");
    event.rejectDrop();
    else
    Transferable tr = event.getTransferable();
    if(tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
    System.out.println("Got transfered data");
    Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    //DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();
    IconNode node = (IconNode)path.getLastPathComponent();
    IconNode newNode = new IconNode(userObject);
    DefaultTreeModel model = (DefaultTreeModel)getModel();
    model.insertNodeInto(newNode, node, 0);
    else
    System.err.println ("Rejected");
    event.rejectDrop();
    public abstract class DnDHandler implements DropTargetListener,DragSourceListener, DragGestureListener
    protected DropTarget dropTarget;
    protected DragSource dragSource;
    public DnDHandler(Component dndComponent)
    dropTarget = new DropTarget (dndComponent, this);
    dragSource = new DragSource();
    dragSource.createDefaultDragGestureRecognizer( dndComponent, DnDConstants.ACTION_COPY_OR_MOVE, this);
    //creates transferable based on what's selected or returns null if nothings selected
    protected abstract Transferable getTransferable();
    protected abstract void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception;
    protected abstract DataFlavor[] getSupportedDataFlavors();
    public void dropFailed (DragSourceDropEvent event)
    System.out.println("Drop Failed");
    public void dropSuccess (DragSourceDropEvent event)
    System.out.println("Drop was successful");
    private boolean isTransferableSupported(Transferable t)
    DataFlavor[] flavors = getSupportedDataFlavors();
    for (int i=0; i<flavors.length; i++)
    if (t.isDataFlavorSupported(flavors) )
    return true;
    return false;
    public void dragGestureRecognized( DragGestureEvent event)
    Transferable trans = getTransferable();
    Cursor dragIcon = getDragCursor(event);
    if (trans != null)
    // Starts the dragging
    dragSource.startDrag (event, dragIcon, trans, this);
    else
    System.out.println( "nothing was selected");
    * a drop has occurred
    public void drop (DropTargetDropEvent event)
    try
    Transferable transferable = event.getTransferable();
    // we accept only Strings
    if (isTransferableSupported (transferable))
    event.acceptDrop(event.getDropAction());
    handleDrop(transferable, event);
    event.getDropTargetContext().dropComplete(true);
    else
    event.rejectDrop();
    catch (Exception e)
    e.printStackTrace();
    System.err.println( "Drop Exception" + e.getMessage());
    event.rejectDrop();
    //DragSourceListener interfaces
    * is invoked when you are dragging over the DropSite
    public void dragEnter (DropTargetDragEvent event)
    // debug messages for diagnostics
    //System.out.println( "dragEnter");
    int action = event.getDropAction();
    event.acceptDrag (action);
    * is invoked when you are exit the DropSite without dropping
    public void dragExit (DropTargetEvent event)
    //System.out.println( "dragExit");
    * is invoked when a drag operation is going on
    public void dragOver (DropTargetDragEvent event)
    //System.out.println( "dragOver");
    * is invoked if the use modifies the current drop gesture
    public void dropActionChanged ( DropTargetDragEvent event )
    //gets the cursor to start drag
    protected Cursor getDragCursor( DragGestureEvent event)
    if (event.getDragAction() == DnDConstants.ACTION_MOVE)
    return DragSource.DefaultMoveDrop;
    if (event.getDragAction() == DnDConstants.ACTION_COPY_OR_MOVE)
    return DragSource.DefaultCopyDrop;
    else
    return Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
    * this message goes to DragSourceListener, informing it that the dragging
    * has ended
    public void dragDropEnd (DragSourceDropEvent event) {
    if ( event.getDropSuccess())
    dropSuccess(event);
    else
    dropFailed(event);
    * this message goes to DragSourceListener, informing it that the dragging
    * has entered the DropSite
    public void dragEnter (DragSourceDragEvent event)
    //System.out.println( " dragEnter");
    * this message goes to DragSourceListener, informing it that the dragging
    * has exited the DropSite
    public void dragExit (DragSourceEvent event)
    //System.out.println( "dragExit");
    * this message goes to DragSourceListener, informing it that the dragging is currently
    * ocurring over the DropSite
    public void dragOver (DragSourceDragEvent event)
    //System.out.println( "dragExit");
    * is invoked when the user changes the dropAction
    public void dropActionChanged ( DragSourceDragEvent event)
    //System.out.println( "dropActionChanged");
    public class TransferableDataItem extends DefaultMutableTreeNode implements Transferable
    final static int DATA_ITEM = 0;
    final static int STRING = 1;
    final static int PLAIN_TEXT = 2;
    //final public static DataFlavor DEFAULT_MUTABLE_DATAITEM_FLAVOR =
    // new DataFlavor(DefaultMutableTreeNode.class, "Default Mutable Data Item");
    final public static DataFlavor DEFAULT_MUTABLE_DATAITEM_FLAVOR =
    new DataFlavor(IconNode.class, "Default Mutable Data Item");
    static DataFlavor flavors[] = {DEFAULT_MUTABLE_DATAITEM_FLAVOR, DataFlavor.stringFlavor, DataFlavor.plainTextFlavor};
    private Object data;
    public TransferableDataItem()
    public TransferableDataItem(Object data)
    this.data = data;
    public DataFlavor[] getTransferDataFlavors()
    return flavors;
    public Object getTransferData(DataFlavor flavor)
    throws UnsupportedFlavorException, IOException
    Object returnObject;
    if (flavor.equals(flavors[DATA_ITEM]))
    returnObject = data;
    else if (flavor.equals(flavors[STRING]))
    returnObject = data.toString();
    else if (flavor.equals(flavors[PLAIN_TEXT]))
    returnObject = new ByteArrayInputStream(data.toString().getBytes());
    else
    throw new UnsupportedFlavorException(flavor);
    return returnObject;
    public boolean isDataFlavorSupported(DataFlavor flavor)
    boolean returnValue = false;
    for (int i=0, n=flavors.length; i<n; i++) {
    if (flavor.equals(flavors[i]))
    returnValue = true;
    break;
    return returnValue;
    public class DNDList extends JList
    DropTarget dropTarget;
    public DNDList()
    DNDListHandler dndHandler = new DNDListHandler(this);
    setModel(new DefaultListModel());
    //private void addElement(Point location, Object element)
    private void addElement(Point location, IconNode element)
    int index = locationToIndex(location);
    // If index not found, add at end, otherwise add one beyond position
    if (index == -1) {
    index = getModel().getSize();
    else
    index++;
    ((DefaultListModel)getModel()).add(index, element);
    public class DNDListHandler extends DnDHandler
    TransferableDataItem transDataItem = new TransferableDataItem();
    public DNDListHandler(Component dndComponent)
    super(dndComponent);
    public DataFlavor[] getSupportedDataFlavors()
    return transDataItem.getTransferDataFlavors();
    public DataFlavor[] getTransferDataFlavors()
    return transDataItem.getTransferDataFlavors();
    * Gets the data from the selected object being dragged
    * @return node Node being dragged
    public Transferable getTransferable()
    Object selectedItem = getSelectedValue();
    System.out.println("Selected Value is " + selectedItem);
    TransferableDataItem item = new TransferableDataItem(selectedItem);
    return(item);
    * Handles the drop of the component after the drag is complete
    * @param transferable Object being dropped
    * @param event drop event information
    public void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception
    Transferable tr = event.getTransferable();
    Point location = event.getLocation();
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
    //event.acceptDrop (DnDConstants.ACTION_COPY_OR_MOVE);
    // Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    IconNode userObject = (IconNode)tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    addElement(location, userObject);
    //dropTargetDropEvent.getDropTargetContext().dropComplete(true);
    else
    System.err.println ("Rejected");
    event.rejectDrop();

    I think your problem come from this method :
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
       System.out.println("Got transfered data");
       Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    //DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();
       IconNode node = (IconNode)path.getLastPathComponent();
       IconNode newNode = new IconNode(userObject);
       DefaultTreeModel model = (DefaultTreeModel)getModel();
       model.insertNodeInto(newNode, node, 0);
    ...You should write :
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
       IconNode node = (IconNode)tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
       IconNode node = (IconNode)path.getLastPathComponent();
       IconNode newNode = new IconNode(node);
       DefaultTreeModel model = (DefaultTreeModel)getModel();
       model.insertNodeInto(newNode, node, 0);
    ...and create a construcor for IconNode :
    public IconNode(IconNode node) {
       super(node.getUserObject, node.getAllowsChildren());
       icon = node.icon;
    }When you use IconNode newNode = new IconNode(userObject), the icon is null (see your constructor).
    If I can say something, you should simplify your code : you can do the same thing dividing the size of your code by five (at less).
    Denis

  • Problem in adding icon to the tree node

    I am using pv.jfcx.PVNode to create the node.It has a default icon at the node.I need to replace the default
    icon with the gif file.so i have included root.setImageAt(new ImageIcon("plus.gif"), 0);
    .but this is not working still the default node icon remains .how do i paint my gif image?can any one help me?
    pv.jfcx.PVNode root = tree.getRoot();
              root.setImageAt(new ImageIcon("plus.gif"), 0);
              pv.jfcx.PVNode one = new pv.jfcx.PVNode("Node 1");
              one.add(new pv.jfcx.PVNode("One"));
              one.add(new pv.jfcx.PVNode("Two"));
              one.add(new pv.jfcx.PVNode("three"));
              root.add(one);

    What is the class pv.jfcx.PVNode? Maybe I missed something along the line.
    But for Trees you can usually use the method of your TreeCellRenderer to set icon. The method are setOpenIcon, SetCLosedIcon, and setLeafIcon, and mainly setIcon.

Maybe you are looking for

  • Re: Functionality temporarily unavailable

    Think I have solved this problem myself with a bit of help from some other postings in the newsgroup. I think that there is a problem with the documentation. It states that /portlets/portlet3/welcome.jsp should be used as the Content URL field. Unfor

  • IPhoto will not upgrade photo library

    I upgraded my iphoto from the old version and now every time I go into the program it says it's updating photos then "locks" up and i have to close iphoto because it's not responding. Help!

  • What is the best phoen out there?

    I've had the Droid incredible now for two years and it's time to upgrade. I tend to get a little confused when I read the actual reviews of the phone. To me it seems like all smart phones are basically the same. When I read the reviews and they start

  • Things i wish SQL supported. The lazy man's list.

    Things i wish SQL supported. This is the lazy man's list. Just to make things easier. 1) IT - refer to the first COLUMN in the SELECT clause. - SELECT Name FROM Item WHERE IT is LIKE 'ABC%'; 2) THEY - refer to each COLUMN in the SELECT list, individu

  • Finder question: "right size this column"

    Finder question: how do I get the "right size this column" feature to work automatically each time I open Finder or move between columns?  The column widths reset each time I close/open Finder or move between columns.