Interface Defaults
public interface Defaults
This interface gives access to system defaults.
The colors defined here have been adjusted for the chart theme.
-
Method Summary
Modifier and TypeMethodDescriptionChart background color.Default color for painting bars.Default color for price bars when the bar closes down.Default color for price bars when the bar is "inside" the previous bar (lower high and higher low).Default color for price bars when the bar closes at the open.Default color for price bars when the bar is "outside" the previous bar (higher high and lower low).Default color for price bars when the bar closes up.getBlue()
Gets the default blue color (varies by chart theme).Gets the default blue line color (varies by chart theme).Default color for bottom fill.getBrown()
Gets the default brown color (varies by chart theme).long
Gets the current time.Gets the stroke for a dashed line.Gets the email address associated with the licenseDefault color fill.getFont()
Gets the default font for writing text.getGreen()
Gets the default green color (varies by chart theme).Gets the default green line color (varies by chart theme).getGrey()
Gets the default grey color (varies by chart theme).Default color for drawing lines.Gets the default orange color (varies by chart theme).Gets the default purple color (varies by chart theme).getRed()
Gets the default red color (varies by chart theme).Gets the default red line color (varies by chart theme).Gets the stroke for a solid line.Default color for drawing text.Default color for top fill.Gets the version of MotiveWave.Gets the default yellow color (varies by chart theme).Gets the default yellow line color (varies by chart theme).boolean
Indicates if the chart theme is a dark theme or a light theme.
-
Method Details
-
getFont
-
getTextColor
-
getBackgroundColor
-
getLineColor
-
getBarColor
-
getBarUpColor
Color getBarUpColor()Default color for price bars when the bar closes up.- Returns:
- color for price bars when the bar closes up
-
getBarDownColor
Color getBarDownColor()Default color for price bars when the bar closes down.- Returns:
- color for price bars when the bar closes down
-
getBarNeutralColor
Color getBarNeutralColor()Default color for price bars when the bar closes at the open.- Returns:
- color for price bars when the bar closes at the open
-
getBarInsideColor
Color getBarInsideColor()Default color for price bars when the bar is "inside" the previous bar (lower high and higher low).- Returns:
- color for price bars when the bar is inside the previous bar
-
getBarOutsideColor
Color getBarOutsideColor()Default color for price bars when the bar is "outside" the previous bar (higher high and lower low).- Returns:
- color for price bars when the bar is outside the previous bar
-
getTopFillColor
-
getBottomFillColor
-
getFillColor
-
getRed
-
getGreen
-
getBlue
-
getYellow
Color getYellow()Gets the default yellow color (varies by chart theme).- Returns:
- default yellow color
-
getGrey
-
getPurple
Color getPurple()Gets the default purple color (varies by chart theme).- Returns:
- default purple color
-
getBrown
-
getOrange
Color getOrange()Gets the default orange color (varies by chart theme).- Returns:
- default orange color
-
getRedLine
Color getRedLine()Gets the default red line color (varies by chart theme).- Returns:
- default red line color
-
getGreenLine
Color getGreenLine()Gets the default green line color (varies by chart theme).- Returns:
- default green line color
-
getBlueLine
Color getBlueLine()Gets the default blue line color (varies by chart theme).- Returns:
- default blue line color
-
getYellowLine
Color getYellowLine()Gets the default yellow line color (varies by chart theme).- Returns:
- default yellow line color
-
getSolidLine
-
getDashedLine
-
getEmailAddress
String getEmailAddress()Gets the email address associated with the license- Returns:
- email address associated with the license
-
getVersion
-
getCurrentTime
long getCurrentTime()Gets the current time. If this is replay mode, it will return the current replay time.- Returns:
- current time in milliseconds since 1970
-
isDarkTheme
boolean isDarkTheme()Indicates if the chart theme is a dark theme or a light theme. This can be useful to change the default colors.- Returns:
- true if it is a dark chart theme.
-