|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.sf.mapswidgets.Overlay
jp.sf.mapswidgets.Polyline
public final class Polyline
Instances of this class represent a vector polyline overlay on the map.
A polyline is drawn with the vector drawing facilities of the browser if they are available or an image overlay from Google servers otherwise.
See Google Maps API documentation [Class Reference > GPolyline].
Marker
Constructor Summary | |
---|---|
Polyline(Point[] points)
Construct a new instance of this class given the points. |
|
Polyline(Point[] points,
org.eclipse.swt.graphics.RGB color)
Construct a new instance of this class given the points and the color. |
|
Polyline(Point[] points,
org.eclipse.swt.graphics.RGB color,
int lineWidth)
Construct a new instance of this class given the points, the color and the width of the line. |
|
Polyline(Point[] points,
org.eclipse.swt.graphics.RGB color,
int lineWidth,
double opacity)
Construct a new instance of this class given the points, the color , the width of the line and the opacity. |
Method Summary | |
---|---|
void |
dispose()
Removes this polyline form the map. |
org.eclipse.swt.graphics.RGB |
getColor()
Get the color. |
int |
getLineWidth()
Get the width of the line. |
double |
getOpacity()
Get the opacity. |
Point[] |
getPoints()
Get the points. |
java.util.List<Point> |
getPointsList()
Get the inner points list. |
void |
setColor(org.eclipse.swt.graphics.RGB color)
Set the color |
void |
setLineWidth(int lineWidth)
Set the width of the line |
void |
setOpacity(double opacity)
Set the opacity. |
void |
setPoints(Point[] points)
Set the points |
Methods inherited from class jp.sf.mapswidgets.Overlay |
---|
toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Polyline(Point[] points)
points
- the pointspublic Polyline(Point[] points, org.eclipse.swt.graphics.RGB color)
points
- the pointscolor
- the colorpublic Polyline(Point[] points, org.eclipse.swt.graphics.RGB color, int lineWidth)
points
- the pointscolor
- the colorlineWidth
- the width of the line in pixelspublic Polyline(Point[] points, org.eclipse.swt.graphics.RGB color, int lineWidth, double opacity)
points
- the pointscolor
- the colorlineWidth
- the width of the line in pixelsopacity
- the opacityMethod Detail |
---|
public void dispose()
public org.eclipse.swt.graphics.RGB getColor()
public int getLineWidth()
public double getOpacity()
public Point[] getPoints()
public java.util.List<Point> getPointsList()
Changes to this list are reflected immediately.
public void setColor(org.eclipse.swt.graphics.RGB color)
color
- the colorpublic void setLineWidth(int lineWidth)
lineWidth
- the width of the linepublic void setOpacity(double opacity)
opacity
- the opacitypublic void setPoints(Point[] points)
points
- the points
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |