Exemplo n.º 1
0
        public DisplayNode(NodeDefinition nd, Network net, int instnc)
            : base(nd, net, instnc)
        {
            xpos = ypos = Utils.UnspecifiedPosition;
            width = height = Utils.UnspecifiedDimension;
            image = null;

            // It's makes no sense to even think about creating an image window
            // for a Display node in a macro.

            userSpecifiedWhere = net.IsMacro;
            title = null;
            panelAccessManager = null;
        }
Exemplo n.º 2
0
        public override bool initialize()
        {
            base.initialize();
            depth = 24;
            windowId = 0;
            lastImage = true;

            panelAccessManager = new PanelAccessManager(getNetwork());

            // Try to find an extant image window that isn't being used.
            ImageWindow w = getUnassociatedImageWindow(false);
            if (w != null)
                associateImage(w);

            Parameter p = getInputParameter(3);
            p.setDirty();
            return true;
        }