com.vm.visual.objects
Class VM3DShape

java.lang.Object
  |
  +--com.vm.mind.MIAnything
        |
        +--com.vm.visual.objects.VM3DObject
              |
              +--com.vm.visual.objects.VM3DShape
All Implemented Interfaces:
ORObject

public class VM3DShape
extends VM3DObject


Field Summary
protected  java.awt.Color fill_color
           
protected  java.awt.Color line_color
           
 
Fields inherited from class com.vm.mind.MIAnything
IS_ERROR, IS_LINK, IS_LIST, IS_SHARED, IS_SYSTEM, IS_VALUE, m_valid
 
Constructor Summary
VM3DShape()
           
VM3DShape(int[][] geom, java.awt.Color fill, java.awt.Color line)
           
 
Method Summary
 float[] center3D()
           
 VM3DObject[] children()
           
protected  java.lang.String encodeGeometry()
           
 java.lang.String getString(java.lang.String i_name)
          Returns string presentation of property by name if property is not Thing or list
 int getType(java.lang.String i_name)
          Returns bitmask of property type.
 void paintAttributes(VMPanel panel, java.awt.Graphics graphics)
           
 void paintObject(VMPanel panel, java.awt.Graphics graphics)
           
protected  boolean parseGeometry(java.lang.String s)
           
 int priority()
          used when two depths are the same, e.g. node=0 > link=1
 boolean setString(java.lang.String i_name, java.lang.String i_string)
          Assigns string value to property by name if property is not Thing or list
 java.lang.String toString()
           
 
Methods inherited from class com.vm.mind.MIAnything
delThing, dump, fullDump, getCount, getKey, getList, getName, getName, getQuery, getThing, getType, is, load, message, SetString, setThing, SetThing, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fill_color

protected java.awt.Color fill_color

line_color

protected java.awt.Color line_color
Constructor Detail

VM3DShape

public VM3DShape()

VM3DShape

public VM3DShape(int[][] geom,
                 java.awt.Color fill,
                 java.awt.Color line)
Method Detail

getString

public java.lang.String getString(java.lang.String i_name)
Description copied from interface: ORObject
Returns string presentation of property by name if property is not Thing or list
Overrides:
getString in class MIAnything
Following copied from class: com.vm.mind.MIAnything
See Also:
ORObject

getType

public int getType(java.lang.String i_name)
Description copied from interface: ORObject
Returns bitmask of property type. Possible values are IS_VALUE, IS_LINK, IS_LINK|IS_LIST
Overrides:
getType in class MIAnything
Following copied from class: com.vm.mind.MIAnything
See Also:
ORObject

setString

public boolean setString(java.lang.String i_name,
                         java.lang.String i_string)
Description copied from interface: ORObject
Assigns string value to property by name if property is not Thing or list
Overrides:
setString in class MIAnything
Following copied from class: com.vm.mind.MIAnything
See Also:
ORObject

encodeGeometry

protected java.lang.String encodeGeometry()

parseGeometry

protected boolean parseGeometry(java.lang.String s)

toString

public java.lang.String toString()
Overrides:
toString in class MIAnything
Following copied from class: com.vm.mind.MIAnything
See Also:
Object, ORObject

paintAttributes

public void paintAttributes(VMPanel panel,
                            java.awt.Graphics graphics)
Overrides:
paintAttributes in class VM3DObject

paintObject

public void paintObject(VMPanel panel,
                        java.awt.Graphics graphics)
Overrides:
paintObject in class VM3DObject

center3D

public float[] center3D()
Overrides:
center3D in class VM3DObject

children

public VM3DObject[] children()
Overrides:
children in class VM3DObject

priority

public int priority()
Description copied from class: VM3DObject
used when two depths are the same, e.g. node=0 > link=1
Overrides:
priority in class VM3DObject