Documentation of 'org.scilab.forge.jlatexmath.Box' Java class
Box
org.scilab.forge.jlatexmath

Class Box

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static boolean DEBUG 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(Box b)
      Inserts the given box at the end of the list of child boxes.
      void add(int pos, Box b)
      Inserts the given box at the given position in the list of child boxes.
      abstract void draw(java.awt.Graphics2D g2, float x, float y)
      Paints this box at the given coordinates using the given graphics context.
      float getDepth()
      Get the depth of this box.
      Box getElderParent() 
      float getHeight()
      Get the height of this box.
      abstract int getLastFontId()
      Get the id of the font that will be used the last when this box will be painted.
      Box getParent() 
      float getShift()
      Get the shift amount for this box.
      float getWidth()
      Get the width of this box.
      void negWidth() 
      void setDepth(float d)
      Set the depth for this box.
      void setElderParent(Box elderParent) 
      void setHeight(float h)
      Set the height for this box.
      void setParent(Box parent) 
      void setShift(float s)
      Set the shift amount for this box.
      void setWidth(float w)
      Set the width for this box.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEBUG

        public static boolean DEBUG
    • Method Detail

      • add

        public void add(Box b)
        Inserts the given box at the end of the list of child boxes.
        Parameters:
        b - the box to be inserted
      • add

        public void add(int pos,
                        Box b)
        Inserts the given box at the given position in the list of child boxes.
        Parameters:
        pos - the position at which to insert the given box
        b - the box to be inserted
      • setParent

        public void setParent(Box parent)
      • getParent

        public Box getParent()
      • setElderParent

        public void setElderParent(Box elderParent)
      • getElderParent

        public Box getElderParent()
      • getWidth

        public float getWidth()
        Get the width of this box.
        Returns:
        the width of this box
      • negWidth

        public void negWidth()
      • getHeight

        public float getHeight()
        Get the height of this box.
        Returns:
        the height of this box
      • getDepth

        public float getDepth()
        Get the depth of this box.
        Returns:
        the depth of this box
      • getShift

        public float getShift()
        Get the shift amount for this box.
        Returns:
        the shift amount
      • setWidth

        public void setWidth(float w)
        Set the width for this box.
        Parameters:
        w - the width
      • setDepth

        public void setDepth(float d)
        Set the depth for this box.
        Parameters:
        d - the depth
      • setHeight

        public void setHeight(float h)
        Set the height for this box.
        Parameters:
        h - the height
      • setShift

        public void setShift(float s)
        Set the shift amount for this box.
        Parameters:
        s - the shift amount
      • draw

        public abstract void draw(java.awt.Graphics2D g2,
                                  float x,
                                  float y)
        Paints this box at the given coordinates using the given graphics context.
        Parameters:
        g2 - the graphics (2D) context to use for painting
        x - the x-coordinate
        y - the y-coordinate
      • getLastFontId

        public abstract int getLastFontId()
        Get the id of the font that will be used the last when this box will be painted.
        Returns:
        the id of the last font that will be used.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.