Package research.figure

Examples of research.figure.TextFigure


     **/

    protected Undoable createUndoActivity(DrawingView newView) {

        if (owner() instanceof TextFigure) {
            TextFigure textOwner = (TextFigure) owner();
            return new UndoActivity(newView, textOwner.getFont());
        }

        if (owner() instanceof TextFigure0) {
            TextFigure0 textOwner = (TextFigure0) owner();
            return new UndoActivity(newView, textOwner.getFont());
        }

        if (owner() instanceof TextAreaFigure) {
            TextAreaFigure textOwner = (TextAreaFigure) owner();
            return new UndoActivity(newView, textOwner.getFont());
        }

        return null;
    }
View Full Code Here


        while (iterator.hasNext()) {
            Integer integer = (Integer) iterator.next();
            Interaction ita = (Interaction) interactionMap.get(integer);
            Figure fig = (Figure) figureList.get(integer.intValue());

            TextFigure title = new TextFigure();
            title.setText(ita.getType() + ":" + ita.getName());
            title.setAttribute("id", ita.getID());
            title.setAttribute("type", "interactionTitle");
            title.setAttribute("isALink", Boolean.TRUE);

            //����id��figure��ӳ���
            if (idToFigureMap != null) {
                idToFigureMap.add(ita.getID(), title);
            }

            drawingView.add(title);
            title.connect(fig);
        }

        drawingView.repairDamage();

    }
View Full Code Here

                    Interaction interaction = interactionModelEditor.addInteraction("type", "name", sID, eID);

                    getConnection().setAttribute("id", interaction.getID());
                    getConnection().setAttribute("type", "interaction");

                    TextFigure title = new TextFigure();
                    title.setText(interaction.getType() + ":" + interaction.getName());
                    title.setAttribute("id", interaction.getID());
                    title.setAttribute("type", "interactionTitle");
                    title.setAttribute("isALink", Boolean.TRUE);

                    drawingView.add(title);
                    title.connect(getConnection());

                    //����id��figure��ӳ���
                    if (idToFigureMap != null) {
                        idToFigureMap.add(interaction.getID(), getConnection());
                        idToFigureMap.add(interaction.getID(), title);
View Full Code Here

TOP

Related Classes of research.figure.TextFigure

Copyright © 2018 www.massapicom. 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.