use of org.cytoscape.view.vizmap.gui.internal.event.CellType in project cytoscape-impl by cytoscape.
the class VizMapPropertyBuilder method removeMappingProperties.
protected void removeMappingProperties(final PropertySheetPanel propertySheetPanel) {
final Property[] properties = propertySheetPanel.getProperties();
if (properties != null) {
final PropertySheetTable table = propertySheetPanel.getTable();
final PropertyRendererRegistry rendReg = (PropertyRendererRegistry) table.getRendererFactory();
for (final Property p : properties) {
if (p instanceof VizMapperProperty) {
final CellType cellType = ((VizMapperProperty<?, ?, ?>) p).getCellType();
if (cellType == CellType.CONTINUOUS || cellType == CellType.DISCRETE) {
if (cellType == CellType.CONTINUOUS) {
// TODO: Update range trace?
rendReg.unregisterRenderer(p);
}
propertySheetPanel.removeProperty(p);
}
}
}
table.repaint();
propertySheetPanel.repaint();
}
}
Aggregations