コード例 #1
0
  /**
   * @param name
   * @param tableID
   */
  public ColumnActivityActions(String tableID) {
    super(COLUMN_ID, tableID);
    initializeAsGraphic(150);

    SWTSkinProperties skinProperties = SWTSkinFactory.getInstance().getSkinProperties();
    colorLinkNormal = skinProperties.getColor("color.links.normal");
    colorLinkHover = skinProperties.getColor("color.links.hover");
  }
コード例 #2
0
  public void initialize(Composite composite) {
    GridData gridData;

    downSpeedCanvas = new Canvas(composite, SWT.DOUBLE_BUFFERED);
    gridData = new GridData(GridData.FILL_BOTH);
    downSpeedCanvas.setLayoutData(gridData);
    downSpeedGraphic = SpeedGraphic.getInstance();
    downSpeedGraphic.initialize(downSpeedCanvas);
    // downSpeedGraphic.setAutoAlpha(true);
    SWTSkinProperties skinProperties = SWTSkinFactory.getInstance().getSkinProperties();
    Color cBG1 = skinProperties.getColor("color.topbar.speed.bg1");
    Color cBG2 = skinProperties.getColor("color.topbar.speed.bg2");
    Color cBG3 = skinProperties.getColor("color.topbar.speed.bg3");
    downSpeedGraphic.setColors(cBG1, cBG2, cBG3);
    downSpeedGraphic.setLineColors(
        skinProperties.getColor("color.topbar.speed.average"),
        skinProperties.getColor("color.topbar.speed.value0"),
        skinProperties.getColor("color.topbar.speed.overhead"),
        skinProperties.getColor("color.topbar.speed.value1"),
        skinProperties.getColor("color.topbar.speed.value2plus"),
        skinProperties.getColor("color.topbar.speed.trimmed"));
  }