Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
define("as3/flashx/textLayout/edit/SelectionFormat",["module","exports","as3-rt/AS3","as3/Error"], function($module,$exports,AS3,Error) { AS3.compilationUnit($module,$exports,function($primaryDeclaration){/*package flashx.textLayout.edit {
/**
 * The SelectionFormat class defines the properties of a selection highlight.
 * @see ISelectionManager
 * @see SelectionManager
 *
 * /
public class SelectionFormat {
  /**
   * The alpha for drawing the cursor. Valid values are between 0 (completely transparent) and 1 (completely opaque, which is the default).
   * <p>Setting the <code>pointAlpha</code> and <code>rangeAlpha</code> properties to zero disables selection highlighting.</p>
   * @see #rangeAlpha
   *
   * /
  public*/ function  get$pointAlpha()/*:Number*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The blend mode for drawing the cursor.
   * @see flash.display.BlendMode
   *
   * /
  public*/ function  get$pointBlendMode()/*:String*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The rate at which the cursor blinks, in milliseconds.
   * /
  public*/ function  get$pointBlinkRate()/*:Number*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The color for drawing the cursor.
   * /
  public*/ function  get$pointColor()/*:uint*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The alpha for drawing the highlight of a range selection. Valid values are between 0 (completely transparent) and 1 (completely opaque, which is the default).
   * <p>Setting the <code>pointAlpha</code> and <code>rangeAlpha</code> properties to zero disables selection highlighting.</p>
   * @see #pointAlpha
   *
   * /
  public*/ function  get$rangeAlpha()/*:Number*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The blending mode for drawing the highlight of a range selection.
   * @see flash.display.BlendMode
   *
   * /
  public*/ function  get$rangeBlendMode()/*:String*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * The color for drawing the highlight of a range selection.
   * /
  public*/ function  get$rangeColor()/*:uint*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * Creates a SelectionFormat object with the specified properties.
   * <p>A SelectionFormat created with the default values will use black for the highlight colors, 1.0 for the alphas, and BlendMode.DIFFERENCE for the blending modes. The cursor blink rate is 500 milliseconds.</p>
   * <p>Setting the <code>pointAlpha</code> and <code>rangeAlpha</code> properties to zero disables selection highlighting.</p>
   * @param rangeColor The color for drawing the highlight.
   * @param rangeAlpha The transparency value for drawing the highlight. Valid values are between 0 (completely transparent) and 1 (completely opaque, which is the default).
   * @param rangeBlendMode The blend mode for drawing the highlight. Use constants defined in the BlendMode class to set this parameter.
   * @param pointColor The color for the drawing cursor.
   * @param pointAlpha The transparency value for drawing the cursor. Valid values are between 0 (completely transparent) and 1 (completely opaque, which is the default).
   * @param pointBlendMode The blend mode for drawing the cursor. Use constants defined in the BlendMode class to set this parameter.
   * @param pointBlinkRate The rate at which the cursor blinks, in milliseconds.
   *
   * @see flash.display.BlendMode
   * @see #pointAlpha
   * @see #rangeAlpha
   *
   * /
  public*/ function SelectionFormat(rangeColor/*:uint = 0xffffff*/, rangeAlpha/*:Number = 1.0*/, rangeBlendMode/*:String = "difference"*/, pointColor/*:uint = 0xffffff*/, pointAlpha/*:Number = 1.0*/, pointBlendMode/*:String = "difference"*/, pointBlinkRate/*:Number = 500*/) {switch(arguments.length){case 0:rangeColor=0xffffff;case 1:rangeAlpha=1.0;case 2:rangeBlendMode="difference";case 3:pointColor=0xffffff;case 4:pointAlpha=1.0;case 5:pointBlendMode="difference";case 6:pointBlinkRate=500;}
    throw new Error('not implemented'); // TODO: implement!
  }/*

  /**
   * Determines whether this SelectionFormat object has the same property values as another SelectionFormat object.
   * @param selectionFormat the SelectionFormat to compare against.
   *
   * @return <code>true</code>, if the property values are identical; <code>false</code>, otherwise.
   *
   * /
  public*/ function equals(selectionFormat/*:SelectionFormat*/)/*:Boolean*/ {
    throw new Error('not implemented'); // TODO: implement!
  }/*
}
}

============================================== Jangaroo part ==============================================*/
    $primaryDeclaration(AS3.class_($module, {members: {
      pointAlpha: {get: get$pointAlpha},
      pointBlendMode: {get: get$pointBlendMode},
      pointBlinkRate: {get: get$pointBlinkRate},
      pointColor: {get: get$pointColor},
      rangeAlpha: {get: get$rangeAlpha},
      rangeBlendMode: {get: get$rangeBlendMode},
      rangeColor: {get: get$rangeColor},
      constructor: SelectionFormat,
      equals: equals
    }}));
  });
});
//# sourceMappingURL=SelectionFormat.js.map
New to GrepCode? Check out our FAQ X