Revision 7001 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/thememanager/legendmanager/panels/FPanelLegendLabels.java
FPanelLegendLabels.java | ||
---|---|---|
57 | 57 |
import com.iver.cit.gvsig.ProjectExtension; |
58 | 58 |
import com.iver.cit.gvsig.fmap.DriverException; |
59 | 59 |
import com.iver.cit.gvsig.fmap.core.FShape; |
60 |
import com.iver.cit.gvsig.fmap.core.v02.FConstant; |
|
60 | 61 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
61 | 62 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
62 | 63 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
... | ... | |
76 | 77 |
* |
77 | 78 |
*/ |
78 | 79 |
public class FPanelLegendLabels extends JPanel implements ILegendPanel { |
79 |
private static final double FONT_SCALE_FACTOR = 1.4; |
|
80 | 80 |
|
81 |
|
|
82 | 81 |
private static final Font DEFAULT_FONT = |
83 | 82 |
new Font("SansSerif", Font.PLAIN, 9); |
84 | 83 |
|
... | ... | |
201 | 200 |
double size = m_FSymbol.getFontSize(); |
202 | 201 |
// Scale the value of the font size to the value of the height |
203 | 202 |
// and avoid too much decimal numbers |
204 |
size = ((int) (100*size / FONT_SCALE_FACTOR))/100;
|
|
203 |
size = ((int) (100*size / FConstant.FONT_HEIGHT_SCALE_FACTOR))/100;
|
|
205 | 204 |
getJTextField().setText(String.valueOf(size)); |
206 | 205 |
|
207 | 206 |
|
... | ... | |
233 | 232 |
m_FSymbol.setFontColor(m_colorChooser.getColor()); |
234 | 233 |
//m_FSymbol.setSymbolType(m_Renderer.getShapeType()); |
235 | 234 |
float fontSize = Float.parseFloat(getJTextField().getText()); |
236 |
fontSize *= FONT_SCALE_FACTOR;
|
|
235 |
fontSize *= FConstant.FONT_HEIGHT_SCALE_FACTOR;
|
|
237 | 236 |
if (!getJRadioButton().isSelected()) |
238 | 237 |
{ |
239 | 238 |
// meters |
Also available in: Unified diff