|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.procedural.Module
artofillusion.procedural.ColorModule
public class ColorModule
This is a Module which outputs a color.
Field Summary |
---|
Fields inherited from class artofillusion.procedural.Module |
---|
linkFrom, linkFromIndex |
Constructor Summary | |
---|---|
ColorModule(java.awt.Point position)
|
|
ColorModule(java.awt.Point position,
RGBColor color)
|
Method Summary | |
---|---|
void |
calcSize()
Calculate the size on the screen of this module. |
Module |
duplicate()
Create a duplicate of this module. |
boolean |
edit(ProcedureEditor editor,
Scene theScene)
This is an old form of edit() that exists only to maintain compatibility with old plugins. |
RGBColor |
getColor()
Get the color. |
void |
getColor(int which,
RGBColor c,
double blur)
Get the color of the specified output port. |
void |
readFromStream(java.io.DataInputStream in,
Scene theScene)
Read in the module's parameters from an input stream. |
void |
setColor(RGBColor c)
Set the color. |
void |
writeToStream(java.io.DataOutputStream out,
Scene theScene)
Write out the module's parameters to an output stream. |
Methods inherited from class artofillusion.procedural.Module |
---|
checkFeedback, draw, getAverageValue, getBounds, getClickedPort, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, getValueError, getValueGradient, init, inputConnected, layout, setInput, setPosition |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorModule(java.awt.Point position)
public ColorModule(java.awt.Point position, RGBColor color)
Method Detail |
---|
public RGBColor getColor()
public void setColor(RGBColor c)
public boolean edit(ProcedureEditor editor, Scene theScene)
Module
edit
in class Module
public void getColor(int which, RGBColor c, double blur)
Module
getColor
in class Module
public void calcSize()
Module
calcSize
in class Module
public Module duplicate()
Module
duplicate
in class Module
public void writeToStream(java.io.DataOutputStream out, Scene theScene) throws java.io.IOException
Module
writeToStream
in class Module
java.io.IOException
public void readFromStream(java.io.DataInputStream in, Scene theScene) throws java.io.IOException
Module
readFromStream
in class Module
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |