|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.components.Line
public class Line
Line object to be displayed on map
| Constructor Summary | |
|---|---|
Line(WgsPoint[] points)
Constructor for line object with default style |
|
Line(WgsPoint[] points,
boolean serverSideRender)
|
|
Line(WgsPoint[] points,
LineStyle style)
Constructor for line with user defined style |
|
Line(WgsPoint[] points,
LineStyle style,
boolean serverSideRender)
|
|
Line(WgsPoint[] points,
LineStyle style,
Label label)
|
|
Line(WgsPoint[] points,
LineStyle style,
Label label,
boolean serverSideRender)
|
|
| Method Summary | |
|---|---|
void |
calculatePosition(GeoMap displayedMap,
int zoomLevel)
Not part of public API. |
int |
distanceInPixels(MapPos cursorOnMap)
|
Label |
getLabel()
|
LineStyle |
getLineStyle()
Not part of public API. |
WgsPoint[] |
getPoints()
|
boolean |
isCentered(MapPos cursorPoint)
|
boolean |
isVisible(int viewX,
int viewY,
int viewWidth,
int viewHeight,
int zoom)
|
void |
paint(Graphics g,
MapPos middlePoint,
int displayCenterX,
int displayCenterY,
Rectangle changedMapArea)
|
void |
setStyle(LineStyle lineStyle)
Set line style. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Line(WgsPoint[] points)
points - points in line (in WGS84)
public Line(WgsPoint[] points,
boolean serverSideRender)
public Line(WgsPoint[] points,
LineStyle style)
points - points in line (in WGS84)style - line style
public Line(WgsPoint[] points,
LineStyle style,
Label label)
public Line(WgsPoint[] points,
LineStyle style,
boolean serverSideRender)
public Line(WgsPoint[] points,
LineStyle style,
Label label,
boolean serverSideRender)
| Method Detail |
|---|
public boolean isVisible(int viewX,
int viewY,
int viewWidth,
int viewHeight,
int zoom)
isVisible in interface OnMapElement
public void paint(Graphics g,
MapPos middlePoint,
int displayCenterX,
int displayCenterY,
Rectangle changedMapArea)
paint in interface OnMapElement
public void calculatePosition(GeoMap displayedMap,
int zoomLevel)
calculatePosition in interface OnMapElementpublic void setStyle(LineStyle lineStyle)
public WgsPoint[] getPoints()
getPoints in interface OnMapElementpublic LineStyle getLineStyle()
public boolean isCentered(MapPos cursorPoint)
isCentered in interface OnMapElementpublic int distanceInPixels(MapPos cursorOnMap)
distanceInPixels in interface OnMapElementpublic Label getLabel()
getLabel in interface OnMapElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||