net.ranides.assira.text.format
Class AnsiColorArray

java.lang.Object
  extended by net.ranides.assira.text.format.AnsiColorScheme
      extended by net.ranides.assira.text.format.AnsiColorArray
All Implemented Interfaces:
Serializable

public class AnsiColorArray
extends AnsiColorScheme
implements Serializable

Author:
ranides
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.ranides.assira.text.format.AnsiColorScheme
AnsiColorScheme.ColorAttr
 
Field Summary
 
Fields inherited from class net.ranides.assira.text.format.AnsiColorScheme
EMPTY
 
Constructor Summary
AnsiColorArray(AnsiColorArray scheme)
           
AnsiColorArray(int size)
           
AnsiColorArray(int[] back, int[] fore)
           
 
Method Summary
 Color getBackColor(int index)
          Zwraca kolor tła o podanym indeksie.
 Color getForeColor(int index)
          Zwraca kolor tekstu o podanym indeksie.
 void setBackColor(int index, Color value)
          Ustawia kolor tła o podanym indeksie.
 void setForeColor(int index, Color value)
          Ustawia kolor tekstu o podanym indeksie.
 int size()
           
 Collection<AnsiColorScheme.ColorAttr> values()
          Zwraca kolekcję wszystkich kolorów zapisanych w schemacie.
 
Methods inherited from class net.ranides.assira.text.format.AnsiColorScheme
copy, getBackColor, getForeColor, make, make, make, setBackColor, setForeColor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnsiColorArray

public AnsiColorArray(int size)

AnsiColorArray

public AnsiColorArray(AnsiColorArray scheme)

AnsiColorArray

public AnsiColorArray(int[] back,
                      int[] fore)
Method Detail

getForeColor

public Color getForeColor(int index)
Description copied from class: AnsiColorScheme
Zwraca kolor tekstu o podanym indeksie.

Specified by:
getForeColor in class AnsiColorScheme
Returns:

getBackColor

public Color getBackColor(int index)
Description copied from class: AnsiColorScheme
Zwraca kolor tła o podanym indeksie.

Specified by:
getBackColor in class AnsiColorScheme
Returns:

setForeColor

public void setForeColor(int index,
                         Color value)
Description copied from class: AnsiColorScheme
Ustawia kolor tekstu o podanym indeksie.

Specified by:
setForeColor in class AnsiColorScheme

setBackColor

public void setBackColor(int index,
                         Color value)
Description copied from class: AnsiColorScheme
Ustawia kolor tła o podanym indeksie.

Specified by:
setBackColor in class AnsiColorScheme

values

public Collection<AnsiColorScheme.ColorAttr> values()
Description copied from class: AnsiColorScheme
Zwraca kolekcję wszystkich kolorów zapisanych w schemacie.

Specified by:
values in class AnsiColorScheme
Returns:

size

public int size()


Copyright © 2013. All Rights Reserved.