internal Action(string id, string label, ActionType type, RPLFormat.ShapeType shape, RectangleF position, float[] path) { Id = id; Label = label; Shape = ConvertRPLShape(shape); Type = type; m_position = position; m_path = path; }
private ActionShape ConvertRPLShape(RPLFormat.ShapeType shape) { switch (shape) { case RPLFormat.ShapeType.Rectangle: return(ActionShape.Rectangle); case RPLFormat.ShapeType.Circle: return(ActionShape.Circle); case RPLFormat.ShapeType.Polygon: return(ActionShape.Polygon); default: return(ActionShape.None); } }
public DrillthroughAction(string id, string label, RPLFormat.ShapeType shape, RectangleF position, float[] path, string reportId) : base(id, label, ActionType.DrillThrough, shape, position, path) { ReportId = reportId; }
public ReportToolTip(string id, RPLFormat.ShapeType shape, RectangleF position, float[] path, string caption) : base(id, null, ActionType.None, shape, position, path) { Caption = caption; }
public ToggleAction(string id, string label, RPLFormat.ShapeType shape, RectangleF position, float[] path, bool state) : base(id, label, ActionType.Toggle, shape, position, path) { ToggleState = state; }
public BookmarkLinkAction(string id, string label, RPLFormat.ShapeType shape, RectangleF position, float[] path, string action) : base(id, label, ActionType.BookmarkLink, shape, position, path) { ActionLink = action; }
public SortAction(string id, string label, RPLFormat.ShapeType shape, RectangleF position, float[] path, SortOrder direction) : base(id, label, ActionType.Sort, shape, position, path) { Direction = direction; }
public HyperLinkAction(string id, string label, RPLFormat.ShapeType shape, RectangleF position, float[] path, string url) : base(id, label, ActionType.HyperLink, shape, position, path) { Url = url; }