public class MapRulerBorder extends AbstractBorder implements PropertyChangeListener
| Constructor and Description |
|---|
MapRulerBorder(Viewport2D viewport) |
| Modifier and Type | Method and Description |
|---|---|
static <U extends javax.measure.quantity.Quantity> |
createSteps(javax.measure.unit.Unit<U>... steps) |
static <U extends javax.measure.quantity.Quantity> |
createSteps(javax.measure.unit.Unit<U> unit,
double... steps)
Create a list of steps in measurable units from the double array.
|
Insets |
getBorderInsets(Component c)
Returns the insets of the border.
|
Insets |
getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets.
|
GeometryFactory |
getRulerGeometryFactory() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
propertyChange(PropertyChangeEvent event) |
void |
setRulerGeometryFactory(GeometryFactory rulerGeometryFactory) |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaquepublic MapRulerBorder(Viewport2D viewport)
public static <U extends javax.measure.quantity.Quantity> List<javax.measure.unit.Unit<U>> createSteps(javax.measure.unit.Unit<U>... steps)
public static <U extends javax.measure.quantity.Quantity> List<javax.measure.unit.Unit<U>> createSteps(javax.measure.unit.Unit<U> unit, double... steps)
U - The type of unit (e.g. Angle or Length).unit - The unit of measure.steps - The list of steps.public Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderc - the component for which this border insets value appliespublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class AbstractBorderc - the component for which this border insets value appliesinsets - the object to be reinitializedpublic GeometryFactory getRulerGeometryFactory()
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface BorderpaintBorder in class AbstractBorderpublic void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic void setRulerGeometryFactory(GeometryFactory rulerGeometryFactory)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.