Esempio n. 1
0
 void markEditor_actionPerformed(java.awt.event.ActionEvent event) {
   PlotMarkDialog pmd = new PlotMarkDialog();
   Point loc = markEditor.getLocationOnScreen();
   pmd.setLocation(loc.x, loc.y);
   int result = pmd.showDialog(mark_);
   if (result == PlotMarkDialog.OK_RESPONSE) {
     changeMark(pmd.getMark());
   }
 }
Esempio n. 2
0
 /** Set the <code>VectorAttribute</code> for the dialog. */
 public void setVectorAttribute(VectorAttribute attr) {
   attr_ = attr;
   //
   // Vector
   //
   // Color
   //
   colorPanel.setColor(attr_.getVectorColor());
   //
   // style
   //
   vectorStyleComboBox.setSelectedIndex(attr_.getVectorStyle());
   vectorStyle(attr_.getVectorStyle());
   //
   // vectorScale
   //
   vectorScaleTextField.setText(Double.toString(attr_.getVectorScale()));
   //
   // vector max size
   //
   vectorMaxSizeTextField.setText(Double.toString(attr_.getVectorMaxSize()));
   //
   // offset angle
   //
   offsetAngleTextField.setText(Double.toString(attr_.getOffsetAngle()));
   //
   // head
   //
   //
   // scale
   //
   headScaleTextField.setText(Double.toString(attr_.getHeadScale()));
   //
   // head max size
   //
   headMaxSizeTextField.setText(Double.toString(attr_.getHeadMaxSize()));
   //
   // head min size
   //
   headMinSizeTextField.setText(Double.toString(attr_.getHeadMinSize()));
   //
   // head fixed size
   //
   headFixedSizeTextField.setText(Double.toString(attr_.getHeadFixedSize()));
   //
   // origin
   //
   // style
   //
   originStyleComboBox.setSelectedIndex(attr_.getOriginStyle());
   //
   // mark
   //
   int mark = attr_.getMark();
   changeMark(mark);
   //    System.out.println(" mark code = " + mark);
   //
   // Color
   //
   markColorPanel.setColor(attr_.getMarkColor());
   //
   // mark height
   //
   markHeightTextField.setText(Double.toString(attr_.getMarkHeightP()));
   //
   // Stroke line attributes
   //
   // width
   //
   widthTextField.setText(Float.toString(attr_.getWidth()));
   //
   // cap style
   //
   capStyleComboBox.setSelectedIndex(attr_.getCapStyle());
   //
   // miter style
   //
   miterStyleComboBox.setSelectedIndex(attr_.getMiterStyle());
   //
   // miter limit
   //
   miterLimitTextField.setText(Float.toString(attr_.getMiterLimit()));
 }