|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproyecto.utilidades.OperacionesTextPane
public class OperacionesTextPane
OperacionesTextPane.
Clase con métodos estaticos para operaciones básicas con Componentes de texto, por ejemplo:
JTextComponent
Constructor Summary | |
---|---|
OperacionesTextPane()
|
Method Summary | |
---|---|
static int |
getColumnaCursor(JTextComponent component)
Devuelve la columna y la posicion que esta el cursor. |
static int |
getLineas(JTextComponent component)
Devuelve el numero totales de lineas que tiene el texto. |
static int |
getLineDelCaret(JTextComponent component)
Devuelve la linea actual del cursor. |
static void |
irALinea(JTextComponent component,
int linea)
Posicionona el cursor en la linea indicada al principio. |
static String |
rgb_a_hex(int n)
Pasado un entero nos devuelve su valor en hexadecimal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperacionesTextPane()
Method Detail |
---|
public static int getColumnaCursor(JTextComponent component)
component
- the component
public static int getLineDelCaret(JTextComponent component)
component
- the component
public static int getLineas(JTextComponent component)
component
- the component
public static void irALinea(JTextComponent component, int linea)
component
- the componentlinea
- the lineapublic static String rgb_a_hex(int n)
n
- the n
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |