Package org.swtchart.internal.axis
Class AxisTickMarks
java.lang.Object
org.swtchart.internal.axis.AxisTickMarks
Axis tick marks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
the line widthstatic final int
the tick length -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispose()
Disposes the resources.getAxis()
Gets the associated axis.protected Rectangle
Gets the bounds on chart panel.protected Color
Gets the foreground color.Gets the layout data.void
paintControl
(PaintEvent e) void
setBounds
(int x, int y, int width, int height) Sets the bounds on chart panel.void
setForeground
(Color color) Sets the foreground color.protected void
Updates tick marks layout.
-
Field Details
-
LINE_WIDTH
protected static final int LINE_WIDTHthe line width- See Also:
-
TICK_LENGTH
public static final int TICK_LENGTHthe tick length- See Also:
-
-
Constructor Details
-
AxisTickMarks
Constructor.- Parameters:
chart
- the chartaxis
- the axis
-
-
Method Details
-
setForeground
public void setForeground(Color color) Sets the foreground color.- Parameters:
color
- the foreground color
-
getForeground
protected Color getForeground()Gets the foreground color.- Returns:
- the foreground color
-
getAxis
Gets the associated axis.- Returns:
- the axis
-
updateLayoutData
protected void updateLayoutData()Updates tick marks layout. -
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 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(PaintEvent e)
-