mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-12 08:18:50 +00:00
line label shapes
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@889 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
b97376570a
commit
d0a85e7e6f
1 changed files with 24 additions and 0 deletions
|
@ -24,19 +24,43 @@ import java.io.Serializable;
|
|||
*/
|
||||
public class Style implements Serializable
|
||||
{
|
||||
public final Shape shape;
|
||||
public final int backgroundColor;
|
||||
public final int foregroundColor;
|
||||
public final int borderColor;
|
||||
|
||||
public enum Shape
|
||||
{
|
||||
RECT, ROUNDED
|
||||
}
|
||||
|
||||
public Style(final int backgroundColor, final int foregroundColor)
|
||||
{
|
||||
this.shape = Shape.ROUNDED;
|
||||
this.backgroundColor = backgroundColor;
|
||||
this.foregroundColor = foregroundColor;
|
||||
this.borderColor = 0;
|
||||
}
|
||||
|
||||
public Style(final Shape shape, final int backgroundColor, final int foregroundColor)
|
||||
{
|
||||
this.shape = shape;
|
||||
this.backgroundColor = backgroundColor;
|
||||
this.foregroundColor = foregroundColor;
|
||||
this.borderColor = 0;
|
||||
}
|
||||
|
||||
public Style(final Shape shape, final int backgroundColor, final int foregroundColor, final int borderColor)
|
||||
{
|
||||
this.shape = shape;
|
||||
this.backgroundColor = backgroundColor;
|
||||
this.foregroundColor = foregroundColor;
|
||||
this.borderColor = borderColor;
|
||||
}
|
||||
|
||||
public Style(final int backgroundColor, final int foregroundColor, final int borderColor)
|
||||
{
|
||||
this.shape = Shape.ROUNDED;
|
||||
this.backgroundColor = backgroundColor;
|
||||
this.foregroundColor = foregroundColor;
|
||||
this.borderColor = borderColor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue