Click here to Skip to main content
15,893,904 members
Articles / Programming Languages / Visual Basic

Mathemathics Framework

Rate me:
Please Sign up or sign in to vote.
4.76/5 (56 votes)
16 Sep 2008CPOL6 min read 75.4K   6.2K   171  
.NET Mathematical Framework
Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports System.ComponentModel
Imports BV.Math
Imports BV.Core
Imports MidRange
Imports IMidRange

'propiedades que se muestran de un Frame
Public Class FrameAxisCplxProperties

    Protected intFrame As FrameAxisXY
    Protected intVisor As VisorBase
    Protected intDescription As String

    Public Sub New(ByVal frmAxs As FrameAxisXY, ByVal Visor As VisorBase, ByVal Description As String)
        Me.intDescription = Description
        Me.intFrame = frmAxs
        Me.intVisor = Visor
    End Sub

    <Category("Description")> _
    Public ReadOnly Property Description() As String
        Get
            Return Me.intDescription
        End Get
    End Property

    <Category("Behaviour")> _
    Public Overridable Property AutoScale() As Boolean  'Implements IAutoScalable.AutoScale
        Get
            Return intFrame.AutoScale
        End Get
        Set(ByVal Value As Boolean)
            If intFrame.AutoScale <> Value Then
                intFrame.AutoScale = Value
                intVisor.Refresh()
            End If
        End Set
    End Property

    <Category("Appearance")> _
    Public Overridable Property UnitIsVisible() As Boolean
        Get
            Return intFrame.UnitsVisible
        End Get
        Set(ByVal Value As Boolean)
            If intFrame.UnitsVisible <> Value Then
                intFrame.UnitsVisible = Value
                intVisor.Refresh()
            End If
        End Set
    End Property

    <Category("Appearance")> _
    Public Overridable Property LabelIsVisible() As Boolean
        Get
            Return intFrame.LabelIsVisible
        End Get
        Set(ByVal Value As Boolean)
            If intFrame.LabelIsVisible <> Value Then
                intFrame.LabelIsVisible = Value
                intVisor.Refresh()
            End If
        End Set
    End Property

    <Category("Appearance")> _
    Public Overridable Property AxisLabel() As String
        Get
            Return intFrame.AxisLabel
        End Get
        Set(ByVal Value As String)
            If intFrame.AxisLabel <> Value Then
                intFrame.AxisLabel = Value
                intVisor.Refresh()
            End If
        End Set
    End Property

    <Category("Appearance")> _
    Public Overridable Property AxisUnit() As String
        Get
            Return intFrame.AxisUnit
        End Get
        Set(ByVal Value As String)
            If intFrame.AxisUnit <> Value Then
                intFrame.AxisUnit = Value
                intVisor.Refresh()
            End If
        End Set
    End Property

    <Category("Scale")> _
    Public Overridable Property Range() As RangeF
        Get
            Return intFrame.Range
        End Get
        Set(ByVal Value As RangeF)
            If Not intFrame.Range.Equals(Value) Then
                intFrame.Range = Value
                intVisor.Refresh()
            End If
        End Set
    End Property


End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer Universidad Tecnológica Nacional
Argentina Argentina
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions