org.jplot2d.element.impl
Interface AxisEx
-
- All Superinterfaces:
- Axis, ComponentEx, Element, ElementEx, PComponent
- All Known Implementing Classes:
- AxisImpl
public interface AxisEx extends Axis, ComponentEx
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidcalcThickness()calculate asc and desc of this axis.doublegetAsc()doublegetDesc()PaperTransformgetPaperTransform()Returns the paper transform of this component.PlotExgetParent()Gets the parent of this component.java.lang.StringgetShortId()Returns the short id of this axis.doublegetThickness()AxisTickManagerExgetTickManager()Returns the tick manager of this axis.voidinvalidateThickness()voidsetActualFont(java.awt.Font font)Set shrunk font for displaying by tick manager.voidsetLength(double length)Set the length for this axis.voidsetLocation(double locX, double locY)Moves this plot component to a new location.voidsetOrientation(AxisOrientation orientation)Called byPlot.addXAxis(Axis)orPlot.addYAxis(Axis)to set the orientation of this axis.-
Methods inherited from interface org.jplot2d.element.Axis
getAxisLineWidth, getLabelColor, getLabelOrientation, getLabelSide, getLength, getMinorTickHeight, getOrientation, getPosition, getTickHeight, getTickLineWidth, getTickSide, getTitle, isGridLines, isLabelVisible, isMinorGridLines, isTickVisible, setAxisLineWidth, setGridLines, setLabelColor, setLabelOrientation, setLabelSide, setLabelVisible, setMinorGridLines, setMinorTickHeight, setPosition, setTickHeight, setTickLineWidth, setTickManager, setTickSide, setTickVisible
-
Methods inherited from interface org.jplot2d.element.impl.ComponentEx
canContribute, copyStructure, draw, getEffectiveColor, getEffectiveFontName, getEffectiveFontSize, getEffectiveFontStyle, getMooringMap, isMovable, isRedrawNeeded, parentEffectiveColorChanged, parentEffectiveFontChanged, setMovable, setRedrawNeeded, thisEffectiveColorChanged, thisEffectiveFontChanged
-
Methods inherited from interface org.jplot2d.element.PComponent
getBounds, getColor, getEffectiveFont, getFontName, getFontScale, getFontSize, getFontStyle, getLocation, getSelectableBounds, getSize, getZOrder, isCacheable, isSelectable, isVisible, setCacheable, setColor, setFont, setFontName, setFontScale, setFontSize, setFontStyle, setSelectable, setVisible, setZOrder
-
Methods inherited from interface org.jplot2d.element.impl.ElementEx
copyFrom, getFullId, getInvokeStepFormParent, notify, setParent
-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment, getId
-
-
-
-
Method Detail
-
getParent
PlotEx getParent()
Description copied from interface:PComponentGets the parent of this component.- Specified by:
getParentin interfaceAxis- Specified by:
getParentin interfaceComponentEx- Specified by:
getParentin interfaceElement- Specified by:
getParentin interfaceElementEx- Specified by:
getParentin interfacePComponent- Returns:
- the parent of this component
-
getShortId
java.lang.String getShortId()
Returns the short id of this axis. The short id is composed of series of ids concatenated with dots. The 1st id is the id of this element, the 2nd id is the id of the parent of this element, etc, until but not include the root plot.- Returns:
- the short id of this axis.
-
getTickManager
AxisTickManagerEx getTickManager()
Description copied from interface:AxisReturns the tick manager of this axis.- Specified by:
getTickManagerin interfaceAxis- Returns:
- the tick manager of this axis
-
setActualFont
void setActualFont(java.awt.Font font)
Set shrunk font for displaying by tick manager.- Parameters:
font- the shrunk font
-
getPaperTransform
PaperTransform getPaperTransform()
Returns the paper transform of this component.- Specified by:
getPaperTransformin interfacePComponent- Returns:
-
setLocation
void setLocation(double locX, double locY)Moves this plot component to a new location. The origin of the new location is specified by pointp. Point2Dpis given in the parent's paper coordinate space.- Parameters:
p- the point defining the origin of the new location, given in the coordinate space of this component's parent
-
setOrientation
void setOrientation(AxisOrientation orientation)
Called byPlot.addXAxis(Axis)orPlot.addYAxis(Axis)to set the orientation of this axis.- Parameters:
orientation- the orientation
-
setLength
void setLength(double length)
Set the length for this axis.- Parameters:
length-
-
getThickness
double getThickness()
-
getAsc
double getAsc()
-
getDesc
double getDesc()
-
invalidateThickness
void invalidateThickness()
-
calcThickness
void calcThickness()
calculate asc and desc of this axis.
-
-
DMelt 3.0 © DataMelt by jWork.ORG