Package chemaxon.marvin.space.monitor
Class Control
- java.lang.Object
-
- chemaxon.marvin.space.monitor.Control
-
- Direct Known Subclasses:
DihedralControl
,GlobalLocationControl
,GlobalOrientationControl
,LocalLocationControl
,LocalOrientationControl
,ResizeControl
@PublicAPI public abstract class Control extends Object
Transformation on aGraphicComponent
that changes the coordinates, and not just the view.- Since:
- Marvin 4.0.2
-
-
Field Summary
Fields Modifier and Type Field Description protected static float[]
ambient
protected float[]
center
protected GraphicComponent
component
protected static int
DEFAULT_SIZE
protected static float[]
diffuse
protected Monitor
monitor
protected static float
shininess
protected int
size
protected static float[]
specular
protected double
x
protected double
y
-
Constructor Summary
Constructors Constructor Description Control()
Creates a new instance of Control
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
control(int z)
Does control on z event.abstract void
control(int x, int y)
Does control on x-y events.float[]
getCenter()
Returns the center of the transformation.abstract byte[]
getColor()
Returns the color of the control.protected void
projectVector(float[] vector3)
void
setCenter(float[] center)
Sets the center of the transformation.void
setComponent(GraphicComponent gc)
Sets the component to the transformation.
-
-
-
Field Detail
-
DEFAULT_SIZE
protected static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
-
ambient
protected static float[] ambient
-
diffuse
protected static float[] diffuse
-
specular
protected static float[] specular
-
shininess
protected static float shininess
-
x
protected double x
-
y
protected double y
-
size
protected int size
-
center
protected float[] center
-
monitor
protected Monitor monitor
-
component
protected GraphicComponent component
-
-
Method Detail
-
getCenter
public float[] getCenter()
Returns the center of the transformation.
-
setCenter
public void setCenter(float[] center)
Sets the center of the transformation.
-
setComponent
public void setComponent(GraphicComponent gc)
Sets the component to the transformation.
-
control
public abstract void control(int x, int y)
Does control on x-y events. E.g. translation on x-y axes.
-
control
public abstract void control(int z)
Does control on z event. E.g. translation on z axis.
-
projectVector
protected void projectVector(float[] vector3)
-
getColor
public abstract byte[] getColor()
Returns the color of the control.
-
-