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 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)
-
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
-