font size of setExtraLabel

User e7455c8684

31-05-2007 15:40:21

I'm using MViewPane as TableCellRender, somehow, I want to show the label on each atom, but they are too small especially in the table cell. I tried the method mentioned in a post from this forum:





Code:
UserSettings settings = viewPane.getUserSettings();


Font f = new Font("Courier", Font.PLAIN, 12);


settings.setAtomFont(f);






but it has no effect, I tried 14 - 100.





Is there anything I can do with it?





Thanks, Jun

ChemAxon 7c2d26e5cf

01-06-2007 17:21:09

Can you show me a snapshot about a cell where the atom labels are too small?

User e7455c8684

01-06-2007 17:27:53

Sure. Here it is. Of course, you can always make the cell bigger, but just imagine the cell size is fixed.
Tamas wrote:
Can you show me a snapshot about a cell where the atom labels are too small?

ChemAxon 7c2d26e5cf

12-06-2007 15:43:19

I suggest to increase "atomsize" property with UserSettings.setAtomSize(double).


Code:
MViewPane mr = new MViewPane();


UserSettings settings = mr.getUserSettings();


settings.setAtomSize(0.8);