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.
-
Constructor Summary
Constructors Constructor Description AxisMemento() -
Method Summary
Modifier and Type Method Description doublegetAutoScaleThreshold()org.eclipse.swt.graphics.ColorgetForegroundColor()java.lang.StringgetFormatPattern()org.eclipse.swt.graphics.ColorgetMajorGridColor()RangegetRange()java.lang.StringgetTitle()org.eclipse.swt.graphics.FontgetTitleFont()booleanisAutoFormat()booleanisAutoScale()booleanisDashGridLine()booleanisDateEnabled()booleanisLogScaleEnabled()booleanisOnPrimarySide()booleanisShowMajorGrid()voidsetAutoFormat(boolean autoFormat)voidsetAutoScale(boolean autoScale)voidsetAutoScaleThreshold(double autoScaleThreshold)voidsetDashGridLine(boolean dashGridLine)voidsetDateEnabled(boolean dateEnabled)voidsetForegroundColor(org.eclipse.swt.graphics.Color foreGroundColor)voidsetFormatPattern(java.lang.String formatPattern)voidsetLogScale(boolean logScale)voidsetMajorGridColor(org.eclipse.swt.graphics.Color majorGridColor)voidsetPrimarySide(boolean onPrimarySide)voidsetRange(Range range)voidsetShowMajorGrid(boolean showMajorGrid)voidsetTitle(java.lang.String title)voidsetTitleFont(org.eclipse.swt.graphics.Font font)
-
Constructor Details
-
AxisMemento
public AxisMemento()
-
-
Method Details
-
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
- Returns:
- the range
-
setRange
- 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
-