public class VisAttributes extends Object
Modifier and Type | Field and Description |
---|---|
private Color |
color |
private String |
drawingstyle |
private String |
linestyle |
private String |
name |
private float[] |
rgba |
private boolean |
showdaughters |
private boolean |
visible |
Modifier | Constructor and Description |
---|---|
protected |
VisAttributes(org.jdom.Element node)
Constructor that takes an XML element in the compact format.
|
|
VisAttributes(String name)
Constructor with name and defaults.
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Get the
Color of these settings. |
String |
getDrawingStyle()
Get the drawing style.
|
String |
getLineStyle()
Get the line style.
|
String |
getName()
Get the name of these visualization settings.
|
float[] |
getRGBA()
Get the RGBA values as a float array.
|
boolean |
getShowDaughters()
Get showDaughters setting.
|
boolean |
getVisible()
Get whether visibility is on or off.
|
boolean |
isVisible()
Get whether visibility is on or off.
|
void |
setColor(Color color)
Set the color from an
Color object. |
void |
setColor(float r,
float g,
float b,
float a)
Set colors between 0.0 and 1.0.
|
void |
setDrawingStyle(String drawingstyle)
Set the drawing style.
|
void |
setLineStyle(String s)
Set the lineStyle of these attributes.
|
void |
setShowDaughters(boolean b)
Set whether daughters are visible.
|
void |
setVisible(boolean visible)
Set visibility.
|
private float[] rgba
private Color color
private String name
private String linestyle
private String drawingstyle
private boolean visible
private boolean showdaughters
public VisAttributes(String name)
name
- The name of the visualization settings.protected VisAttributes(org.jdom.Element node)
node
- The XML node.public void setVisible(boolean visible)
visible
- True to make visible; false to make invisible.public final void setColor(float r, float g, float b, float a)
r
- Red color component value.g
- Green color component value.b
- Blue color component value.a
- Alpha component value.public final void setColor(Color color)
Color
object.color
- The java Color.public final void setShowDaughters(boolean b)
b
- True to show daughters; false to hide.public final void setDrawingStyle(String drawingstyle)
drawingstyle
- public final void setLineStyle(String s)
s
- The lineStyle.public final Color getColor()
Color
of these settings.public final boolean getVisible()
public final boolean isVisible()
public final boolean getShowDaughters()
public final String getDrawingStyle()
public final String getLineStyle()
public final String getName()
public final float[] getRGBA()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.