org.jzy3d.plot3d.primitives
Class AbstractWireframeable

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.AbstractWireframeable
All Implemented Interfaces:
IGLRenderer, ISortableDraw, IWireframeable
Direct Known Subclasses:
AbstractComposite, CompileableComposite, Disk, Enlightable, LineStrip, Parallelepiped, Polygon, Sphere, Tube

public abstract class AbstractWireframeable
extends AbstractDrawable
implements IWireframeable

An AbstractWireframeable is a drawable object that has a wireframe mode for display. Defining an object as Wireframeable means this object may have a wireframe mode status (on/off), a wireframe color, and a wireframe width. As a consequence of being wireframeable, a 3d object may have his faces displayed or not by setFaceDisplayed().

Author:
Martin Pernollet

Constructor Summary
AbstractWireframeable()
          Initialize the wireframeable with a white color and width of 1 for wires, hidden wireframe, and displayed faces.
 
Method Summary
 boolean getFaceDisplayed()
          Get the face display status to on or off.
 Color getWireframeColor()
          Get the wireframe color.
 boolean getWireframeDisplayed()
          Get the wireframe display status to on or off.
 float getWireframeWidth()
          Get the wireframe width.
 void setFaceDisplayed(boolean status)
          Set the face display status to on or off.
 void setWireframeColor(Color color)
          Set the wireframe color.
 void setWireframeDisplayed(boolean status)
          Set the wireframe display status to on or off.
 void setWireframeWidth(float width)
          Set the wireframe width.
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, dispose, draw, getBarycentre, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractWireframeable

public AbstractWireframeable()
Initialize the wireframeable with a white color and width of 1 for wires, hidden wireframe, and displayed faces.

Method Detail

setWireframeColor

public void setWireframeColor(Color color)
Set the wireframe color.

Specified by:
setWireframeColor in interface IWireframeable

setWireframeDisplayed

public void setWireframeDisplayed(boolean status)
Set the wireframe display status to on or off.

Specified by:
setWireframeDisplayed in interface IWireframeable

setWireframeWidth

public void setWireframeWidth(float width)
Set the wireframe width.

Specified by:
setWireframeWidth in interface IWireframeable

setFaceDisplayed

public void setFaceDisplayed(boolean status)
Set the face display status to on or off.

Specified by:
setFaceDisplayed in interface IWireframeable

getWireframeColor

public Color getWireframeColor()
Get the wireframe color.

Specified by:
getWireframeColor in interface IWireframeable

getWireframeDisplayed

public boolean getWireframeDisplayed()
Get the wireframe display status to on or off.

Specified by:
getWireframeDisplayed in interface IWireframeable

getWireframeWidth

public float getWireframeWidth()
Get the wireframe width.

Specified by:
getWireframeWidth in interface IWireframeable

getFaceDisplayed

public boolean getFaceDisplayed()
Get the face display status to on or off.

Specified by:
getFaceDisplayed in interface IWireframeable