Class AxisMemento
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.undo.AxisMemento
-
public class AxisMemento extends java.lang.Object
The memento to save the properties of an axis.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
autoFormat
private boolean
autoScale
private double
autoScaleThreshold
private boolean
dashGridLine
private boolean
dateEnabled
private org.eclipse.swt.graphics.Color
foregroundColor
private java.lang.String
formatPattern
private boolean
logScale
private org.eclipse.swt.graphics.Color
majorGridColor
private boolean
onPrimarySide
private Range
range
private boolean
showMajorGrid
private java.lang.String
title
private org.eclipse.swt.graphics.Font
titleFont
-
Constructor Summary
Constructors Constructor Description AxisMemento()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAutoScaleThreshold()
org.eclipse.swt.graphics.Color
getForegroundColor()
java.lang.String
getFormatPattern()
org.eclipse.swt.graphics.Color
getMajorGridColor()
Range
getRange()
java.lang.String
getTitle()
org.eclipse.swt.graphics.Font
getTitleFont()
boolean
isAutoFormat()
boolean
isAutoScale()
boolean
isDashGridLine()
boolean
isDateEnabled()
boolean
isLogScaleEnabled()
boolean
isOnPrimarySide()
boolean
isShowMajorGrid()
void
setAutoFormat(boolean autoFormat)
void
setAutoScale(boolean autoScale)
void
setAutoScaleThreshold(double autoScaleThreshold)
void
setDashGridLine(boolean dashGridLine)
void
setDateEnabled(boolean dateEnabled)
void
setForegroundColor(org.eclipse.swt.graphics.Color foreGroundColor)
void
setFormatPattern(java.lang.String formatPattern)
void
setLogScale(boolean logScale)
void
setMajorGridColor(org.eclipse.swt.graphics.Color majorGridColor)
void
setPrimarySide(boolean onPrimarySide)
void
setRange(Range range)
void
setShowMajorGrid(boolean showMajorGrid)
void
setTitle(java.lang.String title)
void
setTitleFont(org.eclipse.swt.graphics.Font font)
-
-
-
Field Detail
-
title
private java.lang.String title
-
titleFont
private org.eclipse.swt.graphics.Font titleFont
-
foregroundColor
private org.eclipse.swt.graphics.Color foregroundColor
-
onPrimarySide
private boolean onPrimarySide
-
logScale
private boolean logScale
-
autoScale
private boolean autoScale
-
autoScaleThreshold
private double autoScaleThreshold
-
range
private Range range
-
dateEnabled
private boolean dateEnabled
-
autoFormat
private boolean autoFormat
-
formatPattern
private java.lang.String formatPattern
-
showMajorGrid
private boolean showMajorGrid
-
dashGridLine
private boolean dashGridLine
-
majorGridColor
private org.eclipse.swt.graphics.Color majorGridColor
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
- Returns:
- the title
-
setTitle
public void setTitle(java.lang.String title)
- Parameters:
title
- the title to set
-
getTitleFont
public org.eclipse.swt.graphics.Font getTitleFont()
- Returns:
- the font
-
setTitleFont
public void setTitleFont(org.eclipse.swt.graphics.Font font)
- Parameters:
font
- the font to set
-
getForegroundColor
public org.eclipse.swt.graphics.Color getForegroundColor()
- Returns:
- the foreGroundColor
-
setForegroundColor
public void setForegroundColor(org.eclipse.swt.graphics.Color foreGroundColor)
- Parameters:
foreGroundColor
- the foreGroundColor to set
-
isOnPrimarySide
public boolean isOnPrimarySide()
- Returns:
- the onPrimarySide
-
setPrimarySide
public void setPrimarySide(boolean onPrimarySide)
- Parameters:
onPrimarySide
- the onPrimarySide to set
-
isLogScaleEnabled
public boolean isLogScaleEnabled()
- Returns:
- the logScale
-
setLogScale
public void setLogScale(boolean logScale)
- Parameters:
logScale
- the logScale to set
-
isAutoScale
public boolean isAutoScale()
- Returns:
- the autoScale
-
setAutoScale
public void setAutoScale(boolean autoScale)
- Parameters:
autoScale
- the autoScale to set
-
getAutoScaleThreshold
public double getAutoScaleThreshold()
- Returns:
- the autoScaleThreshold
-
setAutoScaleThreshold
public void setAutoScaleThreshold(double autoScaleThreshold)
- Parameters:
autoScaleThreshold
- the autoScaleThreshold to set
-
getRange
public Range getRange()
- Returns:
- the range
-
setRange
public void setRange(Range range)
- Parameters:
range
- the range to set
-
isDateEnabled
public boolean isDateEnabled()
- Returns:
- the dateEnabled
-
setDateEnabled
public void setDateEnabled(boolean dateEnabled)
- Parameters:
dateEnabled
- the dateEnabled to set
-
isAutoFormat
public boolean isAutoFormat()
- Returns:
- the autoFormat
-
setAutoFormat
public void setAutoFormat(boolean autoFormat)
- Parameters:
autoFormat
- the autoFormat to set
-
getFormatPattern
public java.lang.String getFormatPattern()
- Returns:
- the formatPattern
-
setFormatPattern
public void setFormatPattern(java.lang.String formatPattern)
- Parameters:
formatPattern
- the formatPattern to set
-
isShowMajorGrid
public boolean isShowMajorGrid()
- Returns:
- the showMajorGrid
-
setShowMajorGrid
public void setShowMajorGrid(boolean showMajorGrid)
- Parameters:
showMajorGrid
- the showMajorGrid to set
-
isDashGridLine
public boolean isDashGridLine()
- Returns:
- the dashGridLine
-
setDashGridLine
public void setDashGridLine(boolean dashGridLine)
- Parameters:
dashGridLine
- the dashGridLine to set
-
getMajorGridColor
public org.eclipse.swt.graphics.Color getMajorGridColor()
- Returns:
- the majorGridColor
-
setMajorGridColor
public void setMajorGridColor(org.eclipse.swt.graphics.Color majorGridColor)
- Parameters:
majorGridColor
- the majorGridColor to set
-
-