javax.swing.border.TitledBorder#DEFAULT_JUSTIFICATION源码实例Demo

下面列出了javax.swing.border.TitledBorder#DEFAULT_JUSTIFICATION 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: hortonmachine   文件: FeatureTypeParametersView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"FeatureType Parameters",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:6.0CM:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _nameLabel.setName("nameLabel");
   _nameLabel.setText("name");
   jpanel1.add(_nameLabel,cc.xy(2,3));

   _nameTextField.setName("nameTextField");
   jpanel1.add(_nameTextField,cc.xy(4,3));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6 });
   return jpanel1;
}
 
源代码2 项目: hortonmachine   文件: MapcalcView.java
public JPanel createPanel4()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Available maps",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _availableMapsTable.setName("availableMapsTable");
   JScrollPane jscrollpane1 = new JScrollPane();
   jscrollpane1.setViewportView(_availableMapsTable);
   jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
   jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
   jpanel1.add(jscrollpane1,cc.xywh(2,5,7,1));

   jpanel1.add(createmanualAddFileLayout(),cc.xywh(2,2,7,1));
   jpanel1.add(createcomboAddLayerlayout(),cc.xywh(2,3,7,1));
   addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9 },new int[]{ 1,2,3,4,5 });
   return jpanel1;
}
 
源代码3 项目: hortonmachine   文件: SettingsView.java
public JPanel createPanel4()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Charset",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(0,0,0));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   JLabel jlabel1 = new JLabel();
   jlabel1.setText("Charset to use for some read/write (gform/shp)");
   jpanel1.add(jlabel1,cc.xy(2,1));

   _charsetTextField.setName("charsetTextField");
   jpanel1.add(_charsetTextField,cc.xy(4,1));

   addFillComponents(jpanel1,new int[]{ 1,3,5 },new int[]{ 1 });
   return jpanel1;
}
 
源代码4 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel17()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Export region",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:24DLU:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _convertButton.setActionCommand("Load Preview");
   _convertButton.setName("convertButton");
   _convertButton.setText("Export to shp/las");
   jpanel1.add(_convertButton,cc.xywh(2,2,5,1));

   _createOverviewButton.setActionCommand("Load Preview");
   _createOverviewButton.setName("createOverviewButton");
   _createOverviewButton.setText("Create overview");
   jpanel1.add(_createOverviewButton,cc.xywh(2,4,5,1));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6 },new int[]{ 1,2,3,4,5 });
   return jpanel1;
}
 
源代码5 项目: hortonmachine   文件: StylePanelView.java
public JPanel createmarkerPanel()
{
   _markerPanel.setName("markerPanel");
   TitledBorder titledborder1 = new TitledBorder(null,"Marker",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(49,106,196));
   _markerPanel.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.7),FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.3),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   _markerPanel.setLayout(formlayout1);

   _markerTypeLabel.setName("markerTypeLabel");
   _markerTypeLabel.setText("Marker Type");
   _markerPanel.add(_markerTypeLabel,cc.xy(2,2));

   _markerSizeLabel.setName("markerSizeLabel");
   _markerSizeLabel.setText("Marker Size");
   _markerPanel.add(_markerSizeLabel,cc.xy(2,4));

   _markerTypeCombo.setName("markerTypeCombo");
   _markerPanel.add(_markerTypeCombo,cc.xy(4,2));

   _markerSizeText.setName("markerSizeText");
   _markerPanel.add(_markerSizeText,cc.xy(4,4));

   addFillComponents(_markerPanel,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5 });
   return _markerPanel;
}
 
源代码6 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel5()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Optional DTM for delta",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:32DLU:GROW(1.0),FILL:DEFAULT:NONE,FILL:32DLU:NONE","CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _dtmInputPathField.setName("dtmInputPathField");
   jpanel1.add(_dtmInputPathField,cc.xy(1,1));

   _loadDtmButton.setActionCommand("load");
   _loadDtmButton.setName("loadDtmButton");
   _loadDtmButton.setText("...");
   jpanel1.add(_loadDtmButton,cc.xy(3,1));

   addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
   return jpanel1;
}
 
