C# Class NClass.DiagramEditor.Diagrams.Shapes.Shape

Inheritance: DiagramElement
Mostra file Open project: gbaychev/NClass Class Usage Examples

Protected Properties

Property Type Description
borderDashPattern float[]
defaultMinSize System.Drawing.Size
shadowBrush System.Drawing.SolidBrush

Private Properties

Property Type Description
AutoHeight void
AutoWidth void
Deserialize void
DoubleClicked void
DrawResizingSquares void
MouseMoved void
MousePressed void
MouseUpped void
PerformResize void
Serialize void

Public Methods

Method Description
Collapse ( ) : void
Expand ( ) : void
GetCursor ( AbsoluteMouseEventArgs e ) : Cursor
ToString ( ) : string

Protected Methods

Method Description
CalculateDrawingArea ( Style style, bool printing, float zoom ) : RectangleF
CloneEntity ( IDiagram diagram ) : bool
Contains ( PointF point ) : bool
CopyFrom ( Shape shape ) : void
DrawSelectionLines ( Graphics g, float zoom, Point offset ) : void
GetBorderWidth ( Style style ) : int
GetContextMenuItems ( IDiagram diagram ) : IEnumerable
GetLogicalArea ( ) : Rectangle
GetMaximalOffset ( Size offset, int padding ) : Size
GetRequiredHeight ( ) : int
GetRequiredWidth ( Graphics g, Style style ) : float
GetResizeMode ( AbsoluteMouseEventArgs e ) : ResizeMode
Offset ( Size offset ) : void
OnDeactivating ( EventArgs e ) : void
OnDeserializing ( SerializeEventArgs e ) : void
OnDoubleClick ( AbsoluteMouseEventArgs e ) : void
OnDragging ( MoveEventArgs e ) : void
OnMouseDown ( AbsoluteMouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( AbsoluteMouseEventArgs e ) : void
OnMouseUp ( AbsoluteMouseEventArgs e ) : void
OnMove ( MoveEventArgs e ) : void
OnResize ( ResizeEventArgs e ) : void
OnResizing ( ResizeEventArgs e ) : void
OnSerializing ( SerializeEventArgs e ) : void
Paste ( IDiagram diagram, Size offset ) : Shape
Shape ( IEntity entity ) : System
TransformRelativeToAbsolute ( Rectangle rectangle, float zoom, Point offset ) : Rectangle
TrySelect ( RectangleF frame ) : bool

Private Methods

Method Description
AutoHeight ( ) : void
AutoWidth ( ) : void
Deserialize ( XmlElement node ) : void
DoubleClicked ( AbsoluteMouseEventArgs e ) : void
DrawResizingSquares ( Graphics g, Rectangle frame ) : void
MouseMoved ( AbsoluteMouseEventArgs e ) : void
MousePressed ( AbsoluteMouseEventArgs e ) : void
MouseUpped ( AbsoluteMouseEventArgs e ) : void
PerformResize ( PointF mouseLocation ) : void
Serialize ( XmlElement node ) : void

Method Details

CalculateDrawingArea() protected method

protected CalculateDrawingArea ( Style style, bool printing, float zoom ) : RectangleF
style Style
printing bool
zoom float
return System.Drawing.RectangleF

CloneEntity() protected abstract method

protected abstract CloneEntity ( IDiagram diagram ) : bool
diagram IDiagram
return bool

Collapse() public method

public Collapse ( ) : void
return void

Contains() protected method

protected Contains ( PointF point ) : bool
point System.Drawing.PointF
return bool

CopyFrom() protected method

protected CopyFrom ( Shape shape ) : void
shape Shape
return void

DrawSelectionLines() protected method

protected DrawSelectionLines ( Graphics g, float zoom, Point offset ) : void
g System.Drawing.Graphics
zoom float
offset Point
return void

Expand() public method

public Expand ( ) : void
return void

GetBorderWidth() protected abstract method

protected abstract GetBorderWidth ( Style style ) : int
style Style
return int

GetContextMenuItems() protected method

protected GetContextMenuItems ( IDiagram diagram ) : IEnumerable
diagram IDiagram
return IEnumerable

GetCursor() public method

public GetCursor ( AbsoluteMouseEventArgs e ) : Cursor
e AbsoluteMouseEventArgs
return System.Windows.Forms.Cursor

GetLogicalArea() protected final method

protected final GetLogicalArea ( ) : Rectangle
return System.Drawing.Rectangle

GetMaximalOffset() protected method

protected GetMaximalOffset ( Size offset, int padding ) : Size
offset System.Drawing.Size
padding int
return System.Drawing.Size

GetRequiredHeight() protected method

protected GetRequiredHeight ( ) : int
return int

GetRequiredWidth() protected method

protected GetRequiredWidth ( Graphics g, Style style ) : float
g System.Drawing.Graphics
style Style
return float

GetResizeMode() protected method

protected GetResizeMode ( AbsoluteMouseEventArgs e ) : ResizeMode
e AbsoluteMouseEventArgs
return ResizeMode

Offset() protected final method

protected final Offset ( Size offset ) : void
offset System.Drawing.Size
return void

OnDeactivating() protected method

protected OnDeactivating ( EventArgs e ) : void
e System.EventArgs
return void

OnDeserializing() protected method

protected OnDeserializing ( SerializeEventArgs e ) : void
e NClass.Core.SerializeEventArgs
return void

OnDoubleClick() protected method

protected OnDoubleClick ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
return void

OnDragging() protected method

protected OnDragging ( MoveEventArgs e ) : void
e MoveEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
return void

OnMouseEnter() protected method

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
return void

OnMove() protected method

protected OnMove ( MoveEventArgs e ) : void
e MoveEventArgs
return void

OnResize() protected method

protected OnResize ( ResizeEventArgs e ) : void
e ResizeEventArgs
return void

OnResizing() protected method

protected OnResizing ( ResizeEventArgs e ) : void
e ResizeEventArgs
return void

OnSerializing() protected method

protected OnSerializing ( SerializeEventArgs e ) : void
e NClass.Core.SerializeEventArgs
return void

Paste() protected method

protected Paste ( IDiagram diagram, Size offset ) : Shape
diagram IDiagram
offset System.Drawing.Size
return Shape

Shape() protected method

/// is null. ///
protected Shape ( IEntity entity ) : System
entity IEntity
return System

ToString() public method

public ToString ( ) : string
return string

TransformRelativeToAbsolute() protected static method

protected static TransformRelativeToAbsolute ( Rectangle rectangle, float zoom, Point offset ) : Rectangle
rectangle System.Drawing.Rectangle
zoom float
offset Point
return System.Drawing.Rectangle

TrySelect() protected final method

protected final TrySelect ( RectangleF frame ) : bool
frame System.Drawing.RectangleF
return bool

Property Details

borderDashPattern protected_oe static_oe property

protected static float[] borderDashPattern
return float[]

defaultMinSize protected_oe static_oe property

protected static Size,System.Drawing defaultMinSize
return System.Drawing.Size

shadowBrush protected_oe static_oe property

protected static SolidBrush,System.Drawing shadowBrush
return System.Drawing.SolidBrush