Search in sources :

Example 1 with AttributeTableLayoutModel

use of org.freeplane.features.attribute.AttributeTableLayoutModel in project freeplane by freeplane.

the class AttributeTable method columnWidthChanged.

public void columnWidthChanged(final ColumnWidthChangeEvent event) {
    final float zoom = getZoom();
    final int col = event.getColumnNumber();
    final AttributeTableLayoutModel layoutModel = (AttributeTableLayoutModel) event.getSource();
    final int width = layoutModel.getColumnWidth(col);
    getColumnModel().getColumn(col).setPreferredWidth((int) (width * zoom));
    final MapView map = attributeView.getMapView();
    final NodeModel node = attributeView.getNode();
    map.getModeController().getMapController().nodeChanged(node);
}
Also used : NodeModel(org.freeplane.features.map.NodeModel) MapView(org.freeplane.view.swing.map.MapView) AttributeTableLayoutModel(org.freeplane.features.attribute.AttributeTableLayoutModel)

Aggregations

AttributeTableLayoutModel (org.freeplane.features.attribute.AttributeTableLayoutModel)1 NodeModel (org.freeplane.features.map.NodeModel)1 MapView (org.freeplane.view.swing.map.MapView)1