源代码7 项目: hortonmachine   文件: MapcalcView.java
public JPanel createPanel()
{
   JPanel jpanel1 = new JPanel();
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.6),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   jpanel1.add(createPanel1(),cc.xywh(2,2,9,1));
   jpanel1.add(createPanel2(),cc.xywh(2,4,9,3));
   jpanel1.add(createPanel3(),cc.xywh(2,14,18,1));
   jpanel1.add(createPanel4(),cc.xywh(13,2,7,5));
   jpanel1.add(createPanel5(),cc.xywh(13,12,7,1));
   _syntaxHelpTab.setName("syntaxHelpTab");
   TitledBorder titledborder1 = new TitledBorder(null,"Syntax Help",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   _syntaxHelpTab.setBorder(titledborder1);
   jpanel1.add(_syntaxHelpTab,cc.xywh(2,8,9,5));

   _debugCheckbox.setActionCommand("Debug");
   _debugCheckbox.setName("debugCheckbox");
   _debugCheckbox.setText("Debug");
   jpanel1.add(_debugCheckbox,cc.xywh(13,8,7,1));

   jpanel1.add(createPanel6(),cc.xywh(13,10,7,1));
   addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 });
   return jpanel1;
}
 
源代码8 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel12()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Other",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,TOP:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   JLabel jlabel1 = new JLabel();
   jlabel1.setText("point size");
   jpanel1.add(jlabel1,cc.xy(1,1));

   _pointSizeField.setName("pointSizeField");
   jpanel1.add(_pointSizeField,cc.xy(3,1));

   JLabel jlabel2 = new JLabel();
   jlabel2.setText("show elevation higher than");
   jpanel1.add(jlabel2,cc.xy(1,3));

   _elevHigherThanField.setName("elevHigherThanField");
   jpanel1.add(_elevHigherThanField,cc.xy(3,3));

   JLabel jlabel3 = new JLabel();
   jlabel3.setText("show intensity higher than");
   jpanel1.add(jlabel3,cc.xy(1,5));

   _intensityHigherThanField.setName("intensityHigherThanField");
   jpanel1.add(_intensityHigherThanField,cc.xy(3,5));

   addFillComponents(jpanel1,new int[]{ 2 },new int[]{ 2,4 });
   return jpanel1;
}
 
源代码9 项目: hortonmachine   文件: MapcalcView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Mapcalc History",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _historyCombo.setName("historyCombo");
   jpanel1.add(_historyCombo,cc.xy(1,2));

   addFillComponents(jpanel1,new int[]{ 1 },new int[]{ 1 });
   return jpanel1;
}
 
源代码10 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel10()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Preview properties",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.2),FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.2),FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.2)","TOP:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   jpanel1.add(createPanel11(),cc.xy(2,1));
   jpanel1.add(createPanel12(),cc.xy(4,1));
   jpanel1.add(createPanel13(),cc.xy(6,1));
   addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6 },new int[]{ 1 });
   return jpanel1;
}
 
源代码11 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel16()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Extract Circles",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,FILL:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   JLabel jlabel1 = new JLabel();
   jlabel1.setText("min cell count");
   jpanel1.add(jlabel1,cc.xy(1,2));

   _circlesMinCellCountField.setName("circlesMinCellCountField");
   jpanel1.add(_circlesMinCellCountField,cc.xy(3,2));

   _circlesExtractButton.setActionCommand("Load Preview");
   _circlesExtractButton.setName("circlesExtractButton");
   _circlesExtractButton.setText("Extract Circles");
   jpanel1.add(_circlesExtractButton,cc.xy(5,2));

   _circlesSaveShpButton.setActionCommand("Load Preview");
   _circlesSaveShpButton.setName("circlesSaveShpButton");
   _circlesSaveShpButton.setText("Save Circles Shp");
   jpanel1.add(_circlesSaveShpButton,cc.xywh(1,4,5,1));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,3 });
   return jpanel1;
}
 
