Class BarPaintlet

    • Field Detail

      • m_PaintAll

        protected boolean m_PaintAll
        whether to paint all the data points (no optimization).
      • m_Width

        protected int m_Width
        the width of the bar.
      • m_Offset

        protected int m_Offset
        the offset factor.
      • m_CurrentOffset

        protected int m_CurrentOffset
        the current offset.
    • Constructor Detail

      • BarPaintlet

        public BarPaintlet()
    • Method Detail

      • setWidth

        public void setWidth​(int value)
        Sets the width of the bar.
        Parameters:
        value - width in pixel
      • getWidth

        public int getWidth()
        Returns the width of the bar.
        Returns:
        width in pixel
      • widthTipText

        public String widthTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setOffset

        public void setOffset​(int value)
        Sets the X offset for additional sequences.
        Parameters:
        value - offset in pixel
      • getOffset

        public int getOffset()
        Returns the X offset for additional sequences.
        Returns:
        offset in pixel
      • offsetTipText

        public String offsetTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setPaintAll

        public void setPaintAll​(boolean value)
        Sets whether to draw markers or not.
        Parameters:
        value - if true then marker shapes won't be drawn
      • getPaintAll

        public boolean getPaintAll()
        Returns whether marker shapes are disabled.
        Returns:
        true if marker shapes are disabled
      • paintAllTipText

        public String paintAllTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doDrawCustomData

        protected void doDrawCustomData​(Graphics g,
                                        PaintEvent.PaintMoment moment,
                                        XYSequence data,
                                        Color color)
        Draws the data with the given color.
        Parameters:
        g - the graphics context
        moment - the paint moment
        data - the data to draw
        color - the color to draw in