Issue #2576 Increased the font size of EMER.
Change-Id: Ic6994ce60611b2af76bdee153daffe328e556ef1 Former-commit-id:7d9f3d9372
[formerlyb8fd84509d
] [formerly88f7b75df4
] [formerly7d9f3d9372
[formerlyb8fd84509d
] [formerly88f7b75df4
] [formerlyeeb3b0173b
[formerly88f7b75df4
[formerly 15cdd4c1fdb336416a4cc320731d5ecbbb0db6f6]]]] Former-commit-id:eeb3b0173b
Former-commit-id:1e475d6b33
[formerly641673e1d5
] [formerly cd3195def23d760eed1c4717d9bf0fee8c3ced2a [formerlydc4b8ec40f
]] Former-commit-id: e03027b764b8ea79c6dfa043c06c44c33b01c48a [formerlye0b5d6f75d
] Former-commit-id:bcfa6bb00b
This commit is contained in:
parent
3804cdf794
commit
f6301e6b23
1 changed files with 5 additions and 2 deletions
|
@ -80,6 +80,7 @@ import com.vividsolutions.jts.geom.prep.PreparedGeometryFactory;
|
|||
* Check if geometry is null when inspecting.
|
||||
* Jul 22, 2013 2176 jsanchez Updated the wire frame and text for EMERGENCY warnings.
|
||||
* Sep 4, 2013 2176 jsanchez Made the polygon line width thicker and made regular text not bold.
|
||||
* Dec 3, 2013 2576 jsanchez Increased the font size of EMER.
|
||||
* </pre>
|
||||
*
|
||||
* @author jsanchez
|
||||
|
@ -404,7 +405,7 @@ public abstract class AbstractWWAResource extends
|
|||
.getDefaultFont().getFontName(), 11,
|
||||
new IFont.Style[0]);
|
||||
emergencyFont = target.getDefaultFont().deriveWithSize(
|
||||
11);
|
||||
14);
|
||||
}
|
||||
// DR14992: reverse the textToPrint array to plot the
|
||||
// strings in correct order
|
||||
|
@ -427,12 +428,14 @@ public abstract class AbstractWWAResource extends
|
|||
// Draws the string again to have it appear bolder
|
||||
if (EmergencyType.isEmergency(record.getRawmessage())) {
|
||||
// moves over text to add EMER in a different font
|
||||
textToPrintReversed[2] = String.format("%1$-21" + "s",
|
||||
textToPrintReversed[2] = String.format("%1$-23" + "s",
|
||||
textToPrintReversed[2]);
|
||||
params.setText(textToPrintReversed, color);
|
||||
|
||||
DrawableString emergencyString = new DrawableString(
|
||||
params);
|
||||
emergencyString.setCoordinates(d[0],
|
||||
d[1] + (paintProps.getZoomLevel()) * 90);
|
||||
emergencyString.font = emergencyFont;
|
||||
emergencyString.setText(new String[] { "", "",
|
||||
" " + EmergencyType.EMER, "" }, color);
|
||||
|
|
Loading…
Add table
Reference in a new issue