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:
andreas.schildbach@gmail.com 2012-01-21 16:17:27 +00:00
parent b97376570a
commit d0a85e7e6f

View file

@ -24,19 +24,43 @@ import java.io.Serializable;
*/ */
public class Style implements Serializable public class Style implements Serializable
{ {
public final Shape shape;
public final int backgroundColor; public final int backgroundColor;
public final int foregroundColor; public final int foregroundColor;
public final int borderColor; public final int borderColor;
public enum Shape
{
RECT, ROUNDED
}
public Style(final int backgroundColor, final int foregroundColor) public Style(final int backgroundColor, final int foregroundColor)
{ {
this.shape = Shape.ROUNDED;
this.backgroundColor = backgroundColor; this.backgroundColor = backgroundColor;
this.foregroundColor = foregroundColor; this.foregroundColor = foregroundColor;
this.borderColor = 0; 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) public Style(final int backgroundColor, final int foregroundColor, final int borderColor)
{ {
this.shape = Shape.ROUNDED;
this.backgroundColor = backgroundColor; this.backgroundColor = backgroundColor;
this.foregroundColor = foregroundColor; this.foregroundColor = foregroundColor;
this.borderColor = borderColor; this.borderColor = borderColor;