chemaxon.marvin.space.monitor
Class Control

java.lang.Object
  extended by chemaxon.marvin.space.monitor.Control
Direct Known Subclasses:
DihedralControl, GlobalLocationControl, GlobalOrientationControl, LocalLocationControl, LocalOrientationControl, ResizeControl

public abstract class Control
extends java.lang.Object

Transformation on a GraphicComponent that changes the coordinates, and not just the view.

Since:
Marvin 4.0.2
Version:
MarvinSpace 1.0
Author:
Judit Papp

Field Summary
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
Control()
          Creates a new instance of Control
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

Control

public Control()
Creates a new instance of Control

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.