Class ResizeControl

java.lang.Object
chemaxon.marvin.space.monitor.Control
chemaxon.marvin.space.monitor.ResizeControl

@PublicAPI public class ResizeControl extends Control
This control is to change the size of a GraphicComponent by changing the coordinates.
Since:
Marvin 4.0.2
  • Constructor Details

    • ResizeControl

      public ResizeControl(Monitor monitor)
      Creates a new instance of ResizeControl
  • Method Details

    • control

      public void control(int z)
      Resizes the component in z direction uniformly which means that it will either increase or decrease its size with one unit or do nothing if the given value was positive, negative or zero. The component itself has to decide how to define the unit and how much will the resize effect modify its size.
      Specified by:
      control in class Control
    • control

      public void control(int x, int y)
      Resizes the component in x, y direction uniformly which means that it will either increase or decrease its size with one unit or do nothing if the given value was positive, negative or zero. The component itself has to decide how to define the unit and how much will the resize effect modify its size.
      Specified by:
      control in class Control
    • getColor

      public byte[] getColor()
      Returns the color of the control.
      Specified by:
      getColor in class Control