Class LineFeatureBuilder
- Object
-
- GridFeatureBuilder
-
- LineFeatureBuilder
-
public class LineFeatureBuilder extends GridFeatureBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static StringANCHOR_Xstatic StringANCHOR_Ystatic StringDEFAULT_TYPE_NAMEDefault feature TYPE name: "linegrid"static StringHORIZONTALprotected intidstatic StringID_ATTRIBUTE_NAMEName used for the integer id attribute: "id"static StringLEFTstatic StringLEVEL_ATTRIBUTE_NAMEName of the Integer level attribute ("level")static StringOFFSET_Xstatic StringOFFSET_Ystatic StringSEQUENCE"start", "mid", "end" to indicate where this line belongs in the progression of horizontal or vertical linesstatic StringSEQUENCE_ENDstatic StringSEQUENCE_MIDstatic StringSEQUENCE_STARTstatic StringTOPstatic StringVALUE_ATTRIBUTE_NAMEName of the Object value attribute ("vaStringlue")static StringVALUE_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 voidsetAttributes(GridElement el, Map<String,Object> attributes)Sets the values of attributes for a newSimpleFeaturebeing 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:GridFeatureBuilderSets the values of attributes for a newSimpleFeaturebeing 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:
setAttributesin classGridFeatureBuilder- Parameters:
el- the element from which the new feature is being constructedattributes- aMapwith attribute names as keys and attribute values as values
-
-