C# Class PurplePen.RectCourseObj

Inheritance: CourseObj
Exibir arquivo Open project: petergolde/PurplePen

Public Properties

Property Type Description
rect System.Drawing.RectangleF

Public Methods

Method Description
DistanceFromPoint ( PointF pt ) : double
Equals ( object obj ) : bool
GetHandleCursor ( PointF handlePoint ) : Cursor
GetHandles ( ) : System.Drawing.PointF[]
GetHashCode ( ) : int
GetHighlightBounds ( ) : RectangleF
Highlight ( Graphics g, Matrix xformWorldToPixel, Brush brush, bool erasing ) : void
MoveHandle ( PointF oldHandle, PointF newHandle ) : void
Offset ( float dx, float dy ) : void
RectCourseObj ( Id controlId, Id courseControlId, Id specialId, float scaleRatio, CourseAppearance appearance, RectangleF rect ) : System
RectangleUpdating ( RectangleF &newRect, bool dragAll, bool dragLeft, bool dragTop, bool dragRight, bool dragBottom ) : void
ToString ( ) : string

Protected Methods

Method Description
AddToMap ( Map map, SymDef symdef ) : void
CreateSymDef ( Map map, SymColor symColor ) : SymDef
DrawBorderedRectangle ( Graphics g, Matrix xformWorldToPixel, RectangleF rectToDraw, Brush brush, bool erasing ) : void

Method Details

AddToMap() protected method

protected AddToMap ( Map map, SymDef symdef ) : void
map Map
symdef SymDef
return void

CreateSymDef() protected method

protected CreateSymDef ( Map map, SymColor symColor ) : SymDef
map Map
symColor SymColor
return SymDef

DistanceFromPoint() public method

public DistanceFromPoint ( PointF pt ) : double
pt System.Drawing.PointF
return double

DrawBorderedRectangle() protected static method

protected static DrawBorderedRectangle ( Graphics g, Matrix xformWorldToPixel, RectangleF rectToDraw, Brush brush, bool erasing ) : void
g System.Drawing.Graphics
xformWorldToPixel Matrix
rectToDraw System.Drawing.RectangleF
brush System.Drawing.Brush
erasing bool
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHandleCursor() public method

public GetHandleCursor ( PointF handlePoint ) : Cursor
handlePoint System.Drawing.PointF
return System.Windows.Forms.Cursor

GetHandles() public method

public GetHandles ( ) : System.Drawing.PointF[]
return System.Drawing.PointF[]

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetHighlightBounds() public method

public GetHighlightBounds ( ) : RectangleF
return System.Drawing.RectangleF

Highlight() public method

public Highlight ( Graphics g, Matrix xformWorldToPixel, Brush brush, bool erasing ) : void
g System.Drawing.Graphics
xformWorldToPixel Matrix
brush System.Drawing.Brush
erasing bool
return void

MoveHandle() public method

public MoveHandle ( PointF oldHandle, PointF newHandle ) : void
oldHandle System.Drawing.PointF
newHandle System.Drawing.PointF
return void

Offset() public method

public Offset ( float dx, float dy ) : void
dx float
dy float
return void

RectCourseObj() public method

public RectCourseObj ( Id controlId, Id courseControlId, Id specialId, float scaleRatio, CourseAppearance appearance, RectangleF rect ) : System
controlId Id
courseControlId Id
specialId Id
scaleRatio float
appearance CourseAppearance
rect System.Drawing.RectangleF
return System

RectangleUpdating() public method

public RectangleUpdating ( RectangleF &newRect, bool dragAll, bool dragLeft, bool dragTop, bool dragRight, bool dragBottom ) : void
newRect System.Drawing.RectangleF
dragAll bool
dragLeft bool
dragTop bool
dragRight bool
dragBottom bool
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

rect public_oe property

public RectangleF,System.Drawing rect
return System.Drawing.RectangleF