源代码12 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel15()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Slicing",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:18DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:18DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _slicingModeCheck.setActionCommand("enable slicing mode");
   _slicingModeCheck.setName("slicingModeCheck");
   _slicingModeCheck.setText("enable slicing mode");
   jpanel1.add(_slicingModeCheck,cc.xywh(2,2,7,1));

   JLabel jlabel1 = new JLabel();
   jlabel1.setText("interval [m]");
   jpanel1.add(jlabel1,cc.xy(2,4));

   _sliceIntervalField.setName("sliceIntervalField");
   jpanel1.add(_sliceIntervalField,cc.xy(4,4));

   JLabel jlabel2 = new JLabel();
   jlabel2.setText("slice width [m]");
   jpanel1.add(jlabel2,cc.xy(6,4));

   _sliceWidthField.setName("sliceWidthField");
   jpanel1.add(_sliceWidthField,cc.xy(8,4));

   _loadSlicedataButton.setActionCommand("Load Preview");
   _loadSlicedataButton.setName("loadSlicedataButton");
   _loadSlicedataButton.setText("Load Slice Data");
   jpanel1.add(_loadSlicedataButton,cc.xywh(2,6,7,1));

   _slicesCombo.setName("slicesCombo");
   jpanel1.add(_slicesCombo,cc.xywh(2,8,7,1));

   jpanel1.add(createPanel16(),cc.xywh(2,10,7,1));
   addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9 },new int[]{ 1,2,3,4,5,6,7,8,9,10 });
   return jpanel1;
}
 
源代码13 项目: hortonmachine   文件: StylePanelView.java
public JPanel createstrokelPanel()
{
   _strokelPanel.setName("strokelPanel");
   TitledBorder titledborder1 = new TitledBorder(null,"Stroke",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(49,106,196));
   _strokelPanel.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.7),FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.3),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   _strokelPanel.setLayout(formlayout1);

   _strokeColorLabel.setName("strokeColorLabel");
   _strokeColorLabel.setText("Strokel Color");
   _strokelPanel.add(_strokeColorLabel,cc.xy(2,2));

   _strokeColorButton.setActionCommand("...");
   _strokeColorButton.setName("strokeColorButton");
   _strokeColorButton.setText("...");
   _strokelPanel.add(_strokeColorButton,cc.xy(4,2));

   _strokeWidthLabel.setName("strokeWidthLabel");
   _strokeWidthLabel.setText("Stroke Width");
   _strokelPanel.add(_strokeWidthLabel,cc.xy(2,4));

   _strokeWidthText.setName("strokeWidthText");
   _strokelPanel.add(_strokeWidthText,cc.xy(4,4));

   addFillComponents(_strokelPanel,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5 });
   return _strokelPanel;
}
 
源代码14 项目: hortonmachine   文件: MapcalcView.java
public JPanel createPanel2()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Function Area",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _functionAreaPanel.setName("functionAreaPanel");
   jpanel1.add(_functionAreaPanel,cc.xy(1,1));

   addFillComponents(jpanel1,new int[0],new int[0]);
   return jpanel1;
}
 
源代码15 项目: hortonmachine   文件: PointMarkSymbolizerView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Border",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:6.0CM:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _widthLabel.setName("widthLabel");
   _widthLabel.setText("width");
   jpanel1.add(_widthLabel,cc.xy(2,2));

   _widthSpinner.setName("widthSpinner");
   jpanel1.add(_widthSpinner,cc.xy(4,2));

   _opacityBorderLabel.setName("opacityBorderLabel");
   _opacityBorderLabel.setText("opacity");
   jpanel1.add(_opacityBorderLabel,cc.xy(2,4));

   _opacityBorderSpinner.setName("opacityBorderSpinner");
   jpanel1.add(_opacityBorderSpinner,cc.xy(4,4));

   _colorBorderLabel.setName("colorBorderLabel");
   _colorBorderLabel.setText("color");
   jpanel1.add(_colorBorderLabel,cc.xy(2,6));

   _colorBorderButton.setActionCommand("border color");
   _colorBorderButton.setName("colorBorderButton");
   _colorBorderButton.setText("border color");
   jpanel1.add(_colorBorderButton,cc.xy(4,6));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6,7 });
   return jpanel1;
}
 
源代码16 项目: hortonmachine   文件: GeopaparazziView.java
public JPanel createchartHolderFrame()
{
   _chartHolderFrame.setName("chartHolderFrame");
   TitledBorder titledborder1 = new TitledBorder(null,"Charts",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   _chartHolderFrame.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   _chartHolderFrame.setLayout(formlayout1);

   _chartHolder.setName("chartHolder");
   _chartHolderFrame.add(_chartHolder,cc.xy(1,1));

   addFillComponents(_chartHolderFrame,new int[0],new int[0]);
   return _chartHolderFrame;
}
 
源代码17 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel6()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Filters",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   jpanel1.add(createPanel7(),cc.xy(1,1));
   jpanel1.add(createPanel8(),cc.xy(1,4));
   addFillComponents(jpanel1,new int[]{ 1 },new int[]{ 1,2,3,4 });
   return jpanel1;
}
 
