public abstract class IconAndText
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected double |
ascent
Overall ascent of the icon and text with all space and padding included.
|
protected double |
descent
Overall descent of the icon and text with all space and padding included.
|
protected double |
offx |
protected double |
offy |
protected double |
padx |
protected double |
pady |
protected org.graphstream.ui.swing.renderer.shape.swing.TextBox |
text |
| Constructor and Description |
|---|
IconAndText(org.graphstream.ui.swing.renderer.shape.swing.TextBox text,
double offx,
double offy,
double padx,
double pady) |
| Modifier and Type | Method and Description |
|---|---|
static IconAndText |
apply(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.camera.DefaultCamera2D camera,
org.graphstream.ui.graphicGraph.GraphicElement element) |
abstract double |
getHeight() |
abstract java.lang.String |
getText(Backend backend) |
abstract double |
getWidth() |
abstract void |
render(Backend backend,
org.graphstream.ui.view.camera.DefaultCamera2D camera,
double xLeft,
double yBottom) |
abstract void |
setIcon(Backend backend,
java.lang.String url) |
abstract void |
setText(Backend backend,
java.lang.String text) |
protected double descent
protected double ascent
protected org.graphstream.ui.swing.renderer.shape.swing.TextBox text
protected double offx
protected double offy
protected double padx
protected double pady
public IconAndText(org.graphstream.ui.swing.renderer.shape.swing.TextBox text,
double offx,
double offy,
double padx,
double pady)
public static IconAndText apply(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
public abstract void render(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, double xLeft, double yBottom)
public abstract void setIcon(Backend backend, java.lang.String url)
public abstract void setText(Backend backend, java.lang.String text)
public abstract double getWidth()
public abstract double getHeight()
public abstract java.lang.String getText(Backend backend)