Class Graphic

  • All Implemented Interfaces:
    java.io.Serializable

    public class Graphic
    extends java.lang.Object
    implements java.io.Serializable
    Graphic definition
    See Also:
    Serialized Form
    • Constructor Detail

      • Graphic

        public Graphic​(ObjectDB object,
                       java.lang.String name,
                       java.lang.String display,
                       int width,
                       int height,
                       boolean visible,
                       boolean grantable)
        Constructor
        Parameters:
        object - Object
        name - Graph name
        display - Label
        width - Width in pixels
        height - Height in pixels
        visible - Visible ?
        grantable - Granted to groups ?
    • Method Detail

      • setVisible

        public void setVisible​(boolean visible)
      • isVisible

        public boolean isVisible()
        Visible and not empty ?
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getGraphicAxisType

        public java.util.Map<java.lang.Integer,​java.lang.String> getGraphicAxisType()
        Graphic Values (index and chart type)
      • resetGraphicAxisType

        public void resetGraphicAxisType()
      • setGraphicAxisType

        public void setGraphicAxisType​(int index,
                                       java.lang.String type)
      • setGraphicType

        public void setGraphicType​(java.lang.String type)
      • getGraphicType

        public java.lang.String getGraphicType()
      • convertSerieToType

        public static char convertSerieToType​(java.lang.String serieType,
                                              char defaultType)
        Convert Serie to Type of axis
      • convertTypeToSerie

        public static java.lang.String convertTypeToSerie​(char graphicType,
                                                          java.lang.String defaultType)
        Convert Type of axis to Serie
      • getChartType

        public char getChartType()
        Chart main type
      • getImageName

        public java.lang.String getImageName()
        Get image name
      • isGraphicSplitted

        public boolean isGraphicSplitted()
        Split the graphic ?
      • setGraphicSplitted

        public void setGraphicSplitted​(boolean b)
      • getObject

        public ObjectDB getObject()
      • getName

        public java.lang.String getName()
      • getDisplay

        public java.lang.String getDisplay()
      • getLabel

        public java.lang.String getLabel()
      • isGrantable

        public boolean isGrantable()
        Grantable ?
      • setGrantable

        public void setGrantable​(boolean b)
      • getGrantedGroups

        public java.util.List<java.lang.String> getGrantedGroups()
        Granted groups ?
      • addGrantedGroup

        public void addGrantedGroup​(java.lang.String group)
      • removeGrantedGroup

        public void removeGrantedGroup​(java.lang.String group)
      • isGranted

        public boolean isGranted​(Grant g)
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • getYmin

        public double getYmin()
      • getYmax

        public double getYmax()
      • setWidth

        public void setWidth​(int w)
      • setHeight

        public void setHeight​(int h)
      • addAxis

        public Graphic.Axis addAxis​(java.lang.String key,
                                    char type,
                                    char method,
                                    char chart,
                                    java.lang.String label,
                                    java.lang.String field)
        Add axis to the graph
        Parameters:
        key - Axis key
        type - Type 'X' or 'Y'
        method - Method
        chart - Chart type
        label - Axis name
        field - Field name
      • calculate

        public void calculate​(ObjectDB obj)
        Prepare the data
        Parameters:
        obj - Object