Package org.swtchart.internal.compress
Class CompressConfig
- java.lang.Object
-
- org.swtchart.internal.compress.CompressConfig
-
public class CompressConfig extends java.lang.Object
Configuration for compression.
-
-
Constructor Summary
Constructors Constructor Description CompressConfig()
Constructor.CompressConfig(CompressConfig config)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
long
getHeightInPixel()
Gets the height of plot area in pixelslong
getWidthInPixel()
Gets the width of plot area in pixelsdouble
getXLowerValue()
Gets the lower value of x range.double
getXUpperValue()
Gets the upper value of x range.double
getYLowerValue()
Gets the lower value of y range.double
getYUpperValue()
Gets the upper value of y range.int
hashCode()
boolean
isXLogScale()
Gets the state indicating whether the X axis is log scale.boolean
isYLogScale()
Gets the state indicating whether the Y axis is log scale.void
setSizeInPixel(long width, long height)
Sets the size in pixels.void
setXLogScale(boolean value)
Sets the state indicating whether the X axis is log scale.void
setXRange(double lower, double upper)
Sets the X range.void
setYLogScale(boolean value)
Sets the state indicating whether the Y axis is log scale.void
setYRange(double lower, double upper)
Sets the Y range.java.lang.String
toString()
-
-
-
Constructor Detail
-
CompressConfig
public CompressConfig()
Constructor.
-
CompressConfig
public CompressConfig(CompressConfig config)
Constructor.- Parameters:
config
- the configuration for compression
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
setSizeInPixel
public void setSizeInPixel(long width, long height)
Sets the size in pixels.- Parameters:
width
- the width in pixelsheight
- the height in pixels
-
getWidthInPixel
public long getWidthInPixel()
Gets the width of plot area in pixels- Returns:
- the width of plot area in pixels
-
getHeightInPixel
public long getHeightInPixel()
Gets the height of plot area in pixels- Returns:
- the height of plot area in pixels
-
setXRange
public void setXRange(double lower, double upper)
Sets the X range.- Parameters:
lower
- the lower value of x rangeupper
- the upper value of x range
-
setYRange
public void setYRange(double lower, double upper)
Sets the Y range.- Parameters:
lower
- the lower value of y rangeupper
- the upper value of y range
-
getXLowerValue
public double getXLowerValue()
Gets the lower value of x range.- Returns:
- the lower value of x range
-
getXUpperValue
public double getXUpperValue()
Gets the upper value of x range.- Returns:
- the upper value of x range
-
getYLowerValue
public double getYLowerValue()
Gets the lower value of y range.- Returns:
- the lower value of y range
-
getYUpperValue
public double getYUpperValue()
Gets the upper value of y range.- Returns:
- the upper value of y range
-
isXLogScale
public boolean isXLogScale()
Gets the state indicating whether the X axis is log scale.- Returns:
- true if the X axis is log scale
-
setXLogScale
public void setXLogScale(boolean value)
Sets the state indicating whether the X axis is log scale.- Parameters:
value
- the state indicating whether the X axis is log scale
-
isYLogScale
public boolean isYLogScale()
Gets the state indicating whether the Y axis is log scale.- Returns:
- true if the Y axis is log scale
-
setYLogScale
public void setYLogScale(boolean value)
Sets the state indicating whether the Y axis is log scale.- Parameters:
value
- the state indicating whether the Y axis is log scale
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-