Ejemplo n.º 1
0
 /** Used internally for property changes */
 public void propertyChange(PropertyChangeEvent event) {
   if (ignoreEvent_) {
     if (Debug.EVENT) System.out.println("Logo: ignore event");
     return;
   }
   if (Debug.EVENT) {
     System.out.println("LogoDialog: " + event);
     System.out.println("            " + event.getPropertyName());
   }
   if (event.getPropertyName().equals("location")) {
     Point2D.Double locp = logo_.getLocationP();
     xPosTextField.setText(String.valueOf(locp.x));
     yPosTextField.setText(String.valueOf(locp.y));
   }
 }
Ejemplo n.º 2
0
 private void setLogo() {
   //
   // label Id
   //
   setTitle("Logo - " + logo_.getId());
   //
   // options
   //
   labelVisibleCheckBox.setSelected(logo_.isVisible());
   labelSelectableCheckBox.setSelected(logo_.isSelectable());
   //
   // location
   //
   Point2D.Double locp = logo_.getLocationP();
   xPosTextField.setText(String.valueOf(locp.x));
   yPosTextField.setText(String.valueOf(locp.y));
   //
   // alignment
   //
   horizComboBox.setSelectedIndex(logo_.getHAlign());
   vertComboBox.setSelectedIndex(logo_.getVAlign());
 }