Class JDRectangular

java.lang.Object
fr.esrf.tangoatk.widget.util.jdraw.JDObject
fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
Direct Known Subclasses:
JDAxis, JDBar, JDEllipse, JDGroup, JDImage, JDLabel, JDRectangle, JDRotatableLabel, JDRoundRectangle, JDSlider, JDSwingObject, JDTitledRect

public abstract class JDRectangular extends JDObject
JDraw Rectanglar graphic object (All object having a rectangular sizing behavior)
  • Constructor Details

    • JDRectangular

      public JDRectangular()
  • Method Details

    • paint

      public void paint(JDrawEditor parent, Graphics g)
      Description copied from class: JDObject
      Paints this object.
      Specified by:
      paint in class JDObject
      Parameters:
      parent - JdrawEditor parent (Can be null except for JDSwingObject)
      g - the specified Graphics window
    • setLeft

      public void setLeft(int x)
    • getLeft

      public int getLeft()
    • setTop

      public void setTop(int y)
    • getTop

      public int getTop()
    • setRight

      public void setRight(int x)
    • getRight

      public int getRight()
    • setBottom

      public void setBottom(int y)
    • getBottom

      public int getBottom()
    • setWidth

      public void setWidth(int w)
    • getWidth

      public int getWidth()
    • setHeight

      public void setHeight(int h)
    • getHeight

      public int getHeight()
    • moveSummit

      public void moveSummit(int id, double x, double y)
      Description copied from class: JDObject
      Moves the specifed summit to the specified position. When using moveSummit() to animate objects, A call to refresh() of this object may be needed.
      Specified by:
      moveSummit in class JDObject
      Parameters:
      id - Summit index
      x - Absolute X position
      y - Absolute Y position
      See Also:
    • rotate90

      public void rotate90(double x, double y)
      Description copied from class: JDObject
      Rotate the object by 90deg. A call to refresh() is needed after transformation.
      Overrides:
      rotate90 in class JDObject
      Parameters:
      x - Rotation center horizontal pos
      y - Rotation center vertical pos
      See Also: