public class LineFeature extends AbstractFeature
LineFeature
class holds a list of earth location
data. Various methods are provided for converting from lines of
earth location data to projected image data.Modifier and Type | Field and Description |
---|---|
protected static boolean |
fastMode
The fast mode flag.
|
protected boolean |
lastDiscontinuous
The last discontinuous status.
|
protected java.awt.geom.GeneralPath |
lastPath
The last transformed path.
|
protected EarthImageTransform |
lastTrans
The last earth image transform.
|
protected java.util.List |
points
The list of geographic points.
|
Constructor and Description |
---|
LineFeature()
Creates a new empty line feature with no attributes.
|
LineFeature(java.lang.Object[] attributeArray)
Creates a new empty line feature with attributes.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
filter(EarthArea area)
Filters this feature based on an earth area.
|
static boolean |
getFastMode()
Gets the fast rendering mode flag.
|
java.awt.geom.GeneralPath |
getPath(EarthImageTransform trans)
Gets the general path for this feature under the specified
transform.
|
boolean |
isDiscontinuous()
Returns the discontinuous flag.
|
void |
render(java.awt.Graphics2D g,
EarthImageTransform trans)
Renders this feature to a graphics context.
|
static void |
setFastMode(boolean flag)
Sets the fast rendering mode flag.
|
java.awt.geom.GeneralPath |
transform(EarthImageTransform trans)
Transforms this feature to a general path.
|
add, addAll, equals, get, getAttribute, getAttributeCount, hashCode, iterator, remove, setAttributes, size
protected java.awt.geom.GeneralPath lastPath
protected EarthImageTransform lastTrans
protected boolean lastDiscontinuous
protected static boolean fastMode
protected java.util.List points
public LineFeature()
public LineFeature(java.lang.Object[] attributeArray)
attributeArray
- the array of feature attributes.public boolean isDiscontinuous()
public static boolean getFastMode()
public static void setFastMode(boolean flag)
flag
- the fast mode, true for fast rendering.public java.util.List filter(EarthArea area)
area
- the earth area to use for filtering earth locations.public java.awt.geom.GeneralPath transform(EarthImageTransform trans)
trans
- the earth image transform for converting Earth
locations to image points.public java.awt.geom.GeneralPath getPath(EarthImageTransform trans)
trans
- the earth image transform for converting Earth
locations to image points.public void render(java.awt.Graphics2D g, EarthImageTransform trans)
g
- the graphics context for drawing.trans
- the earth image transform for converting Earth
locations to image points.