public abstract class PointTextContainer extends MapElementContainer
Modifier and Type | Field and Description |
---|---|
boolean |
isVisible |
int |
maxTextWidth |
Paint |
paintBack |
Paint |
paintFront |
Position |
position |
SymbolContainer |
symbolContainer |
java.lang.String |
text |
int |
textHeight |
int |
textWidth |
boundary, boundaryAbsolute, display, priority, xy
Modifier | Constructor and Description |
---|---|
protected |
PointTextContainer(Point point,
Display display,
int priority,
java.lang.String text,
Paint paintFront,
Paint paintBack,
SymbolContainer symbolContainer,
Position position,
int maxTextWidth)
Create a new point container, that holds the x-y coordinates of a point, a text variable, two paint objects, and
a reference on a symbolContainer, if the text is connected with a POI.
|
Modifier and Type | Method and Description |
---|---|
boolean |
clashesWith(MapElementContainer other)
Returns if MapElementContainers clash with each other
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
compareTo, draw, getBoundaryAbsolute, getPoint, getPriority, intersects
public final boolean isVisible
public final int maxTextWidth
public final Paint paintBack
public final Paint paintFront
public final Position position
public final SymbolContainer symbolContainer
public final java.lang.String text
public final int textHeight
public final int textWidth
protected PointTextContainer(Point point, Display display, int priority, java.lang.String text, Paint paintFront, Paint paintBack, SymbolContainer symbolContainer, Position position, int maxTextWidth)
public boolean clashesWith(MapElementContainer other)
MapElementContainer
clashesWith
in class MapElementContainer
other
- element to test againstpublic boolean equals(java.lang.Object obj)
equals
in class MapElementContainer
public int hashCode()
hashCode
in class MapElementContainer
public java.lang.String toString()
toString
in class MapElementContainer