|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Polygon
org.eclipse.ohf.stem.ui.views.map.StemPolygon
public class StemPolygon
A sub-class of java.awt.Polygon that has an extra field saving the relative value of the polygon. The relative values could be used for intensity values of the labels.
Field Summary | |
---|---|
int |
npointsDouble
The number of the lat/long coordinates (which are saved in double format) |
double[] |
xpointsDouble
the lat/long coordinates in the X-axis |
double[] |
ypointsDouble
the lat/long coordinates in the Y-axis |
Fields inherited from class java.awt.Polygon |
---|
npoints, xpoints, ypoints |
Constructor Summary | |
---|---|
StemPolygon()
Empty constructor. |
|
StemPolygon(LatLong.Segment latLongSegment,
double relativeValueOfPolygon,
java.lang.String title)
Gets a list of a latLongData arrays, and transforms it into a Polygon. |
Method Summary | |
---|---|
void |
addLatLongData(LatLong latLongData,
double relativeValueOfPolygon)
Add latLong coordinates to a polygon. |
void |
addPoint(double x,
double y)
Adds a (double,double) coordinate to the polygon. |
void |
addTitle(java.lang.String title)
Add a title to a polygon. |
org.eclipse.swt.graphics.Point |
getCentralizationFactor()
|
double |
getRelativeValue()
Get the relative value of the polygon (could be intensity value or any other value) |
int |
getScalingFactorForData()
Gets the scaling factor of the data. |
java.lang.String |
getTitle()
Returns the title of the polygon. |
java.lang.String |
getWhichProjection()
|
double |
getXmax()
Returns the maximum X coordinate value (in double format) of the polygon |
double |
getXmin()
Returns the minimum X coordinate (in double format) value of the polygon |
double |
getYmax()
Returns the maximum Y coordinate value (in double format) of the polygon |
double |
getYmin()
Returns the minimum Y coordinate value (in double format) of the polygon |
void |
produceIntCoordinates()
Performs the projection to the polygon. |
void |
setCentralizationFactor(org.eclipse.swt.graphics.Point centralizationFactor)
Set the centralization factor |
void |
setRelativeValue(double val)
Set the relative value of the polygon (could be intensity value or any other value) |
void |
setScalingFactorForData(int scalingFactor)
Sets the scaling factor of the data. |
void |
setWhichProjection(java.lang.String whichProjection)
Set whichProjection |
void |
setXmax()
Sets the maximum X coordinate value (in double format) of the polygon |
void |
setXmin()
Sets the minimum X coordinate (in double format) value of the polygon. |
void |
setYmax()
Sets the maximum Y coordinate value (in double format) of the polygon |
void |
setYmin()
Sets the minimum Y coordinate value (in double format) of the polygon |
void |
translateDoublePointsByCentralizationFactor(org.eclipse.swt.graphics.Point centFactor)
Translates the double points of the polygon to fit in the frame. |
Methods inherited from class java.awt.Polygon |
---|
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double[] xpointsDouble
public double[] ypointsDouble
public int npointsDouble
Constructor Detail |
---|
public StemPolygon()
public StemPolygon(LatLong.Segment latLongSegment, double relativeValueOfPolygon, java.lang.String title)
latLongSegment
- relativeValueOfPolygon
- title
- Method Detail |
---|
public void addLatLongData(LatLong latLongData, double relativeValueOfPolygon)
latLongData
- relativeValueOfPolygon
- public void addPoint(double x, double y)
x
- y
- public void addTitle(java.lang.String title)
title
- public java.lang.String getTitle()
public double getRelativeValue()
public void setRelativeValue(double val)
val
- public void setXmin()
public double getXmin()
public void setXmax()
public double getXmax()
public void setYmin()
public double getYmin()
public void setYmax()
public double getYmax()
public void setScalingFactorForData(int scalingFactor)
scalingFactor
- public int getScalingFactorForData()
public void produceIntCoordinates()
public void translateDoublePointsByCentralizationFactor(org.eclipse.swt.graphics.Point centFactor)
centFactor
- public org.eclipse.swt.graphics.Point getCentralizationFactor()
public void setCentralizationFactor(org.eclipse.swt.graphics.Point centralizationFactor)
centralizationFactor
- public java.lang.String getWhichProjection()
public void setWhichProjection(java.lang.String whichProjection)
whichProjection
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |