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

Class XYGraphImpl

    • Constructor Detail

      • XYGraphImpl

        public XYGraphImpl()
    • 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
      • getName

        public java.lang.String getName()
        Description copied from interface: XYGraph
        Returns the text displayed in the legend item
        Specified by:
        getName in interface XYGraph
        Returns:
        the text
      • setName

        public void setName(java.lang.String text)
        Description copied from interface: XYGraph
        Sets the text displayed in the legend item
        Specified by:
        setName in interface XYGraph
        Parameters:
        text - the text displayed in the legend item
      • getData

        public XYGraphData getData()
        Description copied from interface: Graph
        Returns the graph data that this graph will draw.
        Specified by:
        getData in interface Graph
        Specified by:
        getData in interface XYGraph
        Returns:
      • setSymbolVisible

        public void setSymbolVisible(boolean symbolVisible)
        Specified by:
        setSymbolVisible in interface XYGraph
      • setLineVisible

        public void setLineVisible(boolean lineVisible)
        Specified by:
        setLineVisible in interface XYGraph
      • setChartType

        public void setChartType(XYGraph.ChartType chartType)
        Sets the chart type.
        Specified by:
        setChartType in interface XYGraph
        Parameters:
        chartType - the chart type
      • getSymbolShape

        public SymbolShape getSymbolShape()
        Description copied from interface: XYGraph
        Returns the symbol shape.
        Specified by:
        getSymbolShape in interface XYGraph
        Returns:
        the symbol shape
      • setSymbolShape

        public void setSymbolShape(SymbolShape symbolShape)
        Description copied from interface: XYGraph
        Sets the specified symbol shape to be used.
        Specified by:
        setSymbolShape in interface XYGraph
        Parameters:
        symbolShape - the symbol shape
      • getSymbolSize

        public float getSymbolSize()
        Description copied from interface: XYGraph
        Returns the size of the symbol used
        Specified by:
        getSymbolSize in interface XYGraph
        Returns:
        the size of the symbol used
      • setSymbolSize

        public void setSymbolSize(float size)
        Description copied from interface: XYGraph
        Set the size of symbols
        Specified by:
        setSymbolSize in interface XYGraph
        Parameters:
        size - the size of symbols
      • getSymbolColor

        public java.awt.Color getSymbolColor()
        Description copied from interface: XYGraph
        Returns the overall color of the symbols.
        Specified by:
        getSymbolColor in interface XYGraph
        Returns:
        the Color of the symbols, can be null
      • setSymbolColor

        public void setSymbolColor(java.awt.Color color)
        Description copied from interface: XYGraph
        Set the overall color of the symbols. If the given color is null, the color of the symbols will be the same of the color of the line.
        Specified by:
        setSymbolColor in interface XYGraph
        Parameters:
        color - the color of the symbols
      • getIndSymbolColor

        public java.awt.Color getIndSymbolColor(int idx)
        Description copied from interface: XYGraph
        Returns the special color for data point idx. Or null if the data point use the overall symbol color.
        Specified by:
        getIndSymbolColor in interface XYGraph
        Parameters:
        idx - data point idx
        Returns:
        the color for data point idx.
      • setIndSymbolColor

        public void setIndSymbolColor(int idx,
                                      java.awt.Color color)
        Description copied from interface: XYGraph
        Sets special color to data point index. This method can be called many times to assign different color to the given index.
        Specified by:
        setIndSymbolColor in interface XYGraph
      • setIndSymbolColor

        public void setIndSymbolColor(int[] idxes,
                                      java.awt.Color color)
        Description copied from interface: XYGraph
        Sets special color to data point indexes. This method can be called many times to assign different color to the given indexes.
        Specified by:
        setIndSymbolColor in interface XYGraph
      • thisEffectiveColorChanged

        public void thisEffectiveColorChanged()
        Description copied from interface: ComponentEx
        Called when setColor() or parentEffectiveColorChanged() change the effective color of this component.
        Specified by:
        thisEffectiveColorChanged in interface ComponentEx
      • getLineStroke

        public java.awt.BasicStroke getLineStroke()
        Specified by:
        getLineStroke in interface XYGraph
      • setLineStroke

        public void setLineStroke(java.awt.BasicStroke stroke)
        Specified by:
        setLineStroke in interface XYGraph
      • setFillEnabled

        public void setFillEnabled(boolean fillEnabled)
        Specified by:
        setFillEnabled in interface XYGraph
      • getFillPaint

        public java.awt.Paint getFillPaint()
        Specified by:
        getFillPaint in interface XYGraph
      • setFillPaint

        public void setFillPaint(java.awt.Paint paint)
        Specified by:
        setFillPaint in interface XYGraph
      • getErrorbarCapSize

        public float getErrorbarCapSize()
        Description copied from interface: XYGraph
        Returns the errorbar cap size in pt. If the cap size is 0, no cap is drawn.
        Specified by:
        getErrorbarCapSize in interface XYGraph
        Returns:
        the errorbar cap size
      • setErrorbarCapSize

        public void setErrorbarCapSize(float size)
        Description copied from interface: XYGraph
        Sets the errorbar cap size in pt. The default cap size is 0, means no cap is drawn.
        Specified by:
        setErrorbarCapSize in interface XYGraph
        Parameters:
        size - the errorbar cap size
      • copyStructure

        public ComponentEx 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
      • 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 ComponentImpl
        Parameters:
        src - the src
      • draw

        public void draw(java.awt.Graphics2D graphics)
        Description copied from interface: ComponentEx
        Draw this component only. All its children is not drawn.
        Specified by:
        draw in interface ComponentEx
        Parameters:
        graphics - to the Graphics2D drawing. The transformation of this component is not applied.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.