public class Style extends java.lang.Object implements java.lang.Cloneable, SendableEntityCreatorNoIndex
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<GUIPosition,GUILine> |
borders |
static java.lang.String |
PROPERTY_ALIGNMENT
The Constant PROPERTY_BACKGROUND for Color of Background Attribute
|
static java.lang.String |
PROPERTY_BACKGROUND
The Constant PROPERTY_BACKGROUND for Color of Background Attribute
|
static java.lang.String |
PROPERTY_BOLD
The Constant PROPERTY_BOLD for Bold Attribute
|
static java.lang.String |
PROPERTY_BORDER |
static java.lang.String |
PROPERTY_FONTFAMILY
The Constant PROPERTY_FONT for Font-Family Attribute
|
static java.lang.String |
PROPERTY_FONTSIZE
The Constant PROPERTY_FONTSIZE for Font-Size Attribute
|
static java.lang.String |
PROPERTY_FORGROUND
The Constant PROPERTY_FORGROUND for Color of Font Attribute
|
static java.lang.String |
PROPERTY_HEIGHT
The Constant PROPERTY_HEIGHT for Height of Height
|
static java.lang.String |
PROPERTY_ITALIC
The Constant PROPERTY_ITALIC for Italic Attribute
|
static java.lang.String |
PROPERTY_NAME
The Constant PROPERTY_NAME for Name of Style
|
static java.lang.String |
PROPERTY_UNDERLINE
The Constant PROPERTY_BACKGROUND for Color of Background Attribute
|
static java.lang.String |
PROPERTY_WIDTH
The Constant PROPERTY_WIDTH for Width of Width
|
| Constructor and Description |
|---|
Style() |
| Modifier and Type | Method and Description |
|---|---|
Style |
clone() |
Style |
clone(Style prototyp) |
java.lang.String |
getAlignment() |
java.lang.String |
getBackground() |
java.util.HashMap<GUIPosition,GUILine> |
getBorders() |
java.lang.String |
getFontFamily() |
java.lang.String |
getFontSize() |
java.lang.String |
getForground() |
double |
getHeight() |
java.lang.String |
getName() |
java.lang.String[] |
getProperties()
Gets the properties.
|
java.lang.Object |
getSendableInstance(boolean prototyp)
Gets the sendable instance.
|
java.lang.Object |
getValue(java.lang.Object entity,
java.lang.String attrName)
Gets the value.
|
double |
getWidth() |
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isUnderline() |
void |
propertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue) |
void |
setBorder(GUIPosition position,
java.lang.String width,
java.lang.String color) |
boolean |
setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
Sets the value.
|
Style |
withAlignment(GUIPosition value) |
Style |
withAlignment(java.lang.String value) |
Style |
withBackground(java.lang.String value) |
Style |
withBold(boolean value) |
Style |
withBorder(GUIPosition position,
GUILine line) |
Style |
withFontFamily(java.lang.String value) |
Style |
withFontSize(java.lang.String value) |
Style |
withForground(java.lang.String value) |
Style |
withHeight(double value) |
Style |
withItalic(boolean value) |
Style |
withName(java.lang.String name) |
Style |
withOutBorder(GUIPosition position) |
Style |
withUnderline(boolean value) |
Style |
withWidth(double value) |
public static final java.lang.String PROPERTY_NAME
public static final java.lang.String PROPERTY_BOLD
public static final java.lang.String PROPERTY_ITALIC
public static final java.lang.String PROPERTY_FONTFAMILY
public static final java.lang.String PROPERTY_FONTSIZE
public static final java.lang.String PROPERTY_FORGROUND
public static final java.lang.String PROPERTY_BACKGROUND
public static final java.lang.String PROPERTY_UNDERLINE
public static final java.lang.String PROPERTY_ALIGNMENT
public static final java.lang.String PROPERTY_WIDTH
public static final java.lang.String PROPERTY_HEIGHT
public static final java.lang.String PROPERTY_BORDER
protected java.util.HashMap<GUIPosition,GUILine> borders
public boolean isBold()
public Style withBold(boolean value)
public boolean isItalic()
public Style withItalic(boolean value)
public java.lang.String getFontFamily()
public Style withFontFamily(java.lang.String value)
public java.lang.String getFontSize()
public Style withFontSize(java.lang.String value)
public java.lang.String getForground()
public Style withForground(java.lang.String value)
public java.lang.String getBackground()
public Style withBackground(java.lang.String value)
public Style clone()
clone in class java.lang.Objectpublic boolean isUnderline()
public Style withUnderline(boolean value)
public java.lang.String getAlignment()
public Style withAlignment(GUIPosition value)
public Style withAlignment(java.lang.String value)
public double getHeight()
public Style withHeight(double value)
public double getWidth()
public Style withWidth(double value)
public Style withBorder(GUIPosition position, GUILine line)
public void setBorder(GUIPosition position, java.lang.String width, java.lang.String color)
public java.util.HashMap<GUIPosition,GUILine> getBorders()
public Style withOutBorder(GUIPosition position)
public void propertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
public java.lang.String[] getProperties()
SendableEntityCreatorgetProperties in interface SendableEntityCreatorpublic java.lang.Object getValue(java.lang.Object entity,
java.lang.String attrName)
SendableEntityCreatorgetValue in interface SendableEntityCreatorentity - the entityattrName - the attributepublic boolean setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
SendableEntityCreatorsetValue in interface SendableEntityCreatorentity - the entityattribute - the attributevalue - the valuetype - edit, update or remove operationpublic java.lang.Object getSendableInstance(boolean prototyp)
SendableEntityCreatorgetSendableInstance in interface SendableEntityCreatorprototyp - the prototyppublic java.lang.String getName()
public Style withName(java.lang.String name)