public static class StyledMapRenderer.StyleRecord extends java.lang.Object implements java.lang.Comparable<StyledMapRenderer.StyleRecord>
| Modifier and Type | Field and Description |
|---|---|
private int |
flags |
private long |
order |
private IPrimitive |
osm |
private StyleElement |
style |
| Constructor and Description |
|---|
StyleRecord(StyleElement style,
IPrimitive osm,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StyledMapRenderer.StyleRecord other) |
boolean |
equals(java.lang.Object obj) |
protected static long |
floatToFixed(float number,
int totalBits)
Converts a float to a fixed point decimal so that the order stays the same.
|
StyleElement |
getStyle()
Get the style for this style element.
|
int |
hashCode() |
void |
paintPrimitive(MapPaintSettings paintSettings,
StyledMapRenderer painter)
Paints the primitive with the style.
|
java.lang.String |
toString() |
private final StyleElement style
private final IPrimitive osm
private final int flags
private final long order
StyleRecord(StyleElement style, IPrimitive osm, int flags)
protected static long floatToFixed(float number, int totalBits)
number - The float to converttotalBits - Total number of bits. 1 sign bit. There should be at least 15 bits.public int compareTo(StyledMapRenderer.StyleRecord other)
compareTo in interface java.lang.Comparable<StyledMapRenderer.StyleRecord>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StyleElement getStyle()
public void paintPrimitive(MapPaintSettings paintSettings, StyledMapRenderer painter)
paintSettings - The settings to use.painter - The painter to paint the style.public java.lang.String toString()
toString in class java.lang.Object