|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.layer.link.LinkRaster
public class LinkRaster
Read and write a Link protocol versions of a raster.
Field Summary |
---|
Constructor Summary | |
---|---|
LinkRaster()
|
Method Summary | |
---|---|
static OMRaster |
read(java.io.DataInputStream dis)
Read the DataInputStream, and create an OMRaster. |
static OMRaster |
read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
Read the DataInputStream, and create an OMRaster. |
static void |
write(float lt,
float ln,
javax.swing.ImageIcon ii,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, Lat/Lon placement with an ImageIcon. |
static void |
write(float lt,
float ln,
java.awt.Image image,
int image_width,
int image_height,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, Lat/Lon placement with an ImageIcon. |
static void |
write(float lt,
float ln,
int w,
int h,
byte[] bytes,
java.awt.Color[] colorTable,
int trans,
LinkProperties properties,
java.io.DataOutputStream dos)
Lat/Lon placement with a indexed colormodel, which is using a colortable and a byte array to construct the int[] pixels. |
static void |
write(float lt,
float ln,
int offset_x1,
int offset_y1,
javax.swing.ImageIcon ii,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, Lat/Lon with X/Y placement with an ImageIcon. |
static void |
write(float lt,
float ln,
int offset_x1,
int offset_y1,
java.awt.Image image,
int image_width,
int image_height,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, Lat/Lon with X/Y placement with an ImageIcon. |
static void |
write(float lt,
float ln,
int w,
int h,
int[] pix,
LinkProperties properties,
java.io.DataOutputStream dos)
Writes an image, Lat/Lon placement with a direct colormodel. |
static void |
write(float lt,
float ln,
int offset_x1,
int offset_y1,
int w,
int h,
byte[] bytes,
java.awt.Color[] colorTable,
int trans,
LinkProperties properties,
java.io.DataOutputStream dos)
Lat/lon placement with XY offset with a indexed colormodel, which is using a colortable and a byte array to construct the int[] pixels. |
static void |
write(float lt,
float ln,
int offset_x1,
int offset_y1,
int w,
int h,
int[] pix,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, Lat/lon placement with XY offset with a direct colormodel. |
static void |
write(float lt,
float ln,
int offset_x1,
int offset_y1,
java.lang.String url,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, Lat/Lon with X/Y placement with an ImageIcon. |
static void |
write(float lt,
float ln,
java.lang.String url,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, Lat/Lon placement with an ImageIcon. |
static void |
write(int x1,
int y1,
javax.swing.ImageIcon ii,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, X/Y placement with an ImageIcon. |
static void |
write(int x1,
int y1,
java.awt.Image image,
int image_width,
int image_height,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, X/Y placement with an ImageIcon. |
static void |
write(int x1,
int y1,
int w,
int h,
byte[] bytes,
java.awt.Color[] colorTable,
int trans,
LinkProperties properties,
java.io.DataOutputStream dos)
XY placement with a indexed colormodel, which is using a colortable and a byte array to construct the int[] pixels. |
static void |
write(int x1,
int y1,
int w,
int h,
int[] pix,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, XY placement with a direct colormodel. |
static void |
write(int x1,
int y1,
java.lang.String url,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an image, X/Y placement with an ImageIcon. |
static void |
write(OMRaster raster,
Link link,
LinkProperties props)
Write a raster to the link. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkRaster()
Method Detail |
---|
public static void write(float lt, float ln, int w, int h, int[] pix, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
lt
- latitude of the top of the image.ln
- longitude of the left side of the image.w
- width of the image, in pixels.h
- height of the image, in pixels.pix
- color values for the pixels.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(int x1, int y1, int w, int h, int[] pix, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
x1
- window location of the left side of the image.y1
- window location of the top of the image.w
- width of the image, in pixels.h
- height of the image, in pixels.pix
- color values for the pixels.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(float lt, float ln, int offset_x1, int offset_y1, int w, int h, int[] pix, LinkProperties properties, java.io.DataOutputStream dos) 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.w
- width of the image, in pixels.h
- height of the image, in pixels.pix
- color values for the pixels.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(float lt, float ln, java.awt.Image image, int image_width, int image_height, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException, java.lang.InterruptedException
lt
- latitude of the top of the image.ln
- longitude of the left side of the image.image
- java.awt.Image to use for image.image_width
- width of image in pixels.image_height
- height of image in pixels.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
java.lang.InterruptedException
public static void write(int x1, int y1, java.awt.Image image, int image_width, int image_height, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException, java.lang.InterruptedException
x1
- window location of the left side of the image.y1
- window location of the top of the image.image
- java.awt.Image to use for image.image_width
- width of image in pixels.image_height
- height of image in pixels.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
java.lang.InterruptedException
public static void write(float lt, float ln, int offset_x1, int offset_y1, java.awt.Image image, int image_width, int image_height, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException, java.lang.InterruptedException
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.image
- java.awt.Image to use for image.image_width
- width of image in pixels.image_height
- height of image in pixels.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
java.lang.InterruptedException
public static void write(float lt, float ln, javax.swing.ImageIcon ii, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException, java.lang.InterruptedException
lt
- latitude of the top of the image.ln
- longitude of the left side of the image.ii
- ImageIcon to use for image.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
java.lang.InterruptedException
public static void write(int x1, int y1, javax.swing.ImageIcon ii, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException, java.lang.InterruptedException
x1
- window location of the left side of the image.y1
- window location of the top of the image.ii
- ImageIcon to use for image.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
java.lang.InterruptedException
public static void write(float lt, float ln, int offset_x1, int offset_y1, javax.swing.ImageIcon ii, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException, java.lang.InterruptedException
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.ii
- ImageIcon to use for image.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
java.lang.InterruptedException
public static void write(float lt, float ln, java.lang.String url, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
lt
- latitude of the top of the image.ln
- longitude of the left side of the image.url
- URL to download the image from.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(int x1, int y1, java.lang.String url, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
x1
- window location of the left side of the image.y1
- window location of the top of the image.url
- URL to download the image from.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(float lt, float ln, int offset_x1, int offset_y1, java.lang.String url, LinkProperties properties, java.io.DataOutputStream dos) 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.url
- URL to download the image from.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(float lt, float ln, int w, int h, byte[] bytes, java.awt.Color[] colorTable, int trans, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
lt
- latitude of the top of the image.ln
- longitude of the left side of the image.w
- width of the image, in pixels.h
- height of the image, in pixels.bytes
- colortable index values for the pixels.colorTable
- color array corresponding to bytestrans
- transparency of image.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(int x1, int y1, int w, int h, byte[] bytes, java.awt.Color[] colorTable, int trans, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
x1
- window location of the left side of the image.y1
- window location of the top of the image.w
- width of the image, in pixels.h
- height of the image, in pixels.bytes
- colortable index values for the pixels.colorTable
- color array corresponding to bytestrans
- transparency of image.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(float lt, float ln, int offset_x1, int offset_y1, int w, int h, byte[] bytes, java.awt.Color[] colorTable, int trans, LinkProperties properties, java.io.DataOutputStream dos) 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.w
- width of the image, in pixels.h
- height of the image, in pixels.bytes
- colortable index values for the pixels.colorTable
- color array corresponding to bytestrans
- transparency of image.properties
- description of drawing attributes. Not used, but
included to be consistent with the protocol graphics format.dos
- DataOutputStream
java.io.IOException
public static void write(OMRaster raster, Link link, LinkProperties props) throws java.io.IOException
java.io.IOException
public static OMRaster read(java.io.DataInputStream dis) throws java.io.IOException
dis
- DataInputStream
java.io.IOException
OMRaster
public static OMRaster read(java.io.DataInputStream dis, LinkProperties propertiesBuffer) throws java.io.IOException
dis
- DataInputStreampropertiesBuffer
- a LinkProperties object used to cache previous
settings that can be set on the OMPoly being read.
java.io.IOException
OMRaster
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |