public class TreeTableNodeFormatBasic extends Object implements TreeTableNodeFormat
| Modifier and Type | Field and Description |
|---|---|
protected xyz.cofe.collection.Convertor<Object,String> |
convertor |
protected String |
fontFamily |
protected Float |
fontSize |
protected Integer |
iconWidthMin |
protected Boolean |
italic |
protected Float |
weight |
| Constructor and Description |
|---|
TreeTableNodeFormatBasic() |
TreeTableNodeFormatBasic(TreeTableNodeFormatBasic sample) |
| Modifier and Type | Method and Description |
|---|---|
TreeTableNodeFormatBasic |
background(Color background) |
TreeTableNodeFormatBasic |
background(ColorModificator backgroundModificator) |
TreeTableNodeFormatBasic |
base(ColorModificator baseMod) |
TreeTableNodeFormatBasic |
bold(Boolean bld) |
TreeTableNodeFormatBasic |
clone()
Клонирование настроек форматирования
|
TreeTableNodeFormatBasic |
convertor(xyz.cofe.collection.Convertor<Object,String> convertor) |
AttributedString |
createAttributedString(String text,
Object value)
Создание строки текста с атрибуами отображения
|
TreeTableNodeFormatBasic |
fontFamily(String ffamily) |
TreeTableNodeFormatBasic |
fontSize(Float fsize) |
TreeTableNodeFormatBasic |
foreground(Color fg) |
TreeTableNodeFormatBasic |
foreground(ColorModificator foregroundModificator) |
Color |
getBackground()
Указывает фон ячейки
|
ColorModificator |
getBackgroundModificator()
Указывает модификацию цвета фона
|
ColorModificator |
getBaseModificator()
Указывает модификацию базового цвета
|
Boolean |
getBold()
Указывает шрифт текста
|
xyz.cofe.collection.Convertor<Object,String> |
getConvertor()
Указывает функцию конвертации данных
|
String |
getFontFamily()
Указывает шрифт текста
|
Float |
getFontSize()
Указывает шрифт текста
|
Color |
getForeground()
Указывает цвет текста
|
ColorModificator |
getForegroundModificator()
Указывает модификацию цвета текста
|
List<Icon> |
getIcons()
Указывает иконки отображаемые рядом с текстом
|
Integer |
getIconWidthMin()
Указывает минимальную ширину резервируемую для иконок
|
Boolean |
getItalic()
Указывает шрифт текста
|
Float |
getWeight()
Указывает шрифт текста
|
TreeTableNodeFormatBasic |
icons(Icon... icons) |
TreeTableNodeFormatBasic |
icons(List<Icon> icons) |
TreeTableNodeFormatBasic |
iconWidthMin(Integer iconWidthMin) |
TreeTableNodeFormatBasic |
italic(Boolean italic) |
void |
merge(TreeTableNodeFormat fmt)
Слияние настоек форматирования
|
void |
setBackground(Color background)
Указывает фон ячейки
|
void |
setBackgroundModificator(ColorModificator backgroundModificator)
Указывает модификацию цвета фона
|
void |
setBaseModificator(ColorModificator baseModificator)
Указывает модификацию базового цвета
|
void |
setBold(Boolean bold)
Указывает шрифт текста
|
void |
setConvertor(xyz.cofe.collection.Convertor<Object,String> convertor)
Указывает функцию конвертации данных
|
void |
setFontFamily(String fontFamily)
Указывает шрифт текста
|
void |
setFontSize(Float fontSize)
Указывает шрифт текста
|
void |
setForeground(Color foreground)
Указывает цвет текста
|
void |
setForegroundModificator(ColorModificator foregroundModificator)
Указывает модификацию цвета текста
|
void |
setIcons(List<Icon> icons)
Указывает иконки отображаемые рядом с текстом
|
void |
setIconWidthMin(Integer iconWidthMin)
Указывает минимальную ширину резервируемую для иконок
|
void |
setItalic(Boolean italic)
Указывает шрифт текста
|
void |
setWeight(Float weight)
Указывает шрифт текста
|
TreeTableNodeFormatBasic |
weight(Float w) |
protected String fontFamily
protected Float fontSize
protected Boolean italic
protected Float weight
protected Integer iconWidthMin
public TreeTableNodeFormatBasic()
public TreeTableNodeFormatBasic(TreeTableNodeFormatBasic sample)
public TreeTableNodeFormatBasic clone()
TreeTableNodeFormatclone in interface TreeTableNodeFormatclone in class Objectpublic AttributedString createAttributedString(String text, Object value)
TreeTableNodeFormatcreateAttributedString in interface TreeTableNodeFormattext - текстовое прдеставление значенияvalue - значениеpublic String getFontFamily()
TreeTableNodeFormatgetFontFamily in interface TreeTableNodeFormatpublic void setFontFamily(String fontFamily)
TreeTableNodeFormatsetFontFamily in interface TreeTableNodeFormatfontFamily - имя шрифтаpublic TreeTableNodeFormatBasic fontFamily(String ffamily)
public Float getFontSize()
TreeTableNodeFormatgetFontSize in interface TreeTableNodeFormatpublic void setFontSize(Float fontSize)
TreeTableNodeFormatsetFontSize in interface TreeTableNodeFormatfontSize - размер шрифтаpublic TreeTableNodeFormatBasic fontSize(Float fsize)
public Boolean getItalic()
TreeTableNodeFormatgetItalic in interface TreeTableNodeFormatpublic void setItalic(Boolean italic)
TreeTableNodeFormatsetItalic in interface TreeTableNodeFormatitalic - true - есть наклон / false - без наклонаpublic TreeTableNodeFormatBasic italic(Boolean italic)
public Boolean getBold()
TreeTableNodeFormatgetBold in interface TreeTableNodeFormatpublic void setBold(Boolean bold)
TreeTableNodeFormatsetBold in interface TreeTableNodeFormatbold - true - жирный шрифт / false - обычныйpublic TreeTableNodeFormatBasic bold(Boolean bld)
public Float getWeight()
TreeTableNodeFormatgetWeight in interface TreeTableNodeFormatpublic void setWeight(Float weight)
TreeTableNodeFormatsetWeight in interface TreeTableNodeFormatweight - вес шрифтаpublic TreeTableNodeFormatBasic weight(Float w)
public Color getBackground()
TreeTableNodeFormatgetBackground in interface TreeTableNodeFormatpublic void setBackground(Color background)
TreeTableNodeFormatsetBackground in interface TreeTableNodeFormatbackground - цвет фонаpublic TreeTableNodeFormatBasic background(Color background)
public Color getForeground()
TreeTableNodeFormatgetForeground in interface TreeTableNodeFormatpublic void setForeground(Color foreground)
TreeTableNodeFormatsetForeground in interface TreeTableNodeFormatforeground - цвет текстаpublic TreeTableNodeFormatBasic foreground(Color fg)
public ColorModificator getBaseModificator()
TreeTableNodeFormatgetBaseModificator in interface TreeTableNodeFormatpublic void setBaseModificator(ColorModificator baseModificator)
TreeTableNodeFormatsetBaseModificator in interface TreeTableNodeFormatbaseModificator - модификация базового цветаpublic TreeTableNodeFormatBasic base(ColorModificator baseMod)
public ColorModificator getForegroundModificator()
TreeTableNodeFormatgetForegroundModificator in interface TreeTableNodeFormatpublic void setForegroundModificator(ColorModificator foregroundModificator)
TreeTableNodeFormatsetForegroundModificator in interface TreeTableNodeFormatforegroundModificator - модификация цвета текстаpublic TreeTableNodeFormatBasic foreground(ColorModificator foregroundModificator)
public ColorModificator getBackgroundModificator()
TreeTableNodeFormatgetBackgroundModificator in interface TreeTableNodeFormatpublic void setBackgroundModificator(ColorModificator backgroundModificator)
TreeTableNodeFormatsetBackgroundModificator in interface TreeTableNodeFormatbackgroundModificator - модификация цвета фонаpublic TreeTableNodeFormatBasic background(ColorModificator backgroundModificator)
public List<Icon> getIcons()
TreeTableNodeFormatgetIcons in interface TreeTableNodeFormatpublic void setIcons(List<Icon> icons)
TreeTableNodeFormatsetIcons in interface TreeTableNodeFormaticons - иконкиpublic TreeTableNodeFormatBasic icons(List<Icon> icons)
public TreeTableNodeFormatBasic icons(Icon... icons)
public xyz.cofe.collection.Convertor<Object,String> getConvertor()
TreeTableNodeFormatgetConvertor in interface TreeTableNodeFormatpublic void setConvertor(xyz.cofe.collection.Convertor<Object,String> convertor)
TreeTableNodeFormatsetConvertor in interface TreeTableNodeFormatconvertor - функция конвертации данныхpublic TreeTableNodeFormatBasic convertor(xyz.cofe.collection.Convertor<Object,String> convertor)
public Integer getIconWidthMin()
TreeTableNodeFormatgetIconWidthMin in interface TreeTableNodeFormatpublic void setIconWidthMin(Integer iconWidthMin)
TreeTableNodeFormatsetIconWidthMin in interface TreeTableNodeFormaticonWidthMin - минимальная резервируемая ширинаpublic TreeTableNodeFormatBasic iconWidthMin(Integer iconWidthMin)
public void merge(TreeTableNodeFormat fmt)
TreeTableNodeFormatmerge in interface TreeTableNodeFormatfmt - настройки форматированияCopyright © 2019. All rights reserved.