public class AxisTickMarks extends Object implements org.eclipse.swt.events.PaintListener
| Modifier and Type | Field and Description |
|---|---|
protected static int |
LINE_WIDTH
the line width
|
static int |
TICK_LENGTH
the tick length
|
| Constructor and Description |
|---|
AxisTickMarks(Chart chart,
Axis axis)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispose()
Disposes the resources.
|
Axis |
getAxis()
Gets the associated axis.
|
protected org.eclipse.swt.graphics.Rectangle |
getBounds()
Gets the bounds on chart panel.
|
protected org.eclipse.swt.graphics.Color |
getForeground()
Gets the foreground color.
|
ChartLayoutData |
getLayoutData()
Gets the layout data.
|
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the bounds on chart panel.
|
void |
setForeground(org.eclipse.swt.graphics.Color color)
Sets the foreground color.
|
protected void |
updateLayoutData()
Updates tick marks layout.
|
protected static final int LINE_WIDTH
public static final int TICK_LENGTH
public void setForeground(org.eclipse.swt.graphics.Color color)
color - the foreground colorprotected org.eclipse.swt.graphics.Color getForeground()
public Axis getAxis()
protected void updateLayoutData()
public ChartLayoutData getLayoutData()
public void setBounds(int x,
int y,
int width,
int height)
x - the x coordinatey - the y coordinatewidth - the widthheight - the heightprotected org.eclipse.swt.graphics.Rectangle getBounds()
protected void dispose()
public void paintControl(org.eclipse.swt.events.PaintEvent e)
paintControl in interface org.eclipse.swt.events.PaintListenerCopyright © 2016. All Rights Reserved.