|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.layer.link.LinkText
public class LinkText
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_FONT
|
| Constructor Summary | |
|---|---|
LinkText()
|
|
| Method Summary | |
|---|---|
static OMText |
read(java.io.DataInputStream dis)
Read the DataInputStream to create a OMText. |
static OMText |
read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
Read the DataInputStream to create a OMText. |
static void |
write(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
java.lang.String stuff,
java.lang.String font,
int just,
LinkProperties properties,
java.io.DataOutputStream dos)
Rendertype is RENDERTYPE_OFFSET. |
static void |
write(float latPoint,
float lonPoint,
java.lang.String stuff,
java.lang.String font,
int just,
LinkProperties properties,
java.io.DataOutputStream dos)
Creates a text object, with Lat/Lon placement. |
static void |
write(int x1,
int y1,
java.lang.String stuff,
java.lang.String font,
int just,
LinkProperties properties,
java.io.DataOutputStream dos)
Creates a text object, with XY placement, and default SansSerif font. |
static void |
write(OMText text,
Link link,
LinkProperties props)
Write a text to the link. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String DEFAULT_FONT
| Constructor Detail |
|---|
public LinkText()
| Method Detail |
|---|
public static void write(float latPoint,
float lonPoint,
java.lang.String stuff,
java.lang.String font,
int just,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - latitude of the string, in decimal degrees.lonPoint - longitude of the string, in decimal degrees.stuff - the string to be displayed.font - the Font description for the string.just - the justification of the string.properties - attributes for the graphic.dos - DataOutputStream
java.io.IOException
public static void write(int x1,
int y1,
java.lang.String stuff,
java.lang.String font,
int just,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
x1 - horizontal window pixel location of the string.y1 - vertical window pixel location of the string.stuff - the string to be displayed.font - the Font description for the string.just - the justification of the stringproperties - attributes for the graphic.dos - DataOutputStream
java.io.IOException
public static void write(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
java.lang.String stuff,
java.lang.String font,
int just,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - latitude of center of text/ellipse.lonPoint - longitude of center of text/ellipse.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.stuff - the string to be displayed.font - the Font description for the string.just - the justification of the string.properties - attributes for the graphic.dos - DataOutputStream
java.io.IOException
public static void write(OMText text,
Link link,
LinkProperties props)
throws java.io.IOException
java.io.IOException
public static OMText read(java.io.DataInputStream dis)
throws java.io.IOException
dis - DataInputStream
java.io.IOExceptionOMText
public static OMText 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 OMText being read.
java.io.IOExceptionOMText
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||