Examples of bytesWidth()


Examples of java.awt.FontMetrics.bytesWidth()

        {
            cal.setTimeInMillis(tiColYMax.getTime());
            cadena = utilidades.GenDateString(cal,false,tmodel.columnTypes[coly[0]]);
        }
        int anchoTitles = 100;
        int maxAncho = fm.bytesWidth(cadena.getBytes(), 0, cadena.length());
        int margenY = 38;
        int margenX = 50;
        if(margenX < (maxAncho + 15))
            margenX = maxAncho + 15;
        int ejeX = clipX + margenX;
View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

                    else
                    {
                        cal.setTimeInMillis(new java.util.Date(tiColYMin.getTime() + (lIncrementoY * k++)).getTime());
                        cadena = utilidades.GenDateString(cal,false,tmodel.columnTypes[coly[0]]);
                    }
                    ancho = fm.bytesWidth(cadena.getBytes(), 0, cadena.length());
                    Trackbug.info("Cadena: [" + cadena + "], longitud: " + ancho);
                    g2.drawString(cadena, 10 + (maxAncho - ancho), (int)i + 5);

                    i += incrementoY;
                }
View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

                    }
                    g2.drawLine((int)i, ejeY, (int)i, ejeY - 5);
                    if(esFecha(tmodel.columnTypes[colx]) == false)
                    {
                        cadena = biIncrementoX.multiply(new BigDecimal(k++)).toPlainString();
                        ancho = fm.bytesWidth(cadena.getBytes(), 0, cadena.length()) / 2;
                        g2.drawString(cadena, (int)i - ancho, ejeY + 12);
                    }
                    else
                    {
                        cal.setTimeInMillis(new java.util.Date(tiColXMin.getTime() + (lIncrementoX * k++)).getTime());
 
View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

                    else
                    {
                        cal.setTimeInMillis(new java.util.Date(tiColXMin.getTime() + (lIncrementoX * k++)).getTime());
                        cadena = utilidades.GenDateString(cal,false,tmodel.columnTypes[colx]);

                        ancho = fm.bytesWidth(cadena.getBytes(), 0, cadena.length()) / 2;

                        ++posY2;
                        if(posY2 > 3 || (posY2 > 2 && tmodel.columnTypes[colx] != java.sql.Timestamp.class))
                            posY2 = 1;

View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

                            else
                            {
                                cal.setTimeInMillis(new java.util.Date(lValorX).getTime());
                                cadena += utilidades.GenDateString(cal,false,tmodel.columnTypes[colx]);
                            }
                            ancho = fm.bytesWidth(cadena.getBytes(), 0, cadena.length()) / 2;
                            g2.drawString(cadena, (xActual + 3) - ancho, yActual - 4);
                        }

                        yAnterior[k] = yActual;
                    }
View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

    private void setColumnSize()
    {
            // ponemos  las columnas  con un ancho m�s agradable
            FontMetrics fm = getGraphics().getFontMetrics(jtableResulset.getFont());
            int ancho26 = fm.bytesWidth("ABCDEFGHIJKLMNOPQRSTUVWXYZ".getBytes(), 0, 26);
            int ancho10 = fm.bytesWidth("0000000000".getBytes(), 0, 10);
            int anchoFecha = fm.bytesWidth("00-MMM-0000 00:00:00  ".getBytes(), 0, 21);
            int anchoFecha2 = fm.bytesWidth("00-MMM-0000  ".getBytes(), 0, 12);
            int anchoHora = fm.bytesWidth("00:00:00  ".getBytes(), 0, 10);
            int ancho1 = ancho10 / 10;
View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

    private void setColumnSize()
    {
            // ponemos  las columnas  con un ancho m�s agradable
            FontMetrics fm = getGraphics().getFontMetrics(jtableResulset.getFont());
            int ancho26 = fm.bytesWidth("ABCDEFGHIJKLMNOPQRSTUVWXYZ".getBytes(), 0, 26);
            int ancho10 = fm.bytesWidth("0000000000".getBytes(), 0, 10);
            int anchoFecha = fm.bytesWidth("00-MMM-0000 00:00:00  ".getBytes(), 0, 21);
            int anchoFecha2 = fm.bytesWidth("00-MMM-0000  ".getBytes(), 0, 12);
            int anchoHora = fm.bytesWidth("00:00:00  ".getBytes(), 0, 10);
            int ancho1 = ancho10 / 10;
            int ancho = 0;
View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

    {
            // ponemos  las columnas  con un ancho m�s agradable
            FontMetrics fm = getGraphics().getFontMetrics(jtableResulset.getFont());
            int ancho26 = fm.bytesWidth("ABCDEFGHIJKLMNOPQRSTUVWXYZ".getBytes(), 0, 26);
            int ancho10 = fm.bytesWidth("0000000000".getBytes(), 0, 10);
            int anchoFecha = fm.bytesWidth("00-MMM-0000 00:00:00  ".getBytes(), 0, 21);
            int anchoFecha2 = fm.bytesWidth("00-MMM-0000  ".getBytes(), 0, 12);
            int anchoHora = fm.bytesWidth("00:00:00  ".getBytes(), 0, 10);
            int ancho1 = ancho10 / 10;
            int ancho = 0;
            int limiteColumnas = jtableResulset.getTableHeader().getColumnModel().getColumnCount();
View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

            // ponemos  las columnas  con un ancho m�s agradable
            FontMetrics fm = getGraphics().getFontMetrics(jtableResulset.getFont());
            int ancho26 = fm.bytesWidth("ABCDEFGHIJKLMNOPQRSTUVWXYZ".getBytes(), 0, 26);
            int ancho10 = fm.bytesWidth("0000000000".getBytes(), 0, 10);
            int anchoFecha = fm.bytesWidth("00-MMM-0000 00:00:00  ".getBytes(), 0, 21);
            int anchoFecha2 = fm.bytesWidth("00-MMM-0000  ".getBytes(), 0, 12);
            int anchoHora = fm.bytesWidth("00:00:00  ".getBytes(), 0, 10);
            int ancho1 = ancho10 / 10;
            int ancho = 0;
            int limiteColumnas = jtableResulset.getTableHeader().getColumnModel().getColumnCount();
View Full Code Here

Examples of java.awt.FontMetrics.bytesWidth()

            FontMetrics fm = getGraphics().getFontMetrics(jtableResulset.getFont());
            int ancho26 = fm.bytesWidth("ABCDEFGHIJKLMNOPQRSTUVWXYZ".getBytes(), 0, 26);
            int ancho10 = fm.bytesWidth("0000000000".getBytes(), 0, 10);
            int anchoFecha = fm.bytesWidth("00-MMM-0000 00:00:00  ".getBytes(), 0, 21);
            int anchoFecha2 = fm.bytesWidth("00-MMM-0000  ".getBytes(), 0, 12);
            int anchoHora = fm.bytesWidth("00:00:00  ".getBytes(), 0, 10);
            int ancho1 = ancho10 / 10;
            int ancho = 0;
            int limiteColumnas = jtableResulset.getTableHeader().getColumnModel().getColumnCount();

            for(int i=0, limite = Math.min(jtmodel.columnWidth.length, limiteColumnas); i < limite; i++)
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.