Revision 45526 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/marker/impl/PictureMarkerSymbol.java

View differences:

PictureMarkerSymbol.java
32 32
import java.net.URL;
33 33

  
34 34
import org.gvsig.compat.print.PrintAttributes;
35
import org.gvsig.fmap.dal.exception.DataException;
35 36
import org.gvsig.fmap.dal.feature.Feature;
37
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
38
import org.gvsig.fmap.dal.feature.FeatureStore;
39
import org.gvsig.fmap.dal.feature.FeatureType;
36 40
import org.gvsig.fmap.geom.Geometry;
37 41
import org.gvsig.fmap.geom.primitive.Point;
38 42
import org.gvsig.fmap.mapcontext.MapContext;
......
183 187
            g.translate(-(x + xOffset), -(y + yOffset));
184 188
            
185 189
            if( isDrawLineToOffset() ) {
186
                g.setColor(Color.BLACK);
187
                g.drawLine((int)x, (int)y, (int)x + xOffset, (int)y + yOffset);
190
                g.setColor(this.getLineToOffsetColor());
191
                g.drawLine((int)p.getX(), (int)p.getY(), (int)p.getX() + xOffset, (int)p.getY() + yOffset);
188 192
            }
189 193
        }
190 194

  
......
321 325
        }
322 326

  
323 327
    }
328
 
329
    @Override
330
    public String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException {
331
        // By default only need the default Geometry
332
        FeatureType ftype = featureStore.getDefaultFeatureTypeQuietly();
333
        String[] res = new String[ftype.size()];
334
        int cont = 0;
335
        for (FeatureAttributeDescriptor attr : ftype) {
336
            res[cont++]=attr.getName();
337
        }
338
        return res;
339
    }
324 340

  
341

  
325 342
}

Also available in: Unified diff