Class LineFeatureBuilder
- Object
-
- GridFeatureBuilder
-
- LineFeatureBuilder
-
public class LineFeatureBuilder extends GridFeatureBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static String
ANCHOR_X
static String
ANCHOR_Y
static String
DEFAULT_TYPE_NAME
Default feature TYPE name: "linegrid"static String
HORIZONTAL
protected int
id
static String
ID_ATTRIBUTE_NAME
Name used for the integer id attribute: "id"static String
LEFT
static String
LEVEL_ATTRIBUTE_NAME
Name of the Integer level attribute ("level")static String
OFFSET_X
static String
OFFSET_Y
static String
SEQUENCE
"start", "mid", "end" to indicate where this line belongs in the progression of horizontal or vertical linesstatic String
SEQUENCE_END
static String
SEQUENCE_MID
static String
SEQUENCE_START
static String
TOP
static String
VALUE_ATTRIBUTE_NAME
Name of the Object value attribute ("vaStringlue")static String
VALUE_LABEL_NAME
-
Fields inherited from class GridFeatureBuilder
DEFAULT_GEOMETRY_ATTRIBUTE_NAME
-
-
Constructor Summary
Constructors Constructor Description LineFeatureBuilder(SimpleFeatureType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAttributes(GridElement el, Map<String,Object> attributes)
Sets the values of attributes for a newSimpleFeature
being constructed from the givenGridElement
.-
Methods inherited from class GridFeatureBuilder
getCreateFeature, getFeatureID, getType
-
-
-
-
Field Detail
-
DEFAULT_TYPE_NAME
public static final String DEFAULT_TYPE_NAME
Default feature TYPE name: "linegrid"- See Also:
- Constant Field Values
-
ID_ATTRIBUTE_NAME
public static final String ID_ATTRIBUTE_NAME
Name used for the integer id attribute: "id"- See Also:
- Constant Field Values
-
LEVEL_ATTRIBUTE_NAME
public static final String LEVEL_ATTRIBUTE_NAME
Name of the Integer level attribute ("level")- See Also:
- Constant Field Values
-
VALUE_ATTRIBUTE_NAME
public static final String VALUE_ATTRIBUTE_NAME
Name of the Object value attribute ("vaStringlue")- See Also:
- Constant Field Values
-
VALUE_LABEL_NAME
public static final String VALUE_LABEL_NAME
- See Also:
- Constant Field Values
-
HORIZONTAL
public static final String HORIZONTAL
- See Also:
- Constant Field Values
-
TOP
public static final String TOP
- See Also:
- Constant Field Values
-
LEFT
public static final String LEFT
- See Also:
- Constant Field Values
-
ANCHOR_X
public static final String ANCHOR_X
- See Also:
- Constant Field Values
-
ANCHOR_Y
public static final String ANCHOR_Y
- See Also:
- Constant Field Values
-
OFFSET_X
public static final String OFFSET_X
- See Also:
- Constant Field Values
-
OFFSET_Y
public static final String OFFSET_Y
- See Also:
- Constant Field Values
-
SEQUENCE
public static final String SEQUENCE
"start", "mid", "end" to indicate where this line belongs in the progression of horizontal or vertical lines- See Also:
- Constant Field Values
-
SEQUENCE_START
public static final String SEQUENCE_START
- See Also:
- Constant Field Values
-
SEQUENCE_MID
public static final String SEQUENCE_MID
- See Also:
- Constant Field Values
-
SEQUENCE_END
public static final String SEQUENCE_END
- See Also:
- Constant Field Values
-
id
protected int id
-
-
Constructor Detail
-
LineFeatureBuilder
public LineFeatureBuilder(SimpleFeatureType type)
-
-
Method Detail
-
setAttributes
public void setAttributes(GridElement el, Map<String,Object> attributes)
Description copied from class:GridFeatureBuilder
Sets the values of attributes for a newSimpleFeature
being constructed from the givenGridElement
.This method must be overridden by the user. It is called by the grid building classes as each new feature is constructed.
- Specified by:
setAttributes
in classGridFeatureBuilder
- Parameters:
el
- the element from which the new feature is being constructedattributes
- aMap
with attribute names as keys and attribute values as values
-
-