Documentation of 'org.jplot2d.element.impl.AxisTransformImpl' Java class
AxisTransformImpl
org.jplot2d.element.impl

Class AxisTransformImpl

    • Field Detail

      • DEFAULT_MARGIN_FACTOR

        public static final double DEFAULT_MARGIN_FACTOR
        The default margin factor (used for both lower and upper margins)
        See Also:
        Constant Field Values
    • Constructor Detail

      • AxisTransformImpl

        public AxisTransformImpl()
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: Element
        Returns the id string of this element
        Specified by:
        getId in interface Element
        Returns:
        the id string
      • getFullId

        public java.lang.String getFullId()
        Description copied from interface: ElementEx
        Returns the full id of this component. The full id is composed of series of ids concatenated with dots. The 1st id is the id of this element, the 2nd id is the id of the parent of this element, etc, until the root plot.
        Specified by:
        getFullId in interface ElementEx
        Overrides:
        getFullId in class ElementImpl
        Returns:
        the full id of this component
      • getInvokeStepFormParent

        public InvokeStep getInvokeStepFormParent()
        Description copied from interface: ElementEx
        Return the invoke step to get this object from its parent.
        Specified by:
        getInvokeStepFormParent in interface ElementEx
        Returns:
        the invoke step
      • getPrim

        public ElementEx getPrim()
        Description copied from interface: Joinable
        Returns the primary referencer.
        Specified by:
        getPrim in interface Joinable
        Returns:
        the primary referencer
      • notify

        public void notify(Notice msg)
        Description copied from interface: ElementEx
        Element call this method to notify message to its parent.
        Specified by:
        notify in interface ElementEx
        Overrides:
        notify in class ElementImpl
        Parameters:
        msg - the notice message
      • isInverted

        public boolean isInverted()
        Description copied from interface: AxisTransform
        Returns true if this AxisTransform is inverted.
        Specified by:
        isInverted in interface AxisTransform
        Returns:
        true if this AxisTransform is inverted
      • setInverted

        public void setInverted(boolean flag)
        Description copied from interface: AxisTransform
        Sets false to make this AxisTransform have "normal" displaying, or true to have "inverted" displaying.
        Specified by:
        setInverted in interface AxisTransform
        Parameters:
        flag - if flag is true this AxisTransform is inverted, if flag is false this AxisTransform is normal
      • setAutoMargin

        public void setAutoMargin(boolean autoMargin)
        Description copied from interface: AxisTransform
        Controls if the the margin is extended to an axis major tick automatically.
        Specified by:
        setAutoMargin in interface AxisTransform
        Parameters:
        autoMargin - the switch
      • getMarginFactor

        public double getMarginFactor()
        Description copied from interface: AxisTransform
        Returns the factor that the margin will be appended to range
        Specified by:
        getMarginFactor in interface AxisTransform
        Returns:
        the margin factor
      • setMarginFactor

        public void setMarginFactor(double factor)
        Description copied from interface: AxisTransform
        Sets the factor that the margin will be appended to range
        Specified by:
        setMarginFactor in interface AxisTransform
        Parameters:
        factor - the margin factor
      • setType

        public void setType(AxisType type)
        Description copied from interface: AxisTransform
        Set the type of the axis. An axis type can only be changed when it dosn't lock with other axes.
        Specified by:
        setType in interface AxisTransform
        Parameters:
        type - the axis type
      • setLockGroup

        public void setLockGroup(AxisRangeLockGroup group)
        Description copied from interface: AxisTransform
        Join an axis lock group. The lock group must exist in the same environment, otherwise an exception will be thrown.
        Specified by:
        setLockGroup in interface AxisTransform
        Parameters:
        group - the lock group to join to.
      • addLayer

        public void addLayer(LayerEx layer)
        Description copied from interface: AxisTransformEx
        Called when a layer attach to this viewport axis
        Specified by:
        addLayer in interface AxisTransformEx
        Parameters:
        layer - the layer
      • removeLayer

        public void removeLayer(LayerEx layer)
        Description copied from interface: AxisTransformEx
        Called when a layer detach from this viewport axis
        Specified by:
        removeLayer in interface AxisTransformEx
        Parameters:
        layer - the layer
      • getCoreRange

        public Range getCoreRange()
        Description copied from interface: AxisTransform
        Return the core range of the AxisTransform. The returned range will be negative (start > end) if this AxisTransform is inverted.
        Specified by:
        getCoreRange in interface AxisTransform
        Returns:
        the core range
      • setCoreRange

        public void setCoreRange(Range crange)
        Description copied from interface: AxisTransform
        Set the core range of the AxisTransform. The range will expand according to the settings of autoMargin and marginFactor, and derive an actual range. The given range can be positive (start < end) or negative (start > end). It has not effect on the inverted property. All locked axes will follow the change of this axis.

        If user want set actual range directly by AxisTransform.setRange(Range), The coreRange will be set to null automatically.

        Specified by:
        setCoreRange in interface AxisTransform
        Parameters:
        crange - the core range to be set
      • getRange

        public Range getRange()
        Description copied from interface: AxisTransform
        Return the range of the AxisTransform. The returned range will be negative (start > end) if this AxisTransform is inverted.
        Specified by:
        getRange in interface AxisTransform
        Returns:
        the actual range displayed
      • setRange

        public void setRange(Range urange)
        Description copied from interface: AxisTransform
        Set the actual range displayed in the AxisTransform. The given range can be positive (start < end) or negative (start > end). It has not effect on the inverted property. All locked axes will follow the change of this axis.

        The coreRange is set to null after calling this method.

        Specified by:
        setRange in interface AxisTransform
        Parameters:
        urange - the actual range to be set.
      • copyStructure

        public AxisTransformEx copyStructure(java.util.Map<ElementEx,ElementEx> orig2copyMap)
        Description copied from interface: ElementEx
        Create a structural copy of this element and put them into orig2copyMap. All properties are not copied. The parent of the copy are not set by this method.
        Specified by:
        copyStructure in interface ElementEx
        Overrides:
        copyStructure in class ElementImpl
        Parameters:
        orig2copyMap - original element to copy map
        Returns:
        the structural copy of this element
      • copyFrom

        public void copyFrom(ElementEx src)
        Description copied from interface: ElementEx
        Copies all properties from given src to this element. Notice properties of sub-elements are not copied over.
        Specified by:
        copyFrom in interface ElementEx
        Overrides:
        copyFrom in class ElementImpl
        Parameters:
        src - the src

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.