GHMargin
jhplot.gui

Class GHMargin

    • Constructor Detail

      • GHMargin

        public GHMargin(GHPanel w,        String wname)
        Main class to create global margin
        Parameters:
        w - GHpanel
        wname - Name of this margin
    • Method Detail

      • setDefault

        public void setDefault()
        Set the default location
      • setDefault

        public void setDefault(Object com)
        Set the default location
      • disposeMe

        public void disposeMe()
        Dispose this canvas
      • setRotation

        public void setRotation(int rotation)
        Set the rotation angle of the text in degrees. Only 0, -90 and 90 are supported
        Parameters:
        rotation - Rotation of the text (0, -90, 90)
      • getRotation

        public int getRotation()
        Get the rotation angle of the text in degrees. Only 0, -90 and 90 are supported.
        Returns:
        Rotation of the text (0, -90, 90)
      • setString

        public void setString(String sname,             Font f,             Color c,             Dimension dd)
        Sets the string.
        Parameters:
        sname - Text of the string
        f - Font used
        c - Color used
      • setGFont

        public void setGFont(Font f)
        Set the font.
        Parameters:
        f - Font
      • setGColor

        public void setGColor(Color c)
        Set the color on this panel.
        Parameters:
        c - Color of the panel
      • getGColor

        public Color getGColor()
        Get the color of this panel
        Returns:
        Color
      • getGFont

        public Font getGFont()
        Get the font of the text
        Returns:
        Font Font of the text
      • getGBackground

        public Color getGBackground()
        Get the color of background
        Returns:
        Color background color
      • getString

        public String getString()
        Get the title of this panel
        Returns:
        title of this panel
      • showBorder

        public void showBorder(boolean show)
        Show or not the blue borders during editing.
        Parameters:
        show - true if shown
      • isBorder

        public boolean isBorder()
        Is boarder shown?
        Returns:
        true if shown
      • showBorderNoUpdate

        public void showBorderNoUpdate(boolean show)
        Show or not the blue borders during editing. UI is not updated.
        Parameters:
        show - true if shown
      • setString

        public void setString(String sname)
        Set the text on this panel
        Parameters:
        sname - Text
      • getMFont

        public Font getMFont()
        Get the font on this panel
        Returns:
        Font
      • getMColor

        public Color getMColor()
        Get the text color
        Returns:
        color margin color
      • setGBackground

        public void setGBackground(Color c)
        Set the background of this panel
        Parameters:
        c - Color of this panel
      • setGRecBackground

        public void setGRecBackground(Color c)
        Set the background for rectangle with the text
        Parameters:
        c - Color of the rectangle
      • getJPanel

        public JPanel getJPanel()
        Return JPanel of this margin
        Returns:
        JPanel this panel
      • setSizeMargin

        public void setSizeMargin(int x,                 int y)
        Set size of this margin panel
        Parameters:
        x - size in X
        y - size in Y
      • getSizeX

        public int getSizeX()
        Get the size of this margin panel in X
        Returns:
        Size of the panel in X
      • getSizeY

        public int getSizeY()
        Get the size of this margin in Y
        Returns:
        size in Y
      • getStringPositionX

        public double getStringPositionX()
        Get the text position in X relative to widths
        Returns:
        position of text in X (from 0 to 1)
      • getStringPositionY

        public double getStringPositionY()
        Get the text position in Y relative to the frame height.
        Returns:
        position of text in Y (from 0 to 1)
      • setStringPositionX

        public void setStringPositionX(double x)
        Set the text position in X relative to the frame width
        Parameters:
        x - position of text in X (from 0 to 1)
      • setStringPositionY

        public void setStringPositionY(double y)
        Set the text position in Y relative to the frame height.
        Parameters:
        y - position of text in Y (from 0 to 1)

SCaVis 1.8 © jWork.org