Package chemaxon.marvin.space.monitor
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 aGraphicComponent
by changing the coordinates.- Since:
- Marvin 4.0.2
-
-
Constructor Summary
Constructors Constructor Description ResizeControl(Monitor monitor)
Creates a new instance of ResizeControl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.byte[]
getColor()
Returns the color of the control.-
Methods inherited from class chemaxon.marvin.space.monitor.Control
getCenter, projectVector, setCenter, setComponent
-
-
-
-
Constructor Detail
-
ResizeControl
public ResizeControl(Monitor monitor)
Creates a new instance of ResizeControl
-
-
Method Detail
-
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.
-
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.
-
-