|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.bbn.openmap.layer.link.LinkServer
com.bbn.openmap.layer.link.shape.ShapeLinkServer
public class ShapeLinkServer
This LinkServer provides graphics from ShapeFiles. The LinkLayer can provide several properties that can control how these graphics are to be rendered (defined in the .propertiesURL file for the layer):
# Graphic edge color lineColor=AARRGGBB # Graphic fill Color fillColor=AARRGGBB # Graphic selected edge color highlightColor=AARRGGBB # Graphic edge pixel width lineWidth=pixel width
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected java.awt.Color |
fillColor
The color to fill the shapes. |
protected java.awt.Color |
lineColor
The color to outline the shapes. |
protected LinkProperties |
lineProperties
|
protected LinkSpatialIndex |
spatialIndex
|
Fields inherited from class com.bbn.openmap.layer.link.LinkServer |
---|
link |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ShapeLinkServer(java.net.Socket socket,
java.lang.String shapeFile)
|
Method Summary | |
---|---|
protected void |
fetchGraphics(double xmin,
double ymin,
double xmax,
double ymax,
LinkGraphicList lgl,
LinkProperties properties)
|
protected void |
finalize()
|
java.awt.Color |
getFillColor()
|
java.awt.Color |
getLineColor()
|
void |
getRectangle(LinkMapRequest query,
Link link)
An example of how to handle GraphicsLinkQueries. |
void |
handleClient()
handleClient is a method that listens to the link to a client, and responds to requests that are made. |
protected void |
locateAndSetShapeData(java.lang.String shapeFileName)
|
void |
setFillColor(java.awt.Color fColor)
|
void |
setLineColor(java.awt.Color lColor)
|
Methods inherited from class com.bbn.openmap.layer.link.LinkServer |
---|
handleGesture, huh, run |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected LinkSpatialIndex spatialIndex
protected java.awt.Color lineColor
protected java.awt.Color fillColor
protected LinkProperties lineProperties
Constructor Detail |
---|
public ShapeLinkServer(java.net.Socket socket, java.lang.String shapeFile)
Method Detail |
---|
protected void finalize()
finalize
in class java.lang.Object
public void handleClient() throws java.io.IOException
handleClient
in class LinkServer
java.io.IOException
public void setFillColor(java.awt.Color fColor)
public void setLineColor(java.awt.Color lColor)
public java.awt.Color getFillColor()
public java.awt.Color getLineColor()
public void getRectangle(LinkMapRequest query, Link link) throws java.io.IOException
LinkServer
getRectangle
in class LinkServer
query
- the GraphicsLinkQuery, so you can get more
information about the parameters of the map screen of
the client.link
- the link to communicate the response back to the
client.
java.io.IOException
protected void fetchGraphics(double xmin, double ymin, double xmax, double ymax, LinkGraphicList lgl, LinkProperties properties) throws java.io.IOException
java.io.IOException
protected void locateAndSetShapeData(java.lang.String shapeFileName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |