Revision 43510 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/line/impl/AbstractLineSymbol.java
AbstractLineSymbol.java | ||
---|---|---|
98 | 98 |
setLineColor(color); |
99 | 99 |
} |
100 | 100 |
|
101 |
@Override |
|
101 | 102 |
public int getOnePointRgb() { |
102 | 103 |
return color.getRGB(); |
103 | 104 |
} |
104 | 105 |
|
106 |
@Override |
|
105 | 107 |
public final int getSymbolType() { |
106 | 108 |
return Geometry.TYPES.CURVE; |
107 | 109 |
} |
108 | 110 |
|
111 |
@Override |
|
109 | 112 |
public void getPixExtentPlus(Geometry geom, float[] distances, ViewPort viewPort, int dpi) { |
110 | 113 |
float cs = (float) getCartographicSize(viewPort, dpi, geom); |
111 | 114 |
// TODO and add the line offset |
... | ... | |
113 | 116 |
distances[1] = cs; |
114 | 117 |
} |
115 | 118 |
|
119 |
@Override |
|
116 | 120 |
public boolean isSuitableFor(Geometry geom) { |
117 |
switch(geom.getType()) { |
|
118 |
case Geometry.TYPES.CURVE: |
|
119 |
case Geometry.TYPES.ARC: |
|
120 |
case Geometry.TYPES.LINE: |
|
121 |
return true; |
|
122 |
} |
|
123 |
return false; |
|
121 |
return geom.getGeometryType().isTypeOf(Geometry.TYPES.CURVE); |
|
124 | 122 |
} |
125 | 123 |
|
124 |
@Override |
|
126 | 125 |
public ILineStyle getLineStyle() { |
127 | 126 |
return lineStyle; |
128 | 127 |
} |
Also available in: Unified diff