Statistics
| Revision:

root / org.gvsig.legend.urbanhorizontalsignage / trunk / org.gvsig.legend.urbanhorizontalsignage.lib / org.gvsig.legend.urbanhorizontalsignage.lib.impl / src / main / java / org / gvsig / legend / urbanhorizontalsignage / lib / impl / DefaultUrbanHorizontalSignageData.java @ 5087

History | View | Annotate | Download (3.49 KB)

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package org.gvsig.legend.urbanhorizontalsignage.lib.impl;
7

    
8
import java.awt.Color;
9
import org.gvsig.fmap.geom.Geometry;
10
import org.gvsig.fmap.geom.aggregate.MultiPolygon;
11
import org.gvsig.legend.urbanhorizontalsignage.lib.api.UrbanHorizontalSignageData;
12

    
13
/**
14
 *
15
 * @author fdiaz
16
 */
17
public class DefaultUrbanHorizontalSignageData implements UrbanHorizontalSignageData {
18
    
19
    private double width;
20
    private int continuity;
21
    private Color segmentsColor;
22
    private double segmentsLength;
23
    private MultiPolygon segmentsGeometry;
24
    private boolean isPaintHoles;
25
    private Color holesColor;
26
    private double holesLength;
27
    private MultiPolygon holesGeometry;
28
    private double gapWidth;
29
    private Geometry originalGeometry;
30
    private boolean roundVertex;
31

    
32
    public DefaultUrbanHorizontalSignageData() {
33
        width = DEFAULT_WIDTH_VALUE;
34
        continuity = DEFAULT_CONTINUITY_VALUE;
35
        segmentsColor = DEFAULT_SEGMENT_COLOR_VALUE;
36
        segmentsLength = DEFAULT_SEGMENT_LENGTH_VALUE;
37
        isPaintHoles = DEFAULT_PAINT_HOLES_VALUE;
38
        holesColor = DEFAULT_HOLES_COLOR_VALUE;
39
        holesLength = DEFAULT_HOLES_LENGTH_VALUE;
40
        gapWidth = DEFAULT_GAP_WIDTH_VALUE;
41
        roundVertex = DEFAULT_ROUND_VERTEX_VALUE;
42
    }
43

    
44
    @Override
45
    public double getWidth() {
46
        return this.width;
47
    }
48

    
49
    @Override
50
    public void setWidth(double value) {
51
        this.width = value;
52
    }
53

    
54
    @Override
55
    public int getContinuity() {
56
        return this.continuity;
57
    }
58

    
59
    @Override
60
    public void setContinuity(int value) {
61
        this.continuity = value;
62
    }
63

    
64
    @Override
65
    public Color getSegmentsColor() {
66
        return this.segmentsColor;
67
    }
68

    
69
    @Override
70
    public void setSegmentsColor(Color value) {
71
        this.segmentsColor = value;
72
    }
73

    
74
    @Override
75
    public double getSegmentsLength() {
76
        return this.segmentsLength;
77
    }
78

    
79
    @Override
80
    public void setSegmentsLength(double value) {
81
        this.segmentsLength = value;
82
    }
83

    
84
    @Override
85
    public MultiPolygon getSegmentsGeometry() {
86
        return this.segmentsGeometry;
87
    }
88

    
89
    @Override
90
    public void setSegmentsGeometry(MultiPolygon value) {
91
        this.segmentsGeometry = value;
92
    }
93

    
94
    @Override
95
    public boolean isPaintHoles() {
96
        return this.isPaintHoles;
97
    }
98

    
99
    @Override
100
    public void setPaintHoles(boolean value) {
101
        this.isPaintHoles = value;
102
    }
103

    
104
    @Override
105
    public Color getHolesColor() {
106
        return this.holesColor;
107
    }
108

    
109
    @Override
110
    public void setHolesColor(Color value) {
111
        this.holesColor = value;
112
    }
113

    
114
    @Override
115
    public double getHolesLength() {
116
        return this.holesLength;
117
    }
118

    
119
    @Override
120
    public void setHolesLength(double value) {
121
        this.holesLength = value;
122
    }
123

    
124
    @Override
125
    public MultiPolygon getHolesGeometry() {
126
        return this.holesGeometry;
127
    }
128

    
129
    @Override
130
    public void setHolesGeometry(MultiPolygon value) {
131
        this.holesGeometry = value;
132
    }
133

    
134
    @Override
135
    public double getGapWidth() {
136
        return this.gapWidth;
137
    }
138

    
139
    @Override
140
    public void setGapWidth(double value) {
141
        this.gapWidth = value;
142
    }
143
    
144
    public boolean isRoundVertex(){
145
        return this.roundVertex;
146
    }
147

    
148
    public void setRoundVertex(boolean value){
149
        this.roundVertex = value;
150
    }
151

    
152

    
153
}