Package de.gurkenlabs.litiengine.gui
Class Appearance
java.lang.Object
de.gurkenlabs.litiengine.gui.Appearance
- Direct Known Subclasses:
SpeechBubbleAppearance
public class Appearance
extends java.lang.Object
Constructor Summary
Constructors Constructor Description Appearance()
Appearance(java.awt.Color foreColor)
Appearance(java.awt.Color foreColor, java.awt.Color backColor)
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
protected void
fireOnChangeEvent()
java.awt.Color
getBackgroundColor1()
java.awt.Color
getBackgroundColor2()
java.awt.Paint
getBackgroundPaint(double width, double height)
java.awt.Color
getBorderColor()
float
getBorderRadius()
java.awt.Stroke
getBorderStyle()
java.awt.Color
getForeColor()
int
hashCode()
boolean
isHorizontalBackgroundGradient()
boolean
isTransparentBackground()
void
onChange(java.util.function.Consumer<Appearance> cons)
void
setBackgroundColor1(java.awt.Color backColor1)
void
setBackgroundColor2(java.awt.Color backColor2)
void
setBorderColor(java.awt.Color color)
void
setBorderRadius(float radius)
void
setBorderStyle(java.awt.Stroke style)
void
setForeColor(java.awt.Color foreColor)
void
setHorizontalBackgroundGradient(boolean horizontal)
void
setTransparentBackground(boolean transparentBackground)
void
update(Appearance updateAppearance)
Constructor Details
Appearance
public Appearance()Appearance
public Appearance(java.awt.Color foreColor)Appearance
public Appearance(java.awt.Color foreColor, java.awt.Color backColor)
Method Details
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
getForeColor
public java.awt.Color getForeColor()getBackgroundColor1
public java.awt.Color getBackgroundColor1()getBackgroundColor2
public java.awt.Color getBackgroundColor2()getBackgroundPaint
public java.awt.Paint getBackgroundPaint(double width, double height)getBorderColor
public java.awt.Color getBorderColor()getBorderStyle
public java.awt.Stroke getBorderStyle()getBorderRadius
public float getBorderRadius()isHorizontalBackgroundGradient
public boolean isHorizontalBackgroundGradient()isTransparentBackground
public boolean isTransparentBackground()setForeColor
public void setForeColor(java.awt.Color foreColor)setBackgroundColor1
public void setBackgroundColor1(java.awt.Color backColor1)setBackgroundColor2
public void setBackgroundColor2(java.awt.Color backColor2)setBorderColor
public void setBorderColor(java.awt.Color color)setBorderStyle
public void setBorderStyle(java.awt.Stroke style)setBorderRadius
public void setBorderRadius(float radius)setHorizontalBackgroundGradient
public void setHorizontalBackgroundGradient(boolean horizontal)setTransparentBackground
public void setTransparentBackground(boolean transparentBackground)onChange
update
fireOnChangeEvent
protected void fireOnChangeEvent()