Module rgg
Package de.grogra.rgg

Class Cell

All Implemented Interfaces:
Transformation, Manageable, PersistenceCapable, Shareable, UserFields, XObject, EventListener, Map, Serializable, EventListener

public class Cell extends Node implements EventListener, Transformation
See Also:
  • Field Details

  • Constructor Details

    • Cell

      public Cell()
    • Cell

      public Cell(float x, float y, float z, int state)
    • Cell

      public Cell(double x, double y, double z, float l, float r, boolean transform, int state)
  • Method Details

    • getShader

      public Shader getShader()
    • getBoolean

      protected boolean getBoolean(BooleanAttribute a, GraphState gs)
      Overrides:
      getBoolean in class Node
    • getObject

      protected Object getObject(ObjectAttribute a, Object placeIn, GraphState gs)
      Overrides:
      getObject in class Node
    • getX

      public double getX()
    • setX

      public void setX(double x)
    • getY

      public double getY()
    • setY

      public void setY(double y)
    • getZ

      public double getZ()
    • setZ

      public void setZ(double z)
    • getPosition

      public TVector3d getPosition()
    • distance

      public double distance(Cell c)
    • distanceLinf

      public double distanceLinf(Cell c)
    • preTransform

      public void preTransform(Object object, boolean asNode, Matrix4d in, Matrix4d out, GraphState gs)
      Description copied from interface: Transformation
      Implements the change from the parent's post-transformation in to the object's transformation out.
      Specified by:
      preTransform in interface Transformation
      Parameters:
      object - the object for which the transformation is computed
      asNode - is object a node or an edge?
      in - the post-transformation of the object's parent
      out - the tranformation of the object to be computed
      gs - the graph state in which the computation has to be done
    • postTransform

      public void postTransform(Object object, boolean asNode, Matrix4d in, Matrix4d out, Matrix4d pre, GraphState gs)
      Description copied from interface: Transformation
      Implements the change from object's transformation in to the object's post-transformation out.
      Specified by:
      postTransform in interface Transformation
      Parameters:
      object - the object for which the transformation is computed
      asNode - is object a node or an edge?
      in - the transformation of the object
      out - the post-tranformation of the object to be computed
      pre - the post-transformation of the object's parent
      gs - the graph state in which the computation has to be done
    • eventOccured

      public void eventOccured(EventObject event)
      Description copied from interface: EventListener
      This method is invoked on registered event listeners when event has occured. This general listener interface does not restrict the possible kinds of events. Concrete sources of events should specify which events they may fire.
      Specified by:
      eventOccured in interface EventListener
      Parameters:
      event - an event
    • toString

      public String toString()
      Overrides:
      toString in class Node
    • getSymbolColor

      public int getSymbolColor()
      Overrides:
      getSymbolColor in class Node
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Node
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Node
      Returns:
      new instance of class of this node
    • getState

      public int getState()
    • setState

      public void setState(int value)
    • getRadius

      public float getRadius()
    • setRadius

      public void setRadius(float value)
    • getLength

      public float getLength()
    • setLength

      public void setLength(float value)
    • setShader

      public void setShader(Shader value)
    • isTransforming

      public boolean isTransforming()
    • setTransforming

      public void setTransforming(boolean v)