源代码18 项目: beast-mcmc   文件: TreesPanel.java
public TreesPanel(BeautiFrame parent, Action removeTreeAction) {
        super();
        this.frame = parent;

        treesTableModel = new TreesTableModel();
        treesTable = new JTable(treesTableModel);

        treesTable.getTableHeader().setReorderingAllowed(false);
        treesTable.getTableHeader().setResizingAllowed(false);
//        treesTable.getTableHeader().setDefaultRenderer(
//                new HeaderRenderer(SwingConstants.LEFT, new Insets(0, 4, 0, 4)));

        final TableColumnModel model = treesTable.getColumnModel();
        final TableColumn tableColumn0 = model.getColumn(0);
        tableColumn0.setCellRenderer(new ModelsTableCellRenderer(SwingConstants.LEFT, new Insets(0, 4, 0, 4)));

        TableEditorStopper.ensureEditingStopWhenTableLosesFocus(treesTable);

        treesTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        treesTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent evt) {
                selectionChanged();
            }
        });

        JScrollPane scrollPane = new JScrollPane(treesTable,
                JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        scrollPane.setOpaque(false);

        JPanel controlPanel1 = new JPanel(new FlowLayout(FlowLayout.LEFT));
        controlPanel1.setOpaque(false);

        setCurrentModelAndPrior(null);

        JPanel panel1 = new JPanel(new BorderLayout(0, 0));
        panel1.setOpaque(false);
        panel1.add(scrollPane, BorderLayout.CENTER);

        treeModelPanelParent = new JPanel(new FlowLayout(FlowLayout.LEFT));
        treeModelPanelParent.setOpaque(false);
        treeModelBorder = new TitledBorder(null, "Tree Model", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.ABOVE_TOP);
        treeModelPanelParent.setBorder(treeModelBorder);

        JScrollPane scrollPane2 = new JScrollPane(treeModelPanelParent, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        scrollPane2.setOpaque(false);
        scrollPane2.setBorder(null);
        scrollPane2.getViewport().setOpaque(false);

        treePriorPanelParent = new JPanel(new FlowLayout(FlowLayout.LEFT));
        treePriorPanelParent.setOpaque(false);
        treePriorBorder = new TitledBorder(null, "Tree Prior", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.ABOVE_TOP);
        treePriorPanelParent.setBorder(treePriorBorder);

        JPanel panel3 = new JPanel(new FlowLayout(FlowLayout.LEFT));
        panel3.setOpaque(false);
        linkTreePriorCheck.setEnabled(false);
        linkTreePriorCheck.setSelected(true);
        linkTreePriorCheck.addItemListener(new ItemListener() {
            public void itemStateChanged(ItemEvent ev) {
                updateShareSameTreePriorChanged();
            }
        });
        linkTreePriorCheck.setToolTipText("Decide whether to use one tree prior for all trees");
        panel3.add(linkTreePriorCheck);

        JPanel panel4 = new JPanel(new BorderLayout());
        panel4.setOpaque(false);
        panel4.add(treePriorPanelParent, BorderLayout.NORTH);
        panel4.add(scrollPane2, BorderLayout.CENTER);

        JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panel1, panel4);
        splitPane.setDividerLocation(180);
        splitPane.setContinuousLayout(true);
        splitPane.setBorder(BorderFactory.createEmptyBorder());
        splitPane.setOpaque(false);

        setOpaque(false);
        setLayout(new BorderLayout(0, 0));
        setBorder(new BorderUIResource.EmptyBorderUIResource(new Insets(12, 12, 12, 12)));

        add(panel3, BorderLayout.NORTH);
        add(splitPane, BorderLayout.CENTER);
    }
 
