-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.gui.effects.Effect
,java.io.Serializable
@Deprecated() public final class DrawShape implements Effect
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
DrawShape.Mode
-
Field Summary
Fields Modifier and Type Field Description private DrawShape.Mode
mode
private RangedInteger
red
private RangedInteger
blue
private RangedInteger
green
private RangedInteger
alpha
private RangedInteger
scaleFactor
private RangedInteger
size
private boolean
molFilter
private String
molString
private boolean
molPropertyFilter
private String
property
private boolean
writingPropertyValue
private ColorChannel
c
private boolean
reverse
private RangedInteger
propoom
private RangedInteger
minprop
private RangedInteger
maxprop
private transient Molecule
molecule
private transient Incarnation<out Object, out Object>
incarnation
-
Method Summary
Modifier and Type Method Description DrawShape.Mode
getMode()
void
setMode(DrawShape.Mode m)
RangedInteger
getRed()
void
setRed(RangedInteger r)
RangedInteger
getBlue()
void
setBlue(RangedInteger b)
RangedInteger
getGreen()
void
setGreen(RangedInteger g)
RangedInteger
getAlpha()
void
setAlpha(RangedInteger a)
RangedInteger
getScaleFactor()
void
setScaleFactor(RangedInteger sf)
RangedInteger
getSize()
void
setSize(RangedInteger s)
void
setMolFilter(boolean mol)
String
getMolString()
void
setMolString(String mols)
void
setMolPropertyFilter(boolean molpf)
String
getProperty()
void
setProperty(String pr)
void
setWritingPropertyValue(boolean writingPropertyValue)
void
setC(ColorChannel colorChannel)
void
setReverse(boolean r)
RangedInteger
getPropoom()
void
setPropoom(RangedInteger oom)
RangedInteger
getMinprop()
void
setMinprop(RangedInteger mp)
RangedInteger
getMaxprop()
void
setMaxprop(RangedInteger mp)
Molecule
getMolecule()
void
setIncarnation(CollectionWithCurrentElement<String> element)
void
apply(Graphics2D g, Node<out Object> n, int x, int y)
Applies the effect. ColorChannel
getColorChannel()
Color
getColorSummary()
boolean
isMolFilter()
boolean
isMolPropertyFilter()
boolean
isReverse()
boolean
isWritingPropertyValue()
-
-
Constructor Detail
-
DrawShape
DrawShape()
Builds a new DrawShape effect.
-
-
Method Detail
-
getMode
DrawShape.Mode getMode()
-
setMode
void setMode(DrawShape.Mode m)
- Parameters:
m
- mode
-
getRed
RangedInteger getRed()
-
setRed
void setRed(RangedInteger r)
- Parameters:
r
- red
-
getBlue
RangedInteger getBlue()
-
setBlue
void setBlue(RangedInteger b)
- Parameters:
b
- blue
-
getGreen
RangedInteger getGreen()
-
setGreen
void setGreen(RangedInteger g)
- Parameters:
g
- green
-
getAlpha
RangedInteger getAlpha()
-
setAlpha
void setAlpha(RangedInteger a)
- Parameters:
a
- alpha
-
getScaleFactor
RangedInteger getScaleFactor()
-
setScaleFactor
void setScaleFactor(RangedInteger sf)
- Parameters:
sf
- scaleFactor
-
getSize
RangedInteger getSize()
-
setSize
void setSize(RangedInteger s)
- Parameters:
s
- size
-
setMolFilter
void setMolFilter(boolean mol)
- Parameters:
mol
- molFilter
-
getMolString
String getMolString()
-
setMolString
void setMolString(String mols)
- Parameters:
mols
- molString
-
setMolPropertyFilter
void setMolPropertyFilter(boolean molpf)
- Parameters:
molpf
- molPropertyFilter
-
getProperty
String getProperty()
-
setProperty
void setProperty(String pr)
- Parameters:
pr
- property
-
setWritingPropertyValue
void setWritingPropertyValue(boolean writingPropertyValue)
- Parameters:
writingPropertyValue
- if it should draw the property value
-
setC
void setC(ColorChannel colorChannel)
- Parameters:
colorChannel
- colorChannel
-
setReverse
void setReverse(boolean r)
- Parameters:
r
- reverse
-
getPropoom
RangedInteger getPropoom()
-
setPropoom
void setPropoom(RangedInteger oom)
- Parameters:
oom
- Order of magnitude
-
getMinprop
RangedInteger getMinprop()
-
setMinprop
void setMinprop(RangedInteger mp)
- Parameters:
mp
- minprop
-
getMaxprop
RangedInteger getMaxprop()
-
setMaxprop
void setMaxprop(RangedInteger mp)
- Parameters:
mp
- maxprop
-
getMolecule
@Nullable() Molecule getMolecule()
-
setIncarnation
void setIncarnation(CollectionWithCurrentElement<String> element)
- Parameters:
element
- incarnation
-
apply
void apply(Graphics2D g, Node<out Object> n, int x, int y)
Applies the effect.
- Parameters:
x
- x screen positiony
- y screen position
-
getColorChannel
ColorChannel getColorChannel()
-
getColorSummary
Color getColorSummary()
-
isMolFilter
boolean isMolFilter()
-
isMolPropertyFilter
boolean isMolPropertyFilter()
-
isReverse
boolean isReverse()
-
isWritingPropertyValue
boolean isWritingPropertyValue()
-
-
-
-