Examples of MCTViewManifestationInfo


Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

        return panelId;
    }
   
    public void addPanelBorder(byte newBorderState) {
        this.panelBorder.addBorderState(newBorderState);
        MCTViewManifestationInfo manifestInfo = CanvasManifestation.getManifestationInfo(this.wrappedManifestation);
        manifestInfo.addInfoProperty(ControlAreaFormattingConstants.PANEL_BORDER_PROPERTY, String.valueOf(this.panelBorder.getBorders()));
        setBorder(null);
        setBorder(panelBorder); // We need to reset the border so that the border will repaint.
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

        setBorder(panelBorder); // We need to reset the border so that the border will repaint.
    }
   
    public void removePanelBorder(byte removeBorderState) {
        this.panelBorder.removeBorderState(removeBorderState);
        MCTViewManifestationInfo manifestInfo = CanvasManifestation.getManifestationInfo(this.wrappedManifestation);
        manifestInfo.addInfoProperty(ControlAreaFormattingConstants.PANEL_BORDER_PROPERTY, String.valueOf(this.panelBorder.getBorders()));
        setBorder(null);
        setBorder(panelBorder); // We need to reset the border so that the bord
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

        setBorder(null);
        setBorder(panelBorder); // We need to reset the border so that the bord
    }
   
    public void setBorderStyle(int borderStyle) {
        MCTViewManifestationInfo manifestInfo = CanvasManifestation.getManifestationInfo(this.wrappedManifestation);
        manifestInfo.setBorderStyle(borderStyle);
        this.panelBorder.setBorderStyle(borderStyle);
        setBorder(null);
        setBorder(panelBorder); // We need to reset the border so that the bord
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

    public int getBorderStyle() {
        return this.panelBorder.getBorderStyle();
    }
   
    public void setBorderColor(Color borderColor) {
        MCTViewManifestationInfo manifestInfo = CanvasManifestation.getManifestationInfo(this.wrappedManifestation);
        manifestInfo.setBorderColor(borderColor);
        this.panelBorder.setBorderColor(borderColor);
        setBorder(null);
        setBorder(panelBorder);
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

            && (p.y >= locationOnScreen.y) && (p.y < locationOnScreen.y + getHeight());
    }
   
    public View changeToView(ViewInfo view, MCTViewManifestationInfo newInfo) {
        AbstractComponent comp = wrappedManifestation.getManifestedComponent();
        MCTViewManifestationInfo info = CanvasManifestation.getManifestationInfo(wrappedManifestation);
       
        // Compare the list of owned view properties and determine if a new view needs to be created.
        if (viewChanged(wrappedManifestation.getInfo(), info, newInfo)) {
            View manifestation = CanvasViewStrategy.CANVAS_OWNED.createViewFromManifestInfo(view, comp, ((View) panelSelectionProvider).getManifestedComponent(), info);
            attachManifestationToPanel(manifestation)
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

        return wrappedManifestation;
    }
   
    public View changeToView(ViewInfo view) {
        AbstractComponent comp = wrappedManifestation.getManifestedComponent();
        MCTViewManifestationInfo info = CanvasManifestation.getManifestationInfo(wrappedManifestation);
        View manifestation = CanvasViewStrategy.CANVAS_OWNED.createViewFromManifestInfo(view, comp, ((View) panelSelectionProvider).getManifestedComponent(), info);
        manifestation.setNamingContext(this);
        attachManifestationToPanel(manifestation);

        addStatusWidgetsIfApplicable();
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

   
   
    private void attachManifestationToPanel(View manifestation) {
        manifestation.putClientProperty(CanvasManifestation.MANIFEST_INFO, CanvasManifestation.getManifestationInfo(wrappedManifestation));
        wrappedManifestation = manifestation;
        MCTViewManifestationInfo manifestationInfo = CanvasManifestation.getManifestationInfo(wrappedManifestation);
        manifestationInfo.setManifestedViewType(wrappedManifestation.getInfo().getType());
       
        scrollPane.setViewportView(wrappedManifestation);
        revalidate();
        repaint();
       
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

        if (!flag) {
            remove(titlePanel);
        } else {
            add(titlePanel, BorderLayout.NORTH);
        }
        MCTViewManifestationInfo manifestInfo = CanvasManifestation.getManifestationInfo(this.wrappedManifestation);
        manifestInfo.setHasTitlePanel(flag);
        if (!flag) {
            manifestInfo.setPanelTitle("");
        } else {
            String title = titleLabel.getText();
            if (!this.wrappedManifestation.getManifestedComponent().getDisplayName().equals(title)) {
                manifestInfo.setPanelTitle(titleLabel.getText());
            }
        }
        revalidate();
        notifyTitleChanged();
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

        titleLabel.repaint();
    }
   
    public void setTitle(String newTitle) {
        if (this.titlePanel.isVisible()) {
            MCTViewManifestationInfo manifestInfo = CanvasManifestation.getManifestationInfo(this.wrappedManifestation);
            manifestInfo.setPanelTitle(newTitle);
            setTitleFromManifestation(manifestInfo);
            revalidate();
            notifyTitleChanged();
        }
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.MCTViewManifestationInfo

    /** Set the panel title font from the manifestation info
     * @param newFont the string of the JVM Font Family to set
     */
    public void setTitleFont(String newFont) {
        if (this.titlePanel.isVisible()) {
            MCTViewManifestationInfo manifestInfo = CanvasManifestation.getManifestationInfo(this.wrappedManifestation);
            manifestInfo.setPanelTitleFont(newFont);
            setTitleFromManifestation(manifestInfo);
            revalidate();
            notifyTitleChanged();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.