源代码19 项目: hortonmachine   文件: TextSymbolizerView.java
public JPanel createPanel2()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Other options (if applicable)",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:6.0CM:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _voAutoWrapPixelsLabel.setName("voAutoWrapPixelsLabel");
   _voAutoWrapPixelsLabel.setText("auto wrap pixels (VO)");
   jpanel1.add(_voAutoWrapPixelsLabel,cc.xy(2,4));

   _voSpaceAroundPixelsLabel.setName("voSpaceAroundPixelsLabel");
   _voSpaceAroundPixelsLabel.setText("space around pixels (VO)");
   jpanel1.add(_voSpaceAroundPixelsLabel,cc.xy(2,6));

   _voRepeatEveryPixelLabel.setName("voRepeatEveryPixelLabel");
   _voRepeatEveryPixelLabel.setText("repeat every pixels (VO)");
   jpanel1.add(_voRepeatEveryPixelLabel,cc.xy(2,8));

   _voFollowLineLabel.setName("voFollowLineLabel");
   _voFollowLineLabel.setText("follow line (VO)");
   jpanel1.add(_voFollowLineLabel,cc.xy(2,10));

   _voMaxDispPixelLabel.setName("voMaxDispPixelLabel");
   _voMaxDispPixelLabel.setText("max displacement pixels (VO)");
   jpanel1.add(_voMaxDispPixelLabel,cc.xy(2,2));

   _voMaxAngleAllowedLabel.setName("voMaxAngleAllowedLabel");
   _voMaxAngleAllowedLabel.setText("max angle allowed (VO)");
   jpanel1.add(_voMaxAngleAllowedLabel,cc.xy(2,12));

   _voMaxDispPixelText.setName("voMaxDispPixelText");
   jpanel1.add(_voMaxDispPixelText,cc.xy(4,2));

   _voAutoWrapPixelsText.setName("voAutoWrapPixelsText");
   jpanel1.add(_voAutoWrapPixelsText,cc.xy(4,4));

   _voSpaceAroundPixelsText.setName("voSpaceAroundPixelsText");
   jpanel1.add(_voSpaceAroundPixelsText,cc.xy(4,6));

   _voRepeatEveryPixelText.setName("voRepeatEveryPixelText");
   jpanel1.add(_voRepeatEveryPixelText,cc.xy(4,8));

   _voFollowLineText.setName("voFollowLineText");
   jpanel1.add(_voFollowLineText,cc.xy(4,10));

   _voMaxAngleAllowedText.setName("voMaxAngleAllowedText");
   jpanel1.add(_voMaxAngleAllowedText,cc.xy(4,12));

   _perpenOffsetLabel.setName("perpenOffsetLabel");
   _perpenOffsetLabel.setText("perpendicular offset");
   jpanel1.add(_perpenOffsetLabel,cc.xy(2,14));

   _perpenOffsetText.setName("perpenOffsetText");
   jpanel1.add(_perpenOffsetText,cc.xy(4,14));

   _initialGapLabel.setName("initialGapLabel");
   _initialGapLabel.setText("initial gap");
   jpanel1.add(_initialGapLabel,cc.xy(2,16));

   _initialGapText.setName("initialGapText");
   jpanel1.add(_initialGapText,cc.xy(4,16));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 });
   return jpanel1;
}
 
源代码20 项目: hortonmachine   文件: PolygonSymbolizerView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Border",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:6.0CM:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _widthLabel.setName("widthLabel");
   _widthLabel.setText("width");
   jpanel1.add(_widthLabel,cc.xy(2,2));

   _widthSpinner.setName("widthSpinner");
   jpanel1.add(_widthSpinner,cc.xy(4,2));

   _opacityBorderLabel.setName("opacityBorderLabel");
   _opacityBorderLabel.setText("opacity");
   jpanel1.add(_opacityBorderLabel,cc.xy(2,4));

   _opacityBorderSpinner.setName("opacityBorderSpinner");
   jpanel1.add(_opacityBorderSpinner,cc.xy(4,4));

   _colorBorderLabel.setName("colorBorderLabel");
   _colorBorderLabel.setText("color");
   jpanel1.add(_colorBorderLabel,cc.xy(2,6));

   _dashLabel.setName("dashLabel");
   _dashLabel.setText("dash");
   jpanel1.add(_dashLabel,cc.xy(2,8));

   _dashOffsetLabel.setName("dashOffsetLabel");
   _dashOffsetLabel.setText("dash offset");
   jpanel1.add(_dashOffsetLabel,cc.xy(2,10));

   _dashTextField.setName("dashTextField");
   jpanel1.add(_dashTextField,cc.xy(4,8));

   _dashOffsetTextField.setName("dashOffsetTextField");
   jpanel1.add(_dashOffsetTextField,cc.xy(4,10));

   _colorBorderButton.setActionCommand("border color");
   _colorBorderButton.setName("colorBorderButton");
   _colorBorderButton.setText("border color");
   jpanel1.add(_colorBorderButton,cc.xy(4,6));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 });
   return jpanel1;
}