Class AxisMemento
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.undo.AxisMemento
-
public class AxisMemento extends java.lang.ObjectThe memento to save the properties of an axis.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanautoFormatprivate booleanautoScaleprivate doubleautoScaleThresholdprivate booleandashGridLineprivate booleandateEnabledprivate org.eclipse.swt.graphics.ColorforegroundColorprivate java.lang.StringformatPatternprivate booleanlogScaleprivate org.eclipse.swt.graphics.ColormajorGridColorprivate booleanonPrimarySideprivate Rangerangeprivate booleanshowMajorGridprivate java.lang.Stringtitleprivate org.eclipse.swt.graphics.FonttitleFont
-
Constructor Summary
Constructors Constructor Description AxisMemento()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
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
-
-