Revision 37196 branches/v2_0_0_prep/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/FFrameLegend.java
FFrameLegend.java | ||
---|---|---|
339 | 339 |
(FFramePicture) layoutManager |
340 | 340 |
.createFrame(FFramePicture.PERSISTENCE_DEFINITION_NAME); |
341 | 341 |
|
342 |
// picture.setLayout(getLayout()); |
|
343 | 342 |
BufferedImage bi = |
344 | 343 |
new BufferedImage(image.getWidth(null), |
345 | 344 |
image.getHeight(null), |
... | ... | |
451 | 450 |
(FFrameText) layoutManager |
452 | 451 |
.createFrame(FFrameText.PERSISTENCE_DEFINITION_NAME); |
453 | 452 |
|
454 |
// text.setLayout(getLayout()); |
|
455 | 453 |
text.setFixedFontSize(true); |
456 |
// text.setFontSize((int) (sizefont*1.4)); |
|
457 | 454 |
double myScale = layout.getAT().getScaleX() * 0.0234; |
458 | 455 |
text.setFontSize((int) (sizefont / myScale)); |
459 | 456 |
text.setBoundBox(FLayoutUtilities.toSheetRect(rAux, layout.getAT())); |
... | ... | |
650 | 647 |
*/ |
651 | 648 |
public void toFFrames(LayoutContext layout) { |
652 | 649 |
Rectangle2D rectangle = getBoundingBox(null); |
653 |
// Rectangle2D r = getBoundBox(); |
|
654 | 650 |
double h = rectangle.getHeight() / m_numLayers; |
655 | 651 |
FLayers lays = layers; |
656 | 652 |
|
... | ... | |
684 | 680 |
public Font getFont() { |
685 | 681 |
if (m_font != null) { |
686 | 682 |
return new Font(m_font.getName(), m_font.getStyle(), 9); |
687 |
// return new Font(m_f.getFontName(), m_f.getStyle(), 9); |
|
688 | 683 |
} |
689 | 684 |
return new Font("SansSerif", Font.PLAIN, 9); |
690 | 685 |
} |
691 | 686 |
|
692 |
/* |
|
693 |
* @see |
|
694 |
* com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#getNameFFrame |
|
695 |
* () |
|
696 |
*/ |
|
697 | 687 |
public String getNameFFrame() { |
698 | 688 |
return PluginServices.getText(this, "leyenda") + num; |
699 | 689 |
} |
... | ... | |
702 | 692 |
return PERSISTENCE_DEFINITION_NAME; |
703 | 693 |
} |
704 | 694 |
|
705 |
/* |
|
706 |
* @see |
|
707 |
* com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java |
|
708 |
* .awt.Graphics2D, |
|
709 |
* java.awt.geom.AffineTransform) |
|
710 |
*/ |
|
711 | 695 |
public void print(Graphics2D g, AffineTransform at, Geometry geom, |
712 | 696 |
PrintAttributes properties) { |
713 | 697 |
this.properties = properties; |
... | ... | |
716 | 700 |
} |
717 | 701 |
|
718 | 702 |
public void initialize() { |
719 |
// TODO Auto-generated method stub |
|
720 | 703 |
|
721 | 704 |
} |
722 | 705 |
|
Also available in: Unified diff