com.vm.visual
Class VMNode
java.lang.Object
|
+--com.vm.mind.MIAnything
|
+--com.vm.visual.objects.VM3DObject
|
+--com.vm.visual.VMPoint
|
+--com.vm.visual.VMNode
- All Implemented Interfaces:
- ORObject
- Direct Known Subclasses:
- VMBar, VMCube
- public class VMNode
- extends VMPoint
Method Summary |
boolean |
at(int x,
int y,
java.awt.Panel i_panel,
java.awt.FontMetrics i_fm)
|
void |
clone(MIAnything a)
|
java.awt.Color |
getColor()
|
java.awt.Image |
getImage()
|
java.lang.String |
getString(java.lang.String i_name)
Returns string presentation of property by name if property is not Thing or list |
MIThing |
getThing()
|
MIThing |
getThing(java.lang.String i_name)
Returns Thing presentation of property by name if property is Thing
but not a list of Things |
int |
getType(java.lang.String i_name)
Returns bitmask of property type. |
MIAnything |
newInstance(MIWorld i_world)
|
void |
paintAttributes(VMPanel panel,
java.awt.Graphics graphics)
|
void |
paintObject(VMPanel panel,
java.awt.Graphics graphics)
|
void |
setColor(java.awt.Color i_c)
|
void |
setImage(java.awt.Image img)
|
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 |
boolean |
setThing(java.lang.String i_name,
MIThing i_thing)
Assigns Thing value to property by name if property
Thing or list. |
java.lang.String |
toString()
|
Methods inherited from class com.vm.mind.MIAnything |
delThing, dump, fullDump, getCount, getKey, getList, getName, getName, getQuery, getType, is, load, message, SetString, SetThing, valid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_thing
protected MIAnything m_thing
m_color
protected int m_color
VMNode
public VMNode(MIWorld i_world)
newInstance
public MIAnything newInstance(MIWorld i_world)
clone
public void clone(MIAnything a)
- Overrides:
clone
in class VMPoint
toString
public java.lang.String toString()
- Overrides:
toString
in class MIAnything
- Following copied from class:
com.vm.mind.MIAnything
- See Also:
Object
,
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 VMPoint
- Following copied from class:
com.vm.mind.MIAnything
- See Also:
ORObject
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 VMPoint
- 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 VMPoint
- Following copied from class:
com.vm.mind.MIAnything
- See Also:
ORObject
getThing
public MIThing getThing(java.lang.String i_name)
- Description copied from interface:
ORObject
- Returns Thing presentation of property by name if property is Thing
but not a list of Things
- Overrides:
getThing
in class MIAnything
- Following copied from class:
com.vm.mind.MIAnything
- See Also:
ORObject
getThing
public MIThing getThing()
setThing
public boolean setThing(java.lang.String i_name,
MIThing i_thing)
- Description copied from interface:
ORObject
- Assigns Thing value to property by name if property
Thing or list. In case of list, it adds input Thing to list of Things.
- Overrides:
setThing
in class MIAnything
- Following copied from class:
com.vm.mind.MIAnything
- See Also:
ORObject
at
public boolean at(int x,
int y,
java.awt.Panel i_panel,
java.awt.FontMetrics i_fm)
getColor
public java.awt.Color getColor()
getImage
public java.awt.Image getImage()
setImage
public void setImage(java.awt.Image img)
setColor
public void setColor(java.awt.Color i_c)
paintObject
public void paintObject(VMPanel panel,
java.awt.Graphics graphics)
- Overrides:
paintObject
in class VMPoint
paintAttributes
public void paintAttributes(VMPanel panel,
java.awt.Graphics graphics)
- Overrides:
paintAttributes
in class VMPoint