net.ranides.assira.text.format
Class AnsiAttr.IndirectAt

java.lang.Object
  extended by net.ranides.assira.text.format.AnsiAttr.IndirectAt
All Implemented Interfaces:
AnsiAttr
Enclosing interface:
AnsiAttr

public static class AnsiAttr.IndirectAt
extends Object
implements AnsiAttr

Pomocnicza implementacja interfejsu AnsiAtrr, reprezentująca atrybuty czytane z pojedynczego znaku zapisanego w AnsiCharSequence.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.ranides.assira.text.format.AnsiAttr
AnsiAttr.IndirectAt
 
Field Summary
 
Fields inherited from interface net.ranides.assira.text.format.AnsiAttr
bold, BOLD, changed, CHANGED, fresh, FRESH, invert, INVERT, MASK_INTERNAL, MASK_PUBLIC, narrow, NARROW, normal, NORMAL, SPLIT_ALL, SPLIT_BACK, SPLIT_FLAGS, SPLIT_FLAGS_ALL, SPLIT_FONT, SPLIT_FORE, strike, STRIKE, symbol, SYMBOL, underline, UNDERLINE
 
Constructor Summary
AnsiAttr.IndirectAt(AnsiCharSequence sequence, int index)
          Tworzy obiekt reprezentujący atrybuty znaku o podanym indeksie, zapisanego w podanej sekwencji.
 
Method Summary
 int getBack()
          Zwraca przypisany numer koloru tła.
 Color getComputedBack()
          Metoda opcjonalna: zwraca przypisany kolor tła.
 Font getComputedFont()
          Metoda opcjonalna: zwraca przypisaną czcionkę.
 Color getComputedFore()
          Metoda opcjonalna: zwraca przypisany kolor tekstu.
 int getFlags()
          Zwraca przypisane atrybuty tekstu.
 int getFont()
          Zwraca przypisany numer czcionki.
 int getFore()
          Zwraca przypisany numer koloru tekstu.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnsiAttr.IndirectAt

public AnsiAttr.IndirectAt(AnsiCharSequence sequence,
                           int index)
Tworzy obiekt reprezentujący atrybuty znaku o podanym indeksie, zapisanego w podanej sekwencji. Modyfikacja powiązanej sekwencji natychmiast jest widoczna w obiekcie.

Parameters:
sequence -
index -
Method Detail

getComputedBack

public Color getComputedBack()
Description copied from interface: AnsiAttr
Metoda opcjonalna: zwraca przypisany kolor tła. Ogólnie metoda zwraca rozsądny wynik, jeśli obiekt został powiązany z odpowiednim schematem kolorów (AnsiColorScheme.

Specified by:
getComputedBack in interface AnsiAttr
Returns:

getComputedFont

public Font getComputedFont()
Description copied from interface: AnsiAttr
Metoda opcjonalna: zwraca przypisaną czcionkę. Ogólnie metoda zwraca rozsądny wynik, jeśli obiekt został powiązany z odpowiednim schematem czcionek (AnsiFontScheme.

Specified by:
getComputedFont in interface AnsiAttr
Returns:

getComputedFore

public Color getComputedFore()
Description copied from interface: AnsiAttr
Metoda opcjonalna: zwraca przypisany kolor tekstu. Ogólnie metoda zwraca rozsądny wynik, jeśli obiekt został powiązany z odpowiednim schematem kolorów (AnsiColorScheme.

Specified by:
getComputedFore in interface AnsiAttr
Returns:

getFlags

public int getFlags()
Description copied from interface: AnsiAttr
Zwraca przypisane atrybuty tekstu.

Specified by:
getFlags in interface AnsiAttr
Returns:

getBack

public int getBack()
Description copied from interface: AnsiAttr
Zwraca przypisany numer koloru tła. Numer może być zamieniony na graficzną reprezentację za pomocą AnsiColorScheme.

Specified by:
getBack in interface AnsiAttr
Returns:
See Also:
AnsiAttr.getComputedBack()

getFont

public int getFont()
Description copied from interface: AnsiAttr
Zwraca przypisany numer czcionki. Numer może być zamieniony na graficzną reprezentację za pomocą AnsiFontScheme.

Specified by:
getFont in interface AnsiAttr
Returns:
See Also:
AnsiAttr.getComputedFont()

getFore

public int getFore()
Description copied from interface: AnsiAttr
Zwraca przypisany numer koloru tekstu. Numer może być zamieniony na graficzną reprezentację za pomocą AnsiColorScheme.

Specified by:
getFore in interface AnsiAttr
Returns:
See Also:
AnsiAttr.getComputedFore()


Copyright © 2013. All Rights Reserved.