C# Class PurplePen.CourseObj

Inheritance: IMapViewerHighlight, ICloneable
Exibir arquivo Open project: petergolde/PurplePen Class Usage Examples

Public Properties

Property Type Description
appearance CourseAppearance
controlId Id
courseControlId Id
layer CourseLayer
scaleRatio float
specialId Id

Public Methods

Method Description
AddToMap ( Map map, SymColor symColor, SymDef>.Dictionary dict ) : void
Clone ( ) : object
DistanceFromPoint ( PointF pt ) : double
DrawHighlight ( Graphics g, Matrix xformWorldToPixel ) : void
Equals ( object obj ) : bool
EraseHighlight ( Graphics g, Matrix xformWorldToPixel, Brush eraseBrush ) : void
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
ToString ( ) : string

Protected Methods

Method Description
AddToMap ( Map map, SymDef symdef ) : void
CourseObj ( Id controlId, Id courseControlId, Id specialId, float scaleRatio, CourseAppearance appearance ) : System
CreateSymDef ( Map map, SymColor symColor ) : SymDef
OffsetCoords ( PointF coords, float dx, float dy ) : System.Drawing.PointF[]
RotateCoords ( PointF coords, float angle ) : System.Drawing.PointF[]
ScaleCoords ( PointF coords ) : System.Drawing.PointF[]
SymDefKey ( ) : object
TransformDistance ( float distance, Matrix xform ) : float

Private Methods

Method Description
DrawHandle ( PointF handleLocation, Graphics g, Matrix xformWorldToPixel ) : void
EraseHandle ( PointF handleLocation, Graphics g, Matrix xformWorldToPixel, Brush eraseBrush ) : void

Method Details

AddToMap() public method

public AddToMap ( Map map, SymColor symColor, SymDef>.Dictionary dict ) : void
map Map
symColor SymColor
dict SymDef>.Dictionary
return void

AddToMap() protected abstract method

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

Clone() public method

public Clone ( ) : object
return object

CourseObj() protected method

protected CourseObj ( Id controlId, Id courseControlId, Id specialId, float scaleRatio, CourseAppearance appearance ) : System
controlId Id
courseControlId Id
specialId Id
scaleRatio float
appearance CourseAppearance
return System

CreateSymDef() protected abstract method

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

DistanceFromPoint() public abstract method

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

DrawHighlight() public method

public DrawHighlight ( Graphics g, Matrix xformWorldToPixel ) : void
g System.Drawing.Graphics
xformWorldToPixel Matrix
return void

Equals() public method

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

EraseHighlight() public method

public EraseHighlight ( Graphics g, Matrix xformWorldToPixel, Brush eraseBrush ) : void
g System.Drawing.Graphics
xformWorldToPixel Matrix
eraseBrush System.Drawing.Brush
return void

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 abstract method

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

Highlight() public abstract method

public abstract 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 abstract method

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

OffsetCoords() protected method

protected OffsetCoords ( PointF coords, float dx, float dy ) : System.Drawing.PointF[]
coords System.Drawing.PointF
dx float
dy float
return System.Drawing.PointF[]

RotateCoords() protected method

protected RotateCoords ( PointF coords, float angle ) : System.Drawing.PointF[]
coords System.Drawing.PointF
angle float
return System.Drawing.PointF[]

ScaleCoords() protected method

protected ScaleCoords ( PointF coords ) : System.Drawing.PointF[]
coords System.Drawing.PointF
return System.Drawing.PointF[]

SymDefKey() protected method

protected SymDefKey ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string

TransformDistance() protected method

protected TransformDistance ( float distance, Matrix xform ) : float
distance float
xform Matrix
return float

Property Details

appearance public_oe property

public CourseAppearance,PurplePen appearance
return CourseAppearance

controlId public_oe property

public Id controlId
return Id

courseControlId public_oe property

public Id courseControlId
return Id

layer public_oe property

public CourseLayer layer
return CourseLayer

scaleRatio public_oe property

public float scaleRatio
return float

specialId public_oe property

public Id specialId
return Id