org.netbeans.swing.outline.Outline.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(147)

本文整理了Java中org.netbeans.swing.outline.Outline.<init>()方法的一些代码示例,展示了Outline.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.<init>()方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称:Outline
方法名:<init>

Outline.<init>介绍

[英]Creates a new instance of Outline
[中]创建Outline的新实例

代码示例

代码示例来源:origin: stackoverflow.com

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.layoutfab);

    //Outline
    int size = getResources().getDimensionPixelSize(R.dimen.fab_size);
    Outline outline = new Outline();
    outline.setOval(0, 0, size, size);
    findViewById(R.id.fab).setOutline(outline);
  }

}

代码示例来源:origin: stackoverflow.com

class MyRowModel implements RowModel {…}
TreeModel myModel = new MyTreeModel(…);
OutlineModel outlineModel = DefaultOutlineModel.createOutlineModel(
  myModel, new MyRowModel(), …);
Outline outline = new Outline();
outline.setModel(outlineModel);

代码示例来源:origin: stackoverflow.com

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.layoutfab);

    //Outline
    int size = getResources().getDimensionPixelSize(R.dimen.fab_size);
    Outline outline = new Outline();
    outline.setOval(0, 0, size, size);
    findViewById(R.id.fab).setOutline(outline);
  }

}

代码示例来源:origin: stackoverflow.com

//Outline
int size = getResources().getDimensionPixelSize(R.dimen.fab_size);
Outline outline = new Outline();
outline.setOval(0, 0, size, size);
findViewById(R.id.fabdata).setOutline(outline);

代码示例来源:origin: stackoverflow.com

Button fab = (Button) rootView.findViewById(R.id.fabbutton);
 Outline mOutlineCircle;
 int shapeSize = getResources().getDimensionPixelSize(R.dimen.shape_size);
 mOutlineCircle = new Outline();
 mOutlineCircle.setRoundRect(0, 0, shapeSize, shapeSize, shapeSize / 2);
 fab.setOutline(mOutlineCircle);
 fab.setClipToOutline(true);

代码示例来源:origin: stackoverflow.com

ImageButton button = (ImageButton) rootView.findViewById(R.id.button);
Outline mOutlineCircle = new Outline();
mOutlineCircle.setOval(0, 0, button.width, button.height);
button.setOutline(mOutlineCircle);
button.setClipToOutline(true);

代码示例来源:origin: stackoverflow.com

//Outline
 int size = getResources().getDimensionPixelSize(R.dimen.fab_size);
 Outline outline = new Outline();
 outline.setOval(0, 0, size, size);

代码示例来源:origin: stackoverflow.com

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  ...........
  int buttonSize = (int) getResources().getDimension(R.dimen.button_size);
  Outline circularOutline = new Outline();
  circularOutline.setOval(0, 0, buttonSize, buttonSize);

  for (int i = 0; i < MAX_BUTTONS; i++) {
    Button button = ......
    .......
    button.setOutline(circularOutline);
    ........
  }
  .....
}

代码示例来源:origin: org.rwshop/org.rwshop.nb.motion

/** This method is called from within the constructor to
 * initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
  jScrollPane1 = new javax.swing.JScrollPane();
  myJointTreeOutline = new org.netbeans.swing.outline.Outline();
  jScrollPane1.setViewportView(myJointTreeOutline);
  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
  this.setLayout(layout);
  layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
  );
  layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)
  );
}// </editor-fold>//GEN-END:initComponents

代码示例来源:origin: org.gephi/desktop-import

issuesOutline = new org.netbeans.swing.outline.Outline();
tab2ScrollPane = new javax.swing.JScrollPane();
reportEditor = new javax.swing.JEditorPane();

代码示例来源:origin: org.rwshop/org.rwshop.nb.motion

/** This method is called from within the constructor to
 * initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
  jScrollPane1 = new javax.swing.JScrollPane();
  myRobotTreeOutline = new org.netbeans.swing.outline.Outline();
  jScrollPane1.setViewportView(myRobotTreeOutline);
  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
  this.setLayout(layout);
  layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 400, Short.MAX_VALUE)
    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
  );
  layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 300, Short.MAX_VALUE)
    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
  );
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables

代码示例来源:origin: org.gephi/desktop-import

tabbedPane = new javax.swing.JTabbedPane();
tab1ScrollPane = new javax.swing.JScrollPane();
issuesOutline = new org.netbeans.swing.outline.Outline();
tab2ScrollPane = new javax.swing.JScrollPane();
reportEditor = new javax.swing.JEditorPane();

代码示例来源:origin: uk.gov.nationalarchives/droid-ui

PopupMenuExpandNextThree = new javax.swing.JMenuItem();
jScrollPane1 = new javax.swing.JScrollPane();
resultsOutline = new org.netbeans.swing.outline.Outline();
jPanel3 = new javax.swing.JPanel();
statusProgressPanel = new javax.swing.JPanel();

代码示例来源:origin: stackoverflow.com

Outline outline = new Outline();
outline.setRootVisible(true);
outline.setModel(outlineModel);

代码示例来源:origin: digital-preservation/droid

PopupMenuExpandNextThree = new javax.swing.JMenuItem();
jScrollPane1 = new javax.swing.JScrollPane();
resultsOutline = new org.netbeans.swing.outline.Outline();
jPanel3 = new javax.swing.JPanel();
statusProgressPanel = new javax.swing.JPanel();

相关文章