org.opensourcephysics.drawing3d.simple3d
Class SimpleElementSegment
java.lang.Object
org.opensourcephysics.drawing3d.simple3d.SimpleElement
org.opensourcephysics.drawing3d.simple3d.SimpleElementSegment
- All Implemented Interfaces:
- ImplementingObject
- Direct Known Subclasses:
- SimpleElementArrow, SimpleElementSpring
public class SimpleElementSegment
- extends SimpleElement
Title: SimpleElementSegment
Description: A Segment using the painter's algorithm
- Version:
- August 2009
- Author:
- Francisco Esquembre
Method Summary |
void |
draw(java.awt.Graphics2D _g2,
int _index)
Draws a given Object3D (indicated by its index). |
void |
drawQuickly(java.awt.Graphics2D _g2)
Sketches the drawable |
void |
processChanges(int _change,
int _cummulativeChange)
Process changes of the element |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleElementSegment
public SimpleElementSegment(ElementSegment _element)
processChanges
public void processChanges(int _change,
int _cummulativeChange)
- Description copied from interface:
ImplementingObject
- Process changes of the element
- Specified by:
processChanges
in interface ImplementingObject
- Specified by:
processChanges
in class SimpleElement
- Parameters:
_change
- int the changes of this element_cummulativeChange
- int the cumulative changes, i.e. the
changes of the element and those inherited from parent groups
draw
public void draw(java.awt.Graphics2D _g2,
int _index)
- Description copied from class:
SimpleElement
- Draws a given Object3D (indicated by its index).
drawQuickly
public void drawQuickly(java.awt.Graphics2D _g2)
- Description copied from class:
SimpleElement
- Sketches the drawable