⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 workflowcell.java

📁 osworkflow修改版本
💻 JAVA
字号:
package com.opensymphony.workflow.designer;import java.awt.*;import javax.swing.*;import org.jgraph.graph.DefaultGraphCell;import org.jgraph.graph.GraphConstants;/** * @author Harsh Vijaywargiya Mar 9, 2003 1:04:57 PM */public class WorkflowCell extends DefaultGraphCell{  public static final Rectangle defaultBounds = new Rectangle(10, 10, 100, 30);  protected int id;  protected String name;  /**   * @param cellName   */  public WorkflowCell(Object cellName)  {    super(cellName);    GraphConstants.setBounds(attributes, (Rectangle)defaultBounds.clone());    GraphConstants.setOpaque(attributes, true);    GraphConstants.setBackground(attributes, Color.blue.darker());    GraphConstants.setForeground(attributes, Color.white);    GraphConstants.setBorder(attributes, BorderFactory.createRaisedBevelBorder());    GraphConstants.setEditable(attributes, false);    GraphConstants.setVerticalAlignment(attributes, SwingConstants.TOP);    //GraphConstants.setFont(attributes, GraphConstants.defaultFont.deriveFont(Font.BOLD, 12));  }  /**   * Returns the mId.   * @return int   */  public int getId()  {    return id;  }  /**   * Returns the mName.   * @return String   */  public String getName()  {    return name;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -