javajs.swing.Cell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmol Show documentation
Show all versions of jmol Show documentation
Jmol: an open-source Java viewer for chemical structures in 3D
package javajs.swing;
public class Cell {
private JComponent component;
private int colspan;
private int rowspan;
int textAlign;
private GridBagConstraints c;
public Cell(JComponent btn, GridBagConstraints c) {
this.component = btn;
colspan = c.gridwidth;
rowspan = c.gridheight; // ignoring for now
this.c = c;
}
public String toHTML(String id) {
String style = c.getStyle(false);
return "" + component.toHTML() + " ";
}
}