use of org.jkiss.dbeaver.erd.ui.figures.NoteFigure in project dbeaver by dbeaver.
the class NotePart method refreshVisuals.
/**
* Reset the layout constraint, and revalidate the content pane
*/
@Override
protected void refreshVisuals() {
NoteFigure notefigure = (NoteFigure) getFigure();
Point location = notefigure.getLocation();
DiagramPart parent = (DiagramPart) getParent();
Rectangle constraint = new Rectangle(location.x, location.y, -1, -1);
parent.setLayoutConstraint(this, notefigure, constraint);
}
use of org.jkiss.dbeaver.erd.ui.figures.NoteFigure in project dbeaver by serge-rider.
the class NotePart method handleNameChange.
public void handleNameChange(String value) {
NoteFigure noteFigure = (NoteFigure) getFigure();
noteFigure.setVisible(false);
refreshVisuals();
}
use of org.jkiss.dbeaver.erd.ui.figures.NoteFigure in project dbeaver by serge-rider.
the class NotePart method commitNameChange.
/**
* Handles change in name when committing a direct edit
*/
@Override
protected void commitNameChange(PropertyChangeEvent evt) {
NoteFigure noteFigure = (NoteFigure) getFigure();
noteFigure.setText(getNote().getObject());
noteFigure.setVisible(true);
refreshVisuals();
}
use of org.jkiss.dbeaver.erd.ui.figures.NoteFigure in project dbeaver by serge-rider.
the class NotePart method refreshVisuals.
/**
* Reset the layout constraint, and revalidate the content pane
*/
@Override
protected void refreshVisuals() {
NoteFigure notefigure = (NoteFigure) getFigure();
Point location = notefigure.getLocation();
DiagramPart parent = (DiagramPart) getParent();
Rectangle constraint = new Rectangle(location.x, location.y, -1, -1);
parent.setLayoutConstraint(this, notefigure, constraint);
}
Aggregations