edu.cmu.sun.view
Class GlueView
java.lang.Object
Component3D
edu.cmu.sun.view.GlueView
- All Implemented Interfaces:
- ModelListener
public class GlueView
- extends Component3D
- implements ModelListener
Responsible for drawing a single glue (or spread) into the scene.
Mostly just geometric drawing and styling to define
the visual look of the glue.
- Author:
- Braden Kowitz, Jessica Smith
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SELECTED_LEFT_FILL
static final javax.vecmath.Color4f SELECTED_LEFT_FILL
SELECTED_RIGHT_FILL
static final javax.vecmath.Color4f SELECTED_RIGHT_FILL
SELECTED_FILL_APP
static final javax.vecmath.Color4f SELECTED_FILL_APP
DESELECTED_LEFT_FILL
static final javax.vecmath.Color4f DESELECTED_LEFT_FILL
DESELECTED_RIGHT_FILL
static final javax.vecmath.Color4f DESELECTED_RIGHT_FILL
DESELECTED_FILL_APP
static final javax.vecmath.Color4f DESELECTED_FILL_APP
PINC
static final javax.vecmath.Color4f PINC
PINNED_OUTLINE_LEFT
static final javax.vecmath.Color4f PINNED_OUTLINE_LEFT
PINNED_OUTLINE_RIGHT
static final javax.vecmath.Color4f PINNED_OUTLINE_RIGHT
SELECTED_OUTLINE_LEFT
static final javax.vecmath.Color4f SELECTED_OUTLINE_LEFT
SELECTED_OUTLINE_RIGHT
static final javax.vecmath.Color4f SELECTED_OUTLINE_RIGHT
LINE_WIDTH
static final float LINE_WIDTH
- See Also:
- Constant Field Values
INSET_PADDING
static final float INSET_PADDING
- See Also:
- Constant Field Values
leftY
float leftY
leftH
float leftH
rightY
float rightY
rightH
float rightH
width
float width
model
ItemModel model
fillShape
Shape3D fillShape
outlineShape
Shape3D outlineShape
glue
Component3D glue
GlueView
public GlueView(ItemModel model)
setLeft
public void setLeft(float leftY,
float leftH)
setRight
public void setRight(float rightY,
float rightH)
setWidth
public void setWidth(float width)
update
public void update()
createGlue
private void createGlue()
getFillAppearance
private Appearance getFillAppearance()
getOutlineAppearance
private Appearance getOutlineAppearance()
getFillGeometry
private Geometry getFillGeometry()
getOutlineGeometry
private Geometry getOutlineGeometry()
modelChanged
public void modelChanged(Model m)
- Specified by:
modelChanged in interface ModelListener