Package chemaxon.marvin.space.monitor
Class ResizeControl
java.lang.Object
chemaxon.marvin.space.monitor.Control
chemaxon.marvin.space.monitor.ResizeControl
This control is to change the size of a
GraphicComponent
by changing the coordinates.- Since:
- Marvin 4.0.2
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
ResizeControl
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. -
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. -
getColor
public byte[] getColor()Returns the color of the control.
-