public class TickLabel extends ScaleElement
filling, outline, RelativeCoordinates, RelativeStroke| Constructor and Description |
|---|
TickLabel(TickSettings settings)
Initializes a new instance of the
TickLabel class. |
| Modifier and Type | Method and Description |
|---|---|
void |
arrange(double x,
double y,
double w,
double h,
RenderContext context)
Sets the location and size of this component relative to its parent.
|
void |
draw(RenderContext context)
Draws this component in specified
RenderContext. |
java.awt.Color |
getForeground()
Gets the foreground color of this label.
|
double |
getRawValue()
Gets the value associated with this label before it was processed by any value distribution functions.
|
TickSettings |
getSettings()
Gets the
TickSettings associated with this label. |
java.lang.Object |
getValue()
Gets the value associated with this label.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Measures the desired size of this component.
|
addScaleElementListener, hitTest, onClicked, removeScaleElementListenerhitTestObjaddVisualElementListener, getEffectiveFill, getFill, getMargin, getName, getStroke, onInvalidated, onPostpaint, onPrepaint, onQueryAmbientPropertyValue, removeVisualElementListener, setFill, setMargin, setName, setStroke, toStringadd, associateJComponent, createController, dissociateJComponent, effectiveMeasuredHeight, effectiveMeasuredWidth, getActualHeight, getActualWidth, getDesiredHeight, getDesiredWidth, getGridColumn, getGridRow, getHeight, getHitTestVisibility, getHorizontalAlignment, getParent, getRectInParent, getToolTip, getVerticalAlignment, getVisibility, getWidth, getXInParent, getYInParent, invalidate, invalidate, invalidate, invalidateLayout, invalidateLayout, localToRoot, rootToLocal, setActualHeight, setActualWidth, setDesiredHeight, setDesiredWidth, setGridColumn, setGridRow, setHeight, setHitTestVisibility, setHorizontalAlignment, setParent, setToolTip, setVerticalAlignment, setVisibility, setWidth, setXInParent, setYInParent, visitpublic TickLabel(TickSettings settings)
TickLabel class.public void measure(double maxWidth,
double maxHeight,
RenderContext context)
VisualElementmeasure in class VisualElementContainermaxWidth - The maximum width provided by parent component.maxHeight - The maximum height provided by parent component.context - A RenderContext instance.public void arrange(double x,
double y,
double w,
double h,
RenderContext context)
VisualElementarrange in class VisualElementContainerx - A double value specifying horizontal position.y - A double value specifying vertical position.w - A double value specifying the component's width.h - A double value specifying the component's height.context - A RenderContext instance.public void draw(RenderContext context)
VisualElementContainerRenderContext.draw in class VisualElementContainercontext - A RenderContext instance.public java.lang.Object getValue()
public double getRawValue()
public java.awt.Color getForeground()
public TickSettings getSettings()
TickSettings associated with this label.