net.ranides.assira.text.format
Class AnsiColorMap

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

public class AnsiColorMap
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
AnsiColorMap()
           
AnsiColorMap(AnsiColorScheme scheme)
           
 
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.
 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

AnsiColorMap

public AnsiColorMap()

AnsiColorMap

public AnsiColorMap(AnsiColorScheme scheme)
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:


Copyright © 2013. All Rights Reserved.