lt.monarch.chart.chart3D.engine
Class Entity3D

java.lang.Object
  extended by lt.monarch.chart.chart3D.engine.Entity3D

public class Entity3D
extends java.lang.Object


Nested Class Summary
Modifier and Type Class and Description
static class Entity3D.EntityStyle
           
static class Entity3D.PrimitiveRole
           
 
Field Summary
Modifier and Type Field and Description
protected  float alpha
           
protected  Point3D chartCenter
           
protected  java.util.List<Line3D> childLines
           
protected  java.util.List<Text3D> childText
           
protected  java.awt.Color color
           
protected  java.awt.Font font
           
protected  boolean isToFill
           
protected  java.util.List<Point3D> pointList
           
protected  Entity3D.PrimitiveRole role
           
protected  int selectionId
           
protected  Text3D textPrimitive
           
protected  int[] vertexColors
           
 
Constructor Summary
Constructor and Description
Entity3D(java.util.Map<Entity3D.EntityStyle,java.lang.Object> attributes, Entity3D.PrimitiveRole role, boolean toFill)
           
 
Method Summary
Modifier and Type Method and Description
protected  void extractMapAttributes(java.util.Map<Entity3D.EntityStyle,java.lang.Object> attributes)
           
 float getAlpha()
           
 Point3D getChartCenter()
           
 java.util.List<Line3D> getChildLines()
           
 java.util.List<Text3D> getChildText()
           
 java.awt.Color getColor()
           
 java.awt.Font getFont()
           
 java.util.List<Point3D> getPointList()
           
 Entity3D.PrimitiveRole getRole()
           
 int getSelectionId()
          Gets selection id
 Text3D getText()
           
 int[] getVertexColors()
           
 boolean isToFill()
           
 void setChartCenter(Point3D chartCenter)
          Set chart center.
 void setChildLines(java.util.List<Line3D> childLines)
          Set contained lines.
 void setChildText(java.util.List<Text3D> childText)
          Set child text.
 void setPointList(java.util.List<Point3D> pointList)
          Sets entity geometry points.
 void setSelectionId(int id)
          Sets entity selection id
 Text3D setText(Text3D text)
          Sets content as text
 void setVertexColors(int[] vertexColors)
          Sets vertex colors of individual verticies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointList

protected java.util.List<Point3D> pointList

selectionId

protected int selectionId

textPrimitive

protected Text3D textPrimitive

isToFill

protected boolean isToFill

color

protected java.awt.Color color

alpha

protected float alpha

font

protected java.awt.Font font

role

protected Entity3D.PrimitiveRole role

chartCenter

protected Point3D chartCenter

childLines

protected java.util.List<Line3D> childLines

childText

protected java.util.List<Text3D> childText

vertexColors

protected int[] vertexColors
Constructor Detail

Entity3D

public Entity3D(java.util.Map<Entity3D.EntityStyle,java.lang.Object> attributes,
                Entity3D.PrimitiveRole role,
                boolean toFill)
Method Detail

extractMapAttributes

protected void extractMapAttributes(java.util.Map<Entity3D.EntityStyle,java.lang.Object> attributes)

setChildLines

public void setChildLines(java.util.List<Line3D> childLines)
Set contained lines.

Parameters:
childLines - child lines

setChildText

public void setChildText(java.util.List<Text3D> childText)
Set child text.

Parameters:
childText - child text

setChartCenter

public void setChartCenter(Point3D chartCenter)
Set chart center.

Parameters:
chartCenter - chart center.

getText

public Text3D getText()
Returns:
the primitive

setText

public Text3D setText(Text3D text)
Sets content as text

Parameters:
text - text

getPointList

public java.util.List<Point3D> getPointList()
Returns:
the list

setPointList

public void setPointList(java.util.List<Point3D> pointList)
Sets entity geometry points.

Parameters:
pointList - list with points

setSelectionId

public void setSelectionId(int id)
Sets entity selection id


getSelectionId

public int getSelectionId()
Gets selection id


isToFill

public boolean isToFill()
Returns:
the toFill

getColor

public java.awt.Color getColor()
Returns:
color

setVertexColors

public void setVertexColors(int[] vertexColors)
Sets vertex colors of individual verticies

Parameters:
vertexColors - vertex colors.

getVertexColors

public int[] getVertexColors()
Returns:
vertex colors

getAlpha

public float getAlpha()
Returns:
alpha

getChartCenter

public Point3D getChartCenter()
Returns:
chart center

getRole

public Entity3D.PrimitiveRole getRole()
Returns:
role

getChildLines

public java.util.List<Line3D> getChildLines()
Returns:
child lines

getChildText

public java.util.List<Text3D> getChildText()
Returns:
child text

getFont

public java.awt.Font getFont()
Returns:
font