Package org.scilab.forge.jlatexmath

Examples of org.scilab.forge.jlatexmath.TeXIcon.paintIcon()


        Graphics2D g2 = img.createGraphics();
        g2.setColor(Color.white);
        g2.fillRect(0,0,icon.getIconWidth(),icon.getIconHeight());
        JLabel jl = new JLabel();
        jl.setForeground(new Color(0, 0, 0));
        icon.paintIcon(jl, g2, 0, 0);

        alpha = (float)0.5;
     
}
View Full Code Here


        Graphics2D g2 = img.createGraphics();
        g2.setColor(Color.white);
        g2.fillRect(0,0,icon.getIconWidth(),icon.getIconHeight());
        JLabel jl = new JLabel();
        jl.setForeground(new Color(0, 0, 0));
        icon.paintIcon(jl, g2, 0, 0);

        alpha = (float)0.5;
     
}
View Full Code Here

                           
                            JLabel jl = new JLabel();
                           
                             jl.setForeground(plotColor)// GlobalValues.defaultFormulaColor);
                            if (useLogical == false)   // do not use logical coordinates
                              icon.paintIcon(jl, g2, coordx, coordy);
                            else  // use logical coordinates to place the formula
                            {
                                double [] logicalCoords = { logicalx, logicaly};
                                int [] screenCoords = draw.project(logicalCoords[0], logicalCoords[1]);
                                icon.paintIcon(jl, g2, screenCoords[0], screenCoords[1]);
View Full Code Here

                              icon.paintIcon(jl, g2, coordx, coordy);
                            else  // use logical coordinates to place the formula
                            {
                                double [] logicalCoords = { logicalx, logicaly};
                                int [] screenCoords = draw.project(logicalCoords[0], logicalCoords[1]);
                                icon.paintIcon(jl, g2, screenCoords[0], screenCoords[1]);
                               

  }
        }
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.