Loading...
Searching...
No Matches
TitleStyle.java
Go to the documentation of this file.
1package com.navigine.idl.java;
2
16public final class TitleStyle {
17
18
19 /*package*/ final float fontSize;
20
21 /*package*/ final int color;
22
23 /*package*/ final int outlineColor;
24
25 /*package*/ final float outlineWidth;
26
27 /*package*/ final TitleAnchor anchor;
28
29 /*package*/ final boolean visible;
30
34 public TitleStyle(
35 float fontSize,
36 int color,
37 int outlineColor,
38 float outlineWidth,
39 TitleAnchor anchor,
40 boolean visible) {
41 this.fontSize = fontSize;
42 this.color = color;
43 this.outlineColor = outlineColor;
44 this.outlineWidth = outlineWidth;
45 this.anchor = anchor;
46 this.visible = visible;
47 }
48
52 public TitleStyle() {
53 this(12, 0xFF000000, 0xFFFFFFFF, 2, TitleAnchor.CENTER, true);
54 }
55
69 public float getFontSize() {
70 return fontSize;
71 }
72
76 public int getColor() {
77 return color;
78 }
79
83 public int getOutlineColor() {
84 return outlineColor;
85 }
86
90 public float getOutlineWidth() {
91 return outlineWidth;
92 }
93
98 return anchor;
99 }
100
104 public boolean getVisible() {
105 return visible;
106 }
107
108 @Override
109 public String toString() {
110 return "TitleStyle{" +
111 "fontSize=" + fontSize +
112 "," + "color=" + color +
113 "," + "outlineColor=" + outlineColor +
114 "," + "outlineWidth=" + outlineWidth +
115 "," + "anchor=" + anchor +
116 "," + "visible=" + visible +
117 "}";
118 }
119
120}