Revision 10679 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/VectorialLegend.java

View differences:

VectorialLegend.java
42 42

  
43 43
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
44 44
import com.hardcode.gdbms.engine.data.DataSource;
45
import com.hardcode.gdbms.engine.data.driver.DriverException;
45 46
import com.hardcode.gdbms.engine.instruction.FieldNotFoundException;
46 47
import com.iver.cit.gvsig.fmap.core.IFeature;
47 48
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol;
......
58 59
	 * Inserta el DataSource.
59 60
	 *
60 61
	 * @param ds DataSource.
62
	 *
61 63
	 * @throws FieldNotFoundException cuando el campo no se encuentre.
62
	 * @throws ReadDriverException TODO
64
	 * @throws DriverException Cuando falle el driver.
63 65
	 */
64 66
	void setDataSource(DataSource ds)
65 67
		throws FieldNotFoundException, ReadDriverException;
66 68

  
67 69
	/**
68
	 * Devuelve el s?mbolo asociado al objeto que se pasa como par?metro. Si se
69
	 * pasa null se devuelve el s?mbolo por defecto. En un Legend de s?mbolo
70
	 * ?nico siempre se devuelve dicho s?mbolo
70
	 * Returns the symbol to be used to represent the feature in the i-th
71
	 * record in the DataSource
72
	 * @param i, the record index
71 73
	 *
72
	 * @param recordIndex ?ndice
74
	 * @return ISymbol.
73 75
	 *
74
	 * @return S?mbolo.
75
	 * @throws ReadDriverException TODO
76
	 * @throws DriverException
76 77
	 */
77
	ISymbol getSymbol(int recordIndex) throws ReadDriverException;
78
    
78
	ISymbol getSymbol(int i) throws ReadDriverException;
79

  
79 80
    ISymbol getSymbolByFeature(IFeature feat);
80 81

  
81 82
	/**
......
98 99
	 * ?nico, el s?mbolo se establece invocando este m?todo
99 100
	 *
100 101
	 * @param s S?mbolo por defecto.
102
	 * @throws IllegalArgumentException, if the symbol isn't suitable for the
103
	 * layer's data type.
101 104
	 */
102
	void setDefaultSymbol(ISymbol s);
105
	void setDefaultSymbol(ISymbol s) throws IllegalArgumentException;
103 106

  
104 107
	/**
105 108
	 * Establece el campo por el que se etiqueta. -1 quita el etiquetado
106 109
	 *
107 110
	 * @param fieldName Nombre del campo.
111
	 * @deprecated
108 112
	 */
109 113
	void setLabelField(String fieldName);
110
    
114

  
111 115
    /**
112 116
     * @param fieldName
117
     * @deprecated
113 118
     */
114 119
    void setLabelHeightField(String fieldName);
115 120
    /**
116 121
     * @param fieldName
122
     * @deprecated
117 123
     */
118 124
    void setLabelRotationField(String fieldName);
119 125

  
......
122 128
	 * etiquetado
123 129
	 *
124 130
	 * @return nombre del campo.
131
	 * @deprecated
125 132
	 */
126 133
	String getLabelField();
127 134

  
......
129 136
	 * Devuelve el alto de campo.
130 137
	 *
131 138
	 * @return alto.
139
	 * @deprecated
132 140
	 */
133 141
	String getLabelHeightField();
134 142

  
......
136 144
	 * Devuelve la rotaci?n.
137 145
	 *
138 146
	 * @return Rotaci?n.
147
	 * @deprecated
139 148
	 */
140 149
	String getLabelRotationField();
141 150

  
......
160 169
     */
161 170
    void setXMLEntity03(XMLEntity xml);
162 171

  
172
    public boolean isUseDefaultSymbol();
173

  
163 174
    void useDefaultSymbol(boolean b);
164
    /* public boolean isBWithHeightText();
165
	public void setBWithHeightText(boolean withHeightText); */
166
	/*
167
	 * supplierCardinality 0..*
168
	 *
169
	       /*# FInterval lnkFInterval; */
170
	/*supplierCardinality 0..*
171
	 *
172
	       private LegendListener[] listeners;*/
173
    
175

  
174 176
    /**
175 177
     * Se usa para saber antes de dibujar, los campos que vamos
176 178
     * a necesitar leer, y leer solo estos. Acelera el dibujado
......
179 181
     * (Por ejemplo para el etiquetado, el campo de clasificaci?n, etc)
180 182
     */
181 183
    String[] getUsedFields();
184

  
182 185
}

Also available in: Unified diff