public class PoliticalArea
extends java.lang.Object
NOTE: The name of this class is somewhat misleading - the graphic doesn't have to represent an area - the graphic can be any graphic created from the shapefile. This class just provides a way to associate an id with the graphic.
Modifier and Type | Field and Description |
---|---|
protected DrawingAttributes |
drawingAttributes |
protected OMGeometryList |
geometry |
java.lang.String |
id |
java.lang.String |
name |
Constructor and Description |
---|
PoliticalArea(java.lang.String identifier) |
PoliticalArea(java.lang.String name,
java.lang.String identifier)
Create a political area with a name, and an identifier which is used as a
key by the AreaHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
addGraphic(OMGraphic g)
Add a new omgraphic to the list of graphics in this area
|
DrawingAttributes |
getDrawingAttributes() |
java.awt.Paint |
getFillPaint()
Get the paint used for the fill paint for all the graphics in the
political area, if one was set.
|
java.awt.TexturePaint |
getFillPattern()
Get the TexturePaint used as fill for all the graphics in the political
area, if one was set.
|
OMGeometryList |
getGeometry()
Get the value of geometry.
|
java.awt.Paint |
getLinePaint()
Get the paint used for the line paint for all the graphics in the
political area, if one was set.
|
java.awt.Paint |
getSelectPaint()
Get the paint used for the select paint for all the graphics in the
political area, if one was set.
|
void |
setDrawingAttributes(DrawingAttributes da) |
void |
setFillPaint(java.awt.Paint c)
Set the fill-paint of all the graphics in the List
|
void |
setFillPattern(java.awt.TexturePaint texture)
Set the fill pattern of all the graphics in the List.
|
void |
setFillPattern(java.net.URL fillPatternURL)
Set the fill pattern of all the graphics in the List.
|
void |
setGeometry(OMGeometryList v)
Set the value of geometry.
|
void |
setLinePaint(java.awt.Paint c)
Set the line-paint of all the graphics in the List
|
void |
setSelectPaint(java.awt.Paint c)
Set the select-paint of all the graphics in the List
|
public final java.lang.String id
public java.lang.String name
protected OMGeometryList geometry
protected DrawingAttributes drawingAttributes
public PoliticalArea(java.lang.String identifier)
public PoliticalArea(java.lang.String name, java.lang.String identifier)
public void setDrawingAttributes(DrawingAttributes da)
public DrawingAttributes getDrawingAttributes()
public void setFillPaint(java.awt.Paint c)
c
- java.awt.Paintpublic java.awt.Paint getFillPaint()
public void setFillPattern(java.net.URL fillPatternURL)
fillPatternURL
- url of image file to use as fill.public void setFillPattern(java.awt.TexturePaint texture)
texture
- TexturePaint object to use as fill.public java.awt.TexturePaint getFillPattern()
public void setLinePaint(java.awt.Paint c)
c
- java.awt.Paintpublic java.awt.Paint getLinePaint()
public void setSelectPaint(java.awt.Paint c)
c
- java.awt.Paintpublic java.awt.Paint getSelectPaint()
public OMGeometryList getGeometry()
public void setGeometry(OMGeometryList v)
v
- Value to assign to geometry.public void addGraphic(OMGraphic g)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details