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

Class LayerImpl

    • Constructor Detail

      • LayerImpl

        public LayerImpl()
    • 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
      • getShortId

        public java.lang.String getShortId()
        Description copied from interface: LayerEx
        Returns the short id of this layer. The short 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 but not include the root plot.
        Specified by:
        getShortId in interface LayerEx
        Returns:
        the short id of this layer.
      • 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
      • getMooringMap

        public java.util.Map<Element,Element> getMooringMap()
        Description copied from interface: ComponentEx
        Returns a map to tell why this component cannot be removed from its container. The key is the moored element, required by its value.
        Specified by:
        getMooringMap in interface ComponentEx
        Overrides:
        getMooringMap in class ComponentImpl
        Returns:
        a map. The key is the element required by its value.
      • getLocation

        public java.awt.geom.Point2D getLocation()
        Description copied from interface: PComponent
        Returns the location of this component.
        Specified by:
        getLocation in interface PComponent
        Returns:
        the base point in its parent's paper coordinate space
      • getSize

        public java.awt.geom.Dimension2D getSize()
        Description copied from interface: PComponent
        Returns the paper size of this component.
        Specified by:
        getSize in interface PComponent
        Returns:
      • getPaperTransform

        public PaperTransform getPaperTransform()
        Description copied from interface: PComponent
        Returns the paper transform of this component, which can be used to convert between device coordinate and paper coordinate of this component. The original point of paper coordinate is the location point of this component.

        Returns null if the component is not added to a plot or not laid out

        Specified by:
        getPaperTransform in interface PComponent
        Overrides:
        getPaperTransform in class ComponentImpl
        Returns:
        the paper transform of this component
      • getComponents

        public ComponentEx[] getComponents()
        Description copied from interface: ContainerEx
        Returns the components in this container.
        Specified by:
        getComponents in interface ContainerEx
        Returns:
        an array of sub-components
      • getGraph

        public Graph getGraph(int index)
        Description copied from interface: Layer
        Returns the graph on the given index.
        Specified by:
        getGraph in interface Layer
        Returns:
        the graph on the given index
      • getGraphs

        public GraphEx[] getGraphs()
        Description copied from interface: Layer
        Returns all graph of this layer.
        Specified by:
        getGraphs in interface LayerEx
        Specified by:
        getGraphs in interface Layer
        Returns:
        all graph of this layer.
      • addGraph

        public void addGraph(Graph graph)
        Description copied from interface: Layer
        Adds a graph to this layer.
        Specified by:
        addGraph in interface Layer
        Parameters:
        graph - the graoh to be add.
      • removeGraph

        public void removeGraph(Graph graph)
        Description copied from interface: Layer
        Remove the graph from this layer.
        Specified by:
        removeGraph in interface Layer
        Parameters:
        graph - the graph to be removed
      • getAnnotation

        public Annotation getAnnotation(int idx)
        Description copied from interface: Layer
        Returns the annotation.
        Specified by:
        getAnnotation in interface Layer
        Returns:
        the annotation.
      • addAnnotation

        public void addAnnotation(Annotation annotation)
        Description copied from interface: Layer
        Add a new annotation to this layer.
        Specified by:
        addAnnotation in interface Layer
        Parameters:
        annotation - the annotation to be added
      • removeAnnotation

        public void removeAnnotation(Annotation annotation)
        Description copied from interface: Layer
        Remove the annotation from this layer.
        Specified by:
        removeAnnotation in interface Layer
        Parameters:
        annotation - the annotation to be removed
      • canContribute

        public boolean canContribute()
        Description copied from interface: ComponentEx
        Returns true if this component can contribute visible parts to plot rendering artifact when this component is visible. Subcomponents are not considered.
        Specified by:
        canContribute in interface ComponentEx
        Overrides:
        canContribute in class ComponentImpl
        Returns:
        the indicator
      • setXAxisTransform

        public void setXAxisTransform(AxisTransform axis)
        Description copied from interface: Layer
        Attach this layer to the given X axis. When adding a layer to a plot, the axis must exist in the destination environment, otherwise an exception will be thrown.
        Specified by:
        setXAxisTransform in interface Layer
        Parameters:
        axis - axis transform
      • setYAxisTransform

        public void setYAxisTransform(AxisTransform axis)
        Description copied from interface: Layer
        Attach this layer to the given Y axis. When adding a layer to a plot, the axis must exist in the destination environment, otherwise an exception will be thrown.
        Specified by:
        setYAxisTransform in interface Layer
        Parameters:
        axis - axis transform
      • setAxesTransform

        public void setAxesTransform(AxisTransform xaxis,
                                     AxisTransform yaxis)
        Description copied from interface: Layer
        Attach this layer to the given X/Y axis pair. When adding a layer to a plot, the X/Y axes must exist in the destination environment, otherwise an exception will be thrown.
        Specified by:
        setAxesTransform in interface Layer
        Parameters:
        xaxis - the x axis transform
        yaxis - the y axis transform
      • copyStructure

        public LayerEx 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 ComponentEx
        Specified by:
        copyStructure in interface ElementEx
        Overrides:
        copyStructure in class ComponentImpl
        Parameters:
        orig2copyMap - original element to copy map
        Returns:
        the structural copy of this element

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.