Package org.swtchart.internal.axis
Class AxisTickMarks
- java.lang.Object
-
- org.swtchart.internal.axis.AxisTickMarks
-
- All Implemented Interfaces:
java.util.EventListener,org.eclipse.swt.events.PaintListener,org.eclipse.swt.internal.SWTEventListener
public class AxisTickMarks extends java.lang.Object implements org.eclipse.swt.events.PaintListenerAxis tick marks.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intLINE_WIDTHthe line widthstatic intTICK_LENGTHthe tick length
-
Constructor Summary
Constructors Constructor Description AxisTickMarks(Chart chart, Axis axis)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispose()Disposes the resources.AxisgetAxis()Gets the associated axis.protected org.eclipse.swt.graphics.RectanglegetBounds()Gets the bounds on chart panel.protected org.eclipse.swt.graphics.ColorgetForeground()Gets the foreground color.ChartLayoutDatagetLayoutData()Gets the layout data.voidpaintControl(org.eclipse.swt.events.PaintEvent e)voidsetBounds(int x, int y, int width, int height)Sets the bounds on chart panel.voidsetForeground(org.eclipse.swt.graphics.Color color)Sets the foreground color.protected voidupdateLayoutData()Updates tick marks layout.
-
-
-
Field Detail
-
LINE_WIDTH
protected static final int LINE_WIDTH
the line width- See Also:
- Constant Field Values
-
TICK_LENGTH
public static final int TICK_LENGTH
the tick length- See Also:
- Constant Field Values
-
-
Method Detail
-
setForeground
public void setForeground(org.eclipse.swt.graphics.Color color)
Sets the foreground color.- Parameters:
color- the foreground color
-
getForeground
protected org.eclipse.swt.graphics.Color getForeground()
Gets the foreground color.- Returns:
- the foreground color
-
getAxis
public Axis getAxis()
Gets the associated axis.- Returns:
- the axis
-
updateLayoutData
protected void updateLayoutData()
Updates tick marks layout.
-
getLayoutData
public ChartLayoutData getLayoutData()
Gets the layout data.- Returns:
- the layout data
-
setBounds
public void setBounds(int x, int y, int width, int height)Sets the bounds on chart panel.- Parameters:
x- the x coordinatey- the y coordinatewidth- the widthheight- the height
-
getBounds
protected org.eclipse.swt.graphics.Rectangle getBounds()
Gets the bounds on chart panel.- Returns:
- the bounds on chart panel
-
dispose
protected void dispose()
Disposes the resources.
-
paintControl
public void paintControl(org.eclipse.swt.events.PaintEvent e)
- Specified by:
paintControlin interfaceorg.eclipse.swt.events.PaintListener
-
-