|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.link.LinkActionList
public class LinkActionList
The LinkActionList carries information about actions that the client should perform in response to a gesture query. The possible actions include URLs and HTML text to display in a browser, information to display in a pop-up window or status display, or changes to make to graphics.
Field Summary | |
---|---|
protected static java.util.Vector |
emptyGraphicUpdates
Instead of allocating a new empty vector for each gesture response, even if there isn't a graphic update, use this to return an empty vector. |
protected Link |
link
Link used for the transmission/reception of actions. |
protected java.lang.String |
linkStatus
The terminator of the gesture section when receiving actions. |
protected LinkProperties |
mapProperties
Use these properties to set the map |
protected boolean |
mapUpdate
This flag tells whether properties have been received that note how to update the map. |
protected LinkProperties |
properties
The properties returned for this list. |
protected boolean |
reacted
|
protected java.util.Vector |
updates
Graphics list received. |
protected static float |
version
Version Number of request format. |
Constructor Summary | |
---|---|
LinkActionList(Link link,
Layer layer,
Projection proj,
OMGridGenerator generator)
Read the gesture section off the link, from the client. |
|
LinkActionList(Link link,
LinkProperties properties)
Write a gesture response section to the link, from the server side. |
Method Summary | |
---|---|
boolean |
consumedGesture()
Returns true if the gesture was consumed by the server. |
void |
deselectGraphics()
The server method for writing a request to the client to deselect all the graphics. |
void |
end(java.lang.String endType)
The server method that needs to be called at the end of sending a gesture response. |
java.util.Vector |
getGraphicUpdates()
Return all the graphic updates that came across the link, in the form of a Vector of LinkActionList.GraphicUpdate objects. |
java.lang.String |
getLinkStatus()
After reading the gesture response, this returns the section ending string terminating the gesture section, either Link.END_TOTAL or Link.END_SECTION. |
LinkProperties |
getMapProperties()
Get the properties for the map update. |
boolean |
getNeedMapUpdate()
Returns true if a map update command was given. |
LinkProperties |
getProperties()
Get the properties for the LinkActionList. |
void |
modifyGraphic(int maskDescription,
LinkProperties props)
Server can use this method to modify a graphic with an action described by the MODIFY mask values. |
protected java.lang.String |
readGestureResponses(Layer layer,
Projection proj,
OMGridGenerator generator)
If a ACTIONS_HEADER has been encountered coming off the link, then this method should be called to read the string of gesture that follows. |
protected GraphicUpdate |
readGraphic(int graphicAction,
LinkProperties graphicProperties,
Projection proj,
OMGridGenerator generator)
Read a graphic's particulars, for upates and additions. |
void |
setNeedMapUpdate(boolean value)
Sets whether a set of MapUpdate parameters needs to be fetched. |
void |
updateArc(float latPoint,
float lonPoint,
float radius,
float s,
float e,
LinkProperties properties,
int graphicUpdateMask)
Update an arc with a certain radius at a Lat/Lon location. |
void |
updateArc(float latPoint,
float lonPoint,
float radius,
int units,
float s,
float e,
LinkProperties properties,
int graphicUpdateMask)
Update an arc with a certain radius at a Lat/Lon location, and allows you to specify units of the radius. |
void |
updateArc(float latPoint,
float lonPoint,
float radius,
int units,
int nverts,
float s,
float e,
LinkProperties properties,
int graphicUpdateMask)
Update an arc with a certain radius at a Lat/Lon location, and allows you to specify units of the radius, as well as the number of vertices to use to approximate the arc. |
void |
updateArc(float latPoint,
float lonPoint,
int w,
int h,
float s,
float e,
LinkProperties properties,
int graphicUpdateMask)
Update an arc with lat/lon placement. |
void |
updateArc(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
int w,
int h,
float s,
float e,
LinkProperties properties,
int graphicUpdateMask)
Writing an arc at a x, y, offset to a Lat/Lon location. |
void |
updateArc(int x1,
int y1,
int w,
int h,
float s,
float e,
LinkProperties properties,
int graphicUpdateMask)
Update an arc with x/y placement. |
void |
updateBitmap(float lt,
float ln,
int w,
int h,
byte[] bytes,
LinkProperties properties,
int graphicUpdateMask)
Update the bitmap. |
void |
updateBitmap(float lt,
float ln,
int offset_x1,
int offset_y1,
int w,
int h,
byte[] bytes,
LinkProperties properties,
int graphicUpdateMask)
Write a bitmap in the response. |
void |
updateBitmap(int x1,
int y1,
int w,
int h,
byte[] bytes,
LinkProperties properties,
int graphicUpdateMask)
Update the bitmap. |
void |
updateCircle(float latPoint,
float lonPoint,
float radius,
int units,
int nverts,
LinkProperties properties,
int graphicUpdateMask)
Write a circle in the response. |
void |
updateCircle(float latPoint,
float lonPoint,
float radius,
int units,
LinkProperties properties,
int graphicUpdateMask)
Write a circle in the response. |
void |
updateCircle(float latPoint,
float lonPoint,
float radius,
LinkProperties properties,
int graphicUpdateMask)
Write a circle in the response. |
void |
updateCircle(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
int w,
int h,
LinkProperties properties,
int graphicUpdateMask)
Write a circle in the response. |
void |
updateCircle(float latPoint,
float lonPoint,
int w,
int h,
LinkProperties properties,
int graphicUpdateMask)
Write a circle in the response. |
void |
updateCircle(int x1,
int y1,
int w,
int h,
LinkProperties properties,
int graphicUpdateMask)
Write a circle in the response. |
void |
updateEllipse(float latPoint,
float lonPoint,
float majorAxisSpan,
float minorAxisSpan,
int units,
float rotationAngle,
LinkProperties properties,
int graphicUpdateMask)
Write an ellipse in the response. |
void |
updateEllipse(float latPoint,
float lonPoint,
int w,
int h,
float rotateAngle,
LinkProperties properties,
int graphicUpdateMask)
Write an ellipse in the response. |
void |
updateEllipse(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
int w,
int h,
float rotateAngle,
LinkProperties properties,
int graphicUpdateMask)
Write an ellipse in the response. |
void |
updateEllipse(int x1,
int y1,
int majorAxisSpan,
int minorAxisSpan,
float rotateAngle,
LinkProperties properties,
int graphicUpdateMask)
Write an ellipse in the response. |
void |
updateGraphic(OMGraphic omGraphic,
int graphicUpdateMask)
Write an OMGraphic to the response. |
void |
updateGrid(float lt,
float ln,
int rows,
int columns,
float orientation,
float vResolution,
float hResolution,
int major,
int[] data,
LinkProperties properties,
int graphicUpdateMask)
Lat/Lon placement grid. |
void |
updateGrid(float lt,
float ln,
int offset_x1,
int offset_y1,
int rows,
int columns,
float orientation,
float vResolution,
float hResolution,
int major,
int[] data,
LinkProperties properties,
int graphicUpdateMask)
Lat/lon placement with XY offset. |
void |
updateGrid(int x1,
int y1,
int rows,
int columns,
float orientation,
float vResolution,
float hResolution,
int major,
int[] data,
LinkProperties properties,
int graphicUpdateMask)
XY placement grid. |
void |
updateLine(float lat_1,
float lon_1,
float lat_2,
float lon_2,
int lineType,
int nsegs,
LinkProperties properties,
int graphicUpdateMask)
Write a line in the response. |
void |
updateLine(float lat_1,
float lon_1,
float lat_2,
float lon_2,
int lineType,
LinkProperties properties,
int graphicUpdateMask)
Write a line in the response. |
void |
updateLine(float lat_1,
float lon_1,
int x1,
int y1,
int x2,
int y2,
LinkProperties properties,
int graphicUpdateMask)
Write a line in the response. |
void |
updateLine(int x1,
int y1,
int x2,
int y2,
LinkProperties properties,
int graphicUpdateMask)
Write a line in the response. |
void |
updatePoint(float lt1,
float ln1,
int x1,
int y1,
int radius,
LinkProperties properties,
int graphicUpdateMask)
Write a point in the response. |
void |
updatePoint(float lt1,
float ln1,
int radius,
LinkProperties properties,
int graphicUpdateMask)
Write a point in the response. |
void |
updatePoint(int x1,
int y1,
int radius,
LinkProperties properties,
int graphicUpdateMask)
Write a point in the response. |
void |
updatePoly(double[] llpoints,
int units,
int lType,
int nsegs,
LinkProperties properties,
int graphicUpdateMask)
Write a poly in the response. |
void |
updatePoly(double[] llPoints,
int units,
int lType,
LinkProperties properties,
int graphicUpdateMask)
Write a poly in the response. |
void |
updatePoly(float latPoint,
float lonPoint,
int[] xpoints,
int[] ypoints,
int cMode,
LinkProperties properties,
int graphicUpdateMask)
Write a poly in the response. |
void |
updatePoly(float latPoint,
float lonPoint,
int[] xypoints,
int cMode,
LinkProperties properties,
int graphicUpdateMask)
Write a poly in the response. |
void |
updatePoly(int[] xpoints,
int[] ypoints,
LinkProperties properties,
int graphicUpdateMask)
Write a poly in the response. |
void |
updatePoly(int[] xypoints,
LinkProperties properties,
int graphicUpdateMask)
Write a poly in the response. |
void |
updateRaster(float lt,
float ln,
javax.swing.ImageIcon ii,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(float lt,
float ln,
java.awt.Image image,
int image_width,
int image_height,
LinkProperties properties,
int graphicUpdateMask)
Write a bitmap in the response. |
void |
updateRaster(float lt,
float ln,
int w,
int h,
byte[] bytes,
java.awt.Color[] colorTable,
int trans,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(float lt,
float ln,
int offset_x1,
int offset_y1,
javax.swing.ImageIcon ii,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(float lt,
float ln,
int offset_x1,
int offset_y1,
java.awt.Image image,
int image_width,
int image_height,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(float lt,
float ln,
int w,
int h,
int[] pix,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(float lt,
float ln,
int offset_x1,
int offset_y1,
int w,
int h,
byte[] bytes,
java.awt.Color[] colorTable,
int trans,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(float lt,
float ln,
int offset_x1,
int offset_y1,
int w,
int h,
int[] pix,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(float lt,
float ln,
int offset_x1,
int offset_y1,
java.lang.String url,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(float lt,
float ln,
java.lang.String url,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(int x1,
int y1,
javax.swing.ImageIcon ii,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(int x1,
int y1,
java.awt.Image image,
int image_width,
int image_height,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(int x1,
int y1,
int w,
int h,
byte[] bytes,
java.awt.Color[] colorTable,
int trans,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(int x1,
int y1,
int w,
int h,
int[] pix,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRaster(int x1,
int y1,
java.lang.String url,
LinkProperties properties,
int graphicUpdateMask)
Write a raster in the response. |
void |
updateRectangle(float lt1,
float ln1,
float lt2,
float ln2,
int lType,
int nsegs,
LinkProperties properties,
int graphicUpdateMask)
Write a rectangle in the response. |
void |
updateRectangle(float lt1,
float ln1,
float lt2,
float ln2,
int lType,
LinkProperties properties,
int graphicUpdateMask)
Write a rectangle in the response. |
void |
updateRectangle(float lt1,
float ln1,
int x1,
int y1,
int x2,
int y2,
LinkProperties properties,
int graphicUpdateMask)
Write a rectangle in the response. |
void |
updateRectangle(int x1,
int y1,
int x2,
int y2,
LinkProperties properties,
int graphicUpdateMask)
Write a rectangle in the response. |
void |
updateText(float latPoint,
float lonPoint,
int offset_x,
int offset_y,
java.lang.String stuff,
int justify,
LinkProperties properties,
int graphicUpdateMask)
Write a text in the response. |
void |
updateText(float latPoint,
float lonPoint,
int offset_x,
int offset_y,
java.lang.String stuff,
java.lang.String font,
int justify,
LinkProperties properties,
int graphicUpdateMask)
Write a text in the response. |
void |
updateText(float latPoint,
float lonPoint,
java.lang.String stuff,
int justify,
LinkProperties properties,
int graphicUpdateMask)
Write a text in the response. |
void |
updateText(float latPoint,
float lonPoint,
java.lang.String stuff,
java.lang.String font,
int justify,
LinkProperties properties,
int graphicUpdateMask)
Write a text in the response. |
void |
updateText(int x,
int y,
java.lang.String stuff,
int justify,
LinkProperties properties,
int graphicUpdateMask)
Write a text in the response. |
void |
updateText(int x,
int y,
java.lang.String stuff,
java.lang.String font,
int justify,
LinkProperties properties,
int graphicUpdateMask)
Write a text in the response. |
void |
writeGraphicGestureHeader(int graphicUpdateMask)
Used by the graphic methods to write the correct mask and graphic header when a graphic is updated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Link link
protected java.lang.String linkStatus
protected boolean reacted
protected boolean mapUpdate
protected LinkProperties mapProperties
protected static java.util.Vector emptyGraphicUpdates
protected java.util.Vector updates
protected static float version
protected LinkProperties properties
Constructor Detail |
---|
public LinkActionList(Link link, LinkProperties properties) throws java.io.IOException
link
- the Link to write to.
java.io.IOException
public LinkActionList(Link link, Layer layer, Projection proj, OMGridGenerator generator) throws java.io.IOException, java.io.EOFException
link
- the link to read from.layer
- the client layer.proj
- the projection to use on graphic updates.generator
- an OMGridGenerator that knows how to render grid
objects.
java.io.IOException
java.io.EOFException
Method Detail |
---|
public java.lang.String getLinkStatus()
public LinkProperties getProperties()
public LinkProperties getMapProperties()
public java.util.Vector getGraphicUpdates()
public void end(java.lang.String endType) throws java.io.IOException
endType
- use Link.END_SECTION if you want to add more types of
responses. Use Link.END_TOTAL at the end of the total
transmission.
java.io.IOException
protected java.lang.String readGestureResponses(Layer layer, Projection proj, OMGridGenerator generator) throws java.io.IOException, java.io.EOFException
layer
- the layer that wants the gesture results..proj
- If you want the gesture graphic to be projected as it comes
off the wire, add a projection here. Otherwise, use null.generator
- an OMGridGenerator that knows how to render grid
objects.
java.io.IOException
java.io.EOFException
protected GraphicUpdate readGraphic(int graphicAction, LinkProperties graphicProperties, Projection proj, OMGridGenerator generator) throws java.io.IOException
graphicAction
- the action to take on the graphic.proj
- the projection to apply to the graphic.generator
- an OMGridGenerator that knows how to render grid
objects.
java.io.IOException
public boolean consumedGesture()
public boolean getNeedMapUpdate()
public void setNeedMapUpdate(boolean value)
public void deselectGraphics() throws java.io.IOException
java.io.IOException
public void modifyGraphic(int maskDescription, LinkProperties props) throws java.io.IOException
maskDescription
- an integer with the applicable MODIFY_MASKS set.props
- property list containing the identifier used by the client
to know which graphic to modify.
java.io.IOException
public void writeGraphicGestureHeader(int graphicUpdateMask) throws java.io.IOException
graphicUpdateMask
- the masked integer to describe the action on the
graphic.
java.io.IOException
public void updateArc(float latPoint, float lonPoint, int w, int h, float s, float e, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of center point, decimal degreeslonPoint
- longitude of center point, decimal degreesw
- horizontal diameter of arc, pixelsh
- vertical diameter of arc, pixelss
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.
java.io.IOException
public void updateArc(int x1, int y1, int w, int h, float s, float e, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- window position of center point from left of window, in pixelsy1
- window position of center point from top of window, in pixelsw
- horizontal diameter of arc, pixelsh
- vertical diameter of arc, pixelss
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.
java.io.IOException
public void updateArc(float latPoint, float lonPoint, int offset_x1, int offset_y1, int w, int h, float s, float e, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of center of arc.lonPoint
- longitude of center of arc.offset_x1
- # pixels to the right the center will be moved from
lonPoint.offset_y1
- # pixels down that the center will be moved from
latPoint.w
- horizontal diameter of arc, pixels.h
- vertical diameter of arc, pixels.s
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.
java.io.IOException
public void updateArc(float latPoint, float lonPoint, float radius, float s, float e, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of center point, decimal degreeslonPoint
- longitude of center point, decimal degreesradius
- distance in decimal degreess
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.
java.io.IOException
public void updateArc(float latPoint, float lonPoint, float radius, int units, float s, float e, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of center of arc in decimal degreeslonPoint
- longitude of center of arc in decimal degreesradius
- distanceunits
- integer value for units for distance - KM, MILES, NMILES. If
< 0, assume decimal degrees.s
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.
java.io.IOException
public void updateArc(float latPoint, float lonPoint, float radius, int units, int nverts, float s, float e, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of center of arc in decimal degreeslonPoint
- longitude of center of arc in decimal degreesradius
- distanceunits
- integer value for units for distance - OMArc.KM,
OMArc.MILES, OMArc.NMILES. If < 0, assume decimal degrees.nverts
- number of vertices for the poly-arc (if < 3, value is
generated internally).s
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.
java.io.IOException
public void updateBitmap(float lt, float ln, int w, int h, byte[] bytes, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of placement of upper left corner of bitmap.ln
- longitude of placement of upper left corner of bitmap.w
- pixel width of bitmap.h
- pixel height of bitmap.bytes
- bitmap data.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkBitmap
public void updateBitmap(int x1, int y1, int w, int h, byte[] bytes, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- horizontal placement of upper left corner of bitmap.y1
- vertical placement of upper left corner of bitmap.w
- pixel width of bitmap.h
- pixel height of bitmap.bytes
- bitmap data.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkBitmap
public void updateBitmap(float lt, float ln, int offset_x1, int offset_y1, int w, int h, byte[] bytes, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of placement of upper left corner of bitmap.ln
- longitude of placement of upper left corner of bitmap.offset_x1
- horizontal offset of upper left corner of bitmap.offset_y1
- vertical offset of upper left corner of bitmap.w
- pixel width of bitmap.h
- pixel height of bitmap.bytes
- bitmap data.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkBitmap
public void updateCircle(float latPoint, float lonPoint, int w, int h, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of placement of center of circle.lonPoint
- longitude of placement of center of circle.w
- pixel width of circle.h
- pixel height of circle.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkCircle
public void updateCircle(int x1, int y1, int w, int h, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- horizontal pixel placement of center of circle..y1
- vertical pixel placement of center of circle..w
- pixel width of circle.h
- pixel height of circle.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkCircle
public void updateCircle(float latPoint, float lonPoint, int offset_x1, int offset_y1, int w, int h, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of placement of center of circle.lonPoint
- longitude of placement of center of circle.offset_x1
- horizontal pixel offset of center of circle..offset_y1
- vertical pixel offset of center of circle..w
- width of circle.h
- height of circle.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkCircle
public void updateCircle(float latPoint, float lonPoint, float radius, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of placement of center of circle.lonPoint
- longitude of placement of center of circle.radius
- radius of circle, in decimal degrees..properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkCircle
public void updateCircle(float latPoint, float lonPoint, float radius, int units, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of placement of center of circle.lonPoint
- longitude of placement of center of circle.radius
- radius of circle, in decimal degrees..units
- units of the radius - km, miles, nmiles, degrees..properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkCircle
public void updateCircle(float latPoint, float lonPoint, float radius, int units, int nverts, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of placement of center of circle.lonPoint
- longitude of placement of center of circle.radius
- radius of circle, in decimal degrees..units
- units of the radius - km, miles, nmiles, degrees..nverts
- number of points to use to approximate the circle. If
negative, the client algorithm will figure out what is best.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkCircle
public void updateEllipse(float latPoint, float lonPoint, float majorAxisSpan, float minorAxisSpan, int units, float rotationAngle, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of center of circle in decimal degreeslonPoint
- longitude of center of circle in decimal degreesmajorAxisSpan
- x axis value, unitsminorAxisSpan
- y axis value, unitsunits
- integer value for units for distance - OMCircle.KM,
OMCircle.MILES, OMCircle.NMILES. If < 0, assume decimal
degrees.rotationAngle
- The angle by which the circle/ellipse is to be
rotated, in radiansproperties
- attributes for the circle.
java.io.IOException
public void updateEllipse(int x1, int y1, int majorAxisSpan, int minorAxisSpan, float rotateAngle, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- window position of center point from left of window, in pixelsy1
- window position of center point from top of window, in pixelsmajorAxisSpan
- horizontal diameter of circle/ellipse, pixelsminorAxisSpan
- vertical diameter of circle/ellipse, pixelsrotateAngle
- angle of rotation in Radians *properties
- the LinkProperties describing the attributes of the
ellipse.
java.io.IOException
public void updateEllipse(float latPoint, float lonPoint, int w, int h, float rotateAngle, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of center of circle in decimal degreeslonPoint
- longitude of center of circle in decimal degreesw
- horizontal diameter of circle/ellipse, pixelsh
- vertical diameter of circle/ellipse, pixelsrotateAngle
- angle of rotation in Radiansproperties
- the LinkProperties describing the attributes of the
ellipse.
java.io.IOException
public void updateEllipse(float latPoint, float lonPoint, int offset_x1, int offset_y1, int w, int h, float rotateAngle, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of center of circle in decimal degreeslonPoint
- longitude of center of circle in decimal degreesoffset_x1
- # pixels to the right the center will be moved from
lonPoint.offset_y1
- # pixels down that the center will be moved from
latPoint.w
- horizontal diameter of circle/ellipse, pixels.h
- vertical diameter of circle/ellipse, pixels.rotateAngle
- the rotation of the ellipse around the center point,
in radians.properties
- the LinkProperties describing the attributes of the
ellipse.
java.io.IOException
public void updateGrid(float lt, float ln, int rows, int columns, float orientation, float vResolution, float hResolution, int major, int[] data, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of the top of the grid.ln
- longitude of the left side of the grid.rows
- number of vertical points of the grid.columns
- number of horizontal points of the grid.orientation
- the direction of the vertical axits of the grid, in
radians from up ( North).vResolution
- degrees/point between rows of the grid.hResolution
- degrees/point between columns of the grid.major
- designation of the presentation of the data, as columns
(COLUMN_MAJOR) or rows (ROW_MAJOR).data
- data points of the grid.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkGrid
public void updateGrid(int x1, int y1, int rows, int columns, float orientation, float vResolution, float hResolution, int major, int[] data, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- window location of the left side of the grid.y1
- window location of the top of the grid.rows
- number of vertical points of the grid.columns
- number of horizontal points of the grid.orientation
- the direction of the vertical axits of the grid, in
radians from up ( North).vResolution
- pixels/point between rows of the grid.hResolution
- pixels/point between columns of the grid.major
- designation of the presentation of the data, as columns
(COLUMN_MAJOR) or rows (ROW_MAJOR).data
- data points of the grid.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkGrid
public void updateGrid(float lt, float ln, int offset_x1, int offset_y1, int rows, int columns, float orientation, float vResolution, float hResolution, int major, int[] data, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of the top of the image, before the offset.ln
- longitude of the left side of the image, before the offset.offset_x1
- number of pixels to move image to the right.offset_y1
- number of pixels to move image down.rows
- number of vertical points of the grid.columns
- number of horizontal points of the grid.orientation
- the direction of the vertical axits of the grid, in
radians from up ( North).vResolution
- pixels/point between rows of the grid.hResolution
- pixels/point between columns of the grid.major
- designation of the presentation of the data, as columns
(COLUMN_MAJOR) or rows (ROW_MAJOR).data
- data points of the grid.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkGrid
public void updateLine(float lat_1, float lon_1, float lat_2, float lon_2, int lineType, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lat_1
- latitude of placement of start of line.lon_1
- longitude of placement of start of line.lat_2
- latitude of placement of end of line.lon_2
- longitude of placement of end of line.lineType
- type of line - straight, rhumb, great circle..properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkLine
public void updateLine(float lat_1, float lon_1, float lat_2, float lon_2, int lineType, int nsegs, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lat_1
- latitude of placement of start of line.lon_1
- longitude of placement of start of line.lat_2
- latitude of placement of end of line.lon_2
- longitude of placement of end of line.lineType
- type of line - straight, rhumb, great circle..nsegs
- number of points to use to approximate curved line..properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkLine
public void updateLine(int x1, int y1, int x2, int y2, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- Horizontal pixel placement of start of line.y1
- Vertical pixel placement of start of line.x2
- Horizontal pixel placement of end of line.y2
- Vertical pixel placement of end of line.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkLine
public void updateLine(float lat_1, float lon_1, int x1, int y1, int x2, int y2, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lat_1
- latitude of placement of line.lon_1
- longitude of placement of line.x1
- Horizontal pixel offset of start of line.y1
- Vertical pixel offset of start of line.x2
- Horizontal pixel offset of end of line.y2
- Vertical pixel offset of end of line.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkLine
public void updateRaster(float lt, float ln, javax.swing.ImageIcon ii, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException, java.lang.InterruptedException
lt
- latitude of placement of upper left corner of raster.ln
- longitude of placement of upper left corner of raster.ii
- ImageIcon to place on the map..properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
java.lang.InterruptedException
LinkRaster
public void updateRaster(int x1, int y1, javax.swing.ImageIcon ii, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException, java.lang.InterruptedException
x1
- horizontal pixel location of upper left corner of raster.y1
- vertical pixel location of upper left corner of raster.ii
- ImageIcon to place on the map..properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
java.lang.InterruptedException
LinkRaster
public void updateRaster(float lt, float ln, int offset_x1, int offset_y1, javax.swing.ImageIcon ii, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException, java.lang.InterruptedException
lt
- latitude of placement of upper left corner of raster.ln
- longitude of placement of upper left corner of raster.offset_x1
- horizontal pixel offset of upper left corner of raster.offset_y1
- vertical pixel offset of upper left corner of raster.ii
- ImageIcon to place on the map..properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
java.lang.InterruptedException
LinkRaster
public void updateRaster(float lt, float ln, java.awt.Image image, int image_width, int image_height, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException, java.lang.InterruptedException
lt
- latitude of placement of upper left corner of bitmap.ln
- longitude of placement of upper left corner of bitmap.image_width
- width of bitmap.image_height
- height of bitmap.image
- the java.awt.Image.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
java.lang.InterruptedException
LinkRaster
public void updateRaster(int x1, int y1, java.awt.Image image, int image_width, int image_height, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException, java.lang.InterruptedException
x1
- horizontal pixel location of upper left corner of raster.y1
- vertical pixel location of upper left corner of raster.image
- Image to place on map.image_width
- width of image.image_height
- height of image.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
java.lang.InterruptedException
LinkRaster
public void updateRaster(float lt, float ln, int offset_x1, int offset_y1, java.awt.Image image, int image_width, int image_height, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException, java.lang.InterruptedException
lt
- latitude of placement of upper left corner of raster.ln
- longitude of placement of upper left corner of raster.offset_x1
- horizontal pixel offset of upper left corner of raster.offset_y1
- vertical pixel offset of upper left corner of raster.image
- Image to place on map.image_width
- width of image.image_height
- height of image.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
java.lang.InterruptedException
LinkRaster
public void updateRaster(float lt, float ln, int w, int h, int[] pix, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of placement of upper left corner of raster.ln
- longitude of placement of upper left corner of raster.w
- width of raster.h
- height of raster.pix
- integer image pixel data.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRaster(int x1, int y1, int w, int h, int[] pix, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- horizontal pixel location of upper left corner of raster.y1
- vertical pixel location of upper left corner of raster.w
- width of raster.h
- height of raster.pix
- integer image pixel data.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRaster(float lt, float ln, int offset_x1, int offset_y1, int w, int h, int[] pix, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of placement of upper left corner of bitmap.ln
- longitude of placement of upper left corner of bitmap.offset_x1
- horizontal pixel offset of upper left corner of raster.offset_y1
- vertical pixel offset of upper left corner of raster.w
- width of raster.h
- height of raster.pix
- integer image pixel data.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRaster(float lt, float ln, java.lang.String url, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of placement of upper left corner of raster.ln
- longitude of placement of upper left corner of raster.url
- the url to download image from.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRaster(int x1, int y1, java.lang.String url, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- horizontal pixel location of upper left corner of raster.y1
- vertical pixel location of upper left corner of raster.url
- the url to download the image from.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRaster(float lt, float ln, int offset_x1, int offset_y1, java.lang.String url, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of placement of upper left corner of raster.ln
- longitude of placement of upper left corner of raster.offset_x1
- horizontal pixel offset of upper left corner of raster.offset_y1
- vertical pixel offset of upper left corner of raster.url
- the url to download the image from.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRaster(float lt, float ln, int w, int h, byte[] bytes, java.awt.Color[] colorTable, int trans, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of placement of upper left corner of raster.ln
- longitude of placement of upper left corner of raster.w
- width of image.h
- height of image.bytes
- the image data, indexes into the colortable.colorTable
- RGB integers representing colortable of image.trans
- the transparency of image.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRaster(int x1, int y1, int w, int h, byte[] bytes, java.awt.Color[] colorTable, int trans, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- horizontal pixel location of upper left corner of raster.y1
- vertical pixel location of upper left corner of raster.w
- width of image.h
- height of image.bytes
- the image data, indexes into the colortable.colorTable
- RGB integers representing colortable of image.trans
- the transparency of image.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRaster(float lt, float ln, int offset_x1, int offset_y1, int w, int h, byte[] bytes, java.awt.Color[] colorTable, int trans, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt
- latitude of placement of upper left corner of raster.ln
- longitude of placement of upper left corner of raster.offset_x1
- horizontal pixel offset of upper left corner of raster.offset_y1
- vertical pixel offset of upper left corner of raster.w
- width of image.h
- height of image.bytes
- the image data, indexes into the colortable.colorTable
- RGB integers representing colortable of image.trans
- the transparency of image.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRaster
public void updateRectangle(float lt1, float ln1, float lt2, float ln2, int lType, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt1
- latitude of placement of upper left corner of rectangle.ln1
- longitude of placement of upper left corner of rectangle.lt2
- latitude of placement of lower right corner of rectangle.ln2
- longitude of placement of lower right corner of rectangle.lType
- the line type to use for the rectangle - straight, rhumb,
great circle.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRectangle
public void updateRectangle(float lt1, float ln1, float lt2, float ln2, int lType, int nsegs, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt1
- latitude of placement of upper left corner of rectangle.ln1
- longitude of placement of upper left corner of rectangle.lt2
- latitude of placement of lower right corner of rectangle.ln2
- longitude of placement of lower right corner of rectangle.lType
- the line type to use for the rectangle - straight, rhumb,
great circle.nsegs
- number of segments to use to approximate curved rectangle.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRectangle
public void updateRectangle(int x1, int y1, int x2, int y2, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- Horizontal pixel offset of upper left corner of rectangle..y1
- Vertical pixel offset of upper left corner of rectangle.x2
- Horizontal pixel offset of lower right corner of rectangle..y2
- Vertical pixel offset of lower right corner of rectangle.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRectangle
public void updateRectangle(float lt1, float ln1, int x1, int y1, int x2, int y2, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt1
- latitude of placement of upper left corner of bitmap.ln1
- longitude of placement of upper left corner of bitmap.x1
- Horizontal pixel offset of upper left corner of rectangle..y1
- Vertical pixel offset of upper left corner of rectangle.x2
- Horizontal pixel offset of lower right corner of rectangle..y2
- Vertical pixel offset of lower right corner of rectangle.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkRectangle
public void updatePoint(float lt1, float ln1, int radius, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt1
- latitude of point.ln1
- longitude of point.radius
- the radius of the point graphic.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoint
public void updatePoint(int x1, int y1, int radius, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x1
- the horizontal screen pixel location of the point.y1
- the vertical screen pixel location of the point.radius
- the pixel radius size of the point.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoint
public void updatePoint(float lt1, float ln1, int x1, int y1, int radius, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
lt1
- latitude of placement of upper left corner of bitmap.ln1
- longitude of placement of upper left corner of bitmap.x1
- Horizontal pixel offset of upper left corner of point..y1
- Vertical pixel offset of upper left corner of point.radius
- the pixel size of the point.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoint
public void updatePoly(double[] llPoints, int units, int lType, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
llPoints
- alternating latitude and longitude points of poly.units
- degrees or radians.lType
- straight, rhumb, great circle.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoly
public void updatePoly(double[] llpoints, int units, int lType, int nsegs, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
llpoints
- alternating latitude and longitude points of poly.units
- degrees or radians.lType
- straight, rhumb, great circle.nsegs
- number of segments to use to approximate curved poly lines..properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoly
public void updatePoly(int[] xypoints, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
xypoints
- alternating x and y pixel locations of poly.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoly
public void updatePoly(int[] xpoints, int[] ypoints, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
xpoints
- horizontal pixel locations of poly.ypoints
- vertical pixel locations of poly.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoly
public void updatePoly(float latPoint, float lonPoint, int[] xypoints, int cMode, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- the latitude anchor point of the poly.lonPoint
- the longitude anchor point of the poly.xypoints
- alternating x and y offset polygon points.cMode
- Coordinate Mode (Origin or Previous) that indicate whether
the x and y points are relative to the first point, or to the
previous point. .properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoly
public void updatePoly(float latPoint, float lonPoint, int[] xpoints, int[] ypoints, int cMode, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- the latitude anchor point of the poly.lonPoint
- the longitude anchor point of the poly.xpoints
- horizontal pixel offset polygon points.ypoints
- vertical pixel offset polygon points.cMode
- Coordinate Mode (Origin or Previous) that indicate whether
the x and y points are relative to the first point, or to the
previous point. .properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkPoly
public void updateText(float latPoint, float lonPoint, java.lang.String stuff, int justify, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of placement of text.lonPoint
- longitude of placement of text.stuff
- the text.justify
- place the text left, right or centered on location.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkText
public void updateText(int x, int y, java.lang.String stuff, int justify, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x
- Horizontal pixel location of text.y
- Vertical pixel location of text.stuff
- the text.justify
- place the text left, right or centered on location.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkText
public void updateText(float latPoint, float lonPoint, int offset_x, int offset_y, java.lang.String stuff, int justify, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of text placement.lonPoint
- longitude of text placement.offset_x
- Horizontal pixel offset of text.offset_y
- Vertical pixel offset of text.stuff
- the text.justify
- place the text left, right or centered on location.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkText
public void updateText(float latPoint, float lonPoint, java.lang.String stuff, java.lang.String font, int justify, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of placement of text.lonPoint
- longitude of placement of text.stuff
- the text.font
- a text representation of the font.justify
- place the text left, right or centered on location.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkText
public void updateText(int x, int y, java.lang.String stuff, java.lang.String font, int justify, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
x
- Horizontal pixel location of text.y
- Vertical pixel location of text.stuff
- the text.font
- a text representation of the font.justify
- place the text left, right or centered on location.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkText
public void updateText(float latPoint, float lonPoint, int offset_x, int offset_y, java.lang.String stuff, java.lang.String font, int justify, LinkProperties properties, int graphicUpdateMask) throws java.io.IOException
latPoint
- latitude of text placement.lonPoint
- longitude of text placement.offset_x
- Horizontal pixel offset of text.offset_y
- Vertical pixel offset of text.stuff
- the text.font
- a text representation of the font.justify
- place the text left, right or centered on location.properties
- description of drawing attributes.graphicUpdateMask
- the mask describing the graphic update.
java.io.IOException
LinkText
public void updateGraphic(OMGraphic omGraphic, int graphicUpdateMask) throws java.io.IOException
java.io.IOException
LinkText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |