|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PlotLineType>
org.opensha.commons.gui.plot.PlotLineType
public enum PlotLineType
These are the supported line syles used in OpenSHA JFreeChart plots.
| Enum Constant Summary | |
|---|---|
DASHED
|
|
DOTTED
|
|
DOTTED_AND_DASHED
|
|
HISTOGRAM
|
|
SOLID
|
|
STACKED_BAR
|
|
| Method Summary | |
|---|---|
static org.jfree.chart.renderer.xy.XYItemRenderer |
buildRenderer(PlotLineType plt,
PlotSymbol sym,
float width)
Builds a render for the given PlotLineType and/or PlotSymbol. |
static org.jfree.chart.renderer.xy.XYItemRenderer |
buildRenderer(PlotLineType plt,
PlotSymbol sym,
float lineWidth,
float symWidth)
Builds a render for the given PlotLineType and/or PlotSymbol. |
Stroke |
buildStroke(float lineWidth)
|
static void |
checkValidConfiguration(PlotLineType plt,
PlotSymbol sym)
|
static PlotLineType |
forString(String desc)
|
boolean |
isSymbolCompatible()
|
String |
toString()
|
static PlotLineType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PlotLineType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PlotLineType SOLID
public static final PlotLineType DOTTED
public static final PlotLineType DASHED
public static final PlotLineType DOTTED_AND_DASHED
public static final PlotLineType HISTOGRAM
public static final PlotLineType STACKED_BAR
| Method Detail |
|---|
public static PlotLineType[] values()
for (PlotLineType c : PlotLineType.values()) System.out.println(c);
public static PlotLineType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<PlotLineType>public Stroke buildStroke(float lineWidth)
public static PlotLineType forString(String desc)
public static org.jfree.chart.renderer.xy.XYItemRenderer buildRenderer(PlotLineType plt,
PlotSymbol sym,
float width)
throws IllegalStateException
PlotLineType and/or PlotSymbol.
plt - plot line type, or null for nonesym - plot symbol type, or null for nonewidth - width of the line or symbol. if line and symbol, symbol width will equal 4*width
IllegalStateException - when both plt and sym are nullpublic boolean isSymbolCompatible()
public static void checkValidConfiguration(PlotLineType plt,
PlotSymbol sym)
public static org.jfree.chart.renderer.xy.XYItemRenderer buildRenderer(PlotLineType plt,
PlotSymbol sym,
float lineWidth,
float symWidth)
throws IllegalStateException
PlotLineType and/or PlotSymbol.
plt - plot line type, or null for nonesym - plot symbol type, or null for nonelineWidth - width of the line, if not nullsymWidth - width of the symbols, if not null
IllegalStateException - when both plt and sym are null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||