Class IconAndText
java.lang.Object
org.graphstream.ui.swing.renderer.shape.swing.IconAndText
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleOverall ascent of the icon and text with all space and padding included.protected doubleOverall descent of the icon and text with all space and padding included.protected doubleprotected doubleprotected doubleprotected doubleprotected org.graphstream.ui.swing.renderer.shape.swing.TextBox -
Constructor Summary
ConstructorsConstructorDescriptionIconAndText(org.graphstream.ui.swing.renderer.shape.swing.TextBox text, double offx, double offy, double padx, double pady) -
Method Summary
Modifier and TypeMethodDescriptionstatic IconAndTextapply(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element) abstract doubleabstract Stringabstract doublegetWidth()abstract voidrender(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, double xLeft, double yBottom) abstract voidabstract void
-
Field Details
-
descent
protected double descentOverall descent of the icon and text with all space and padding included. -
ascent
protected double ascentOverall ascent of the icon and text with all space and padding included. -
text
protected org.graphstream.ui.swing.renderer.shape.swing.TextBox text -
offx
protected double offx -
offy
protected double offy -
padx
protected double padx -
pady
protected double pady
-
-
Constructor Details
-
IconAndText
public IconAndText(org.graphstream.ui.swing.renderer.shape.swing.TextBox text, double offx, double offy, double padx, double pady)
-
-
Method Details
-
apply
public static IconAndText apply(org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element) -
render
public abstract void render(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera, double xLeft, double yBottom) -
setIcon
-
setText
-
getWidth
public abstract double getWidth() -
getHeight
public abstract double getHeight() -
getText
-