public class EdgeLabelRenderer extends Object implements org.gephi.preview.spi.Renderer
| Modifier and Type | Field and Description |
|---|---|
protected org.gephi.preview.types.DependantOriginalColor |
defaultColor |
protected Font |
defaultFont |
protected int |
defaultMaxChar |
protected org.gephi.preview.types.DependantColor |
defaultOutlineColor |
protected float |
defaultOutlineOpacity |
protected float |
defaultOutlineSize |
protected boolean |
defaultShorten |
protected boolean |
defaultShowLabels |
static String |
EDGE_COLOR |
protected Font |
font |
static String |
LABEL_X |
static String |
LABEL_Y |
| Constructor and Description |
|---|
EdgeLabelRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected org.gephi.preview.api.Vector |
bezierPoint(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4,
float c) |
org.gephi.preview.api.CanvasSize |
getCanvasSize(org.gephi.preview.api.Item item,
org.gephi.preview.api.PreviewProperties properties) |
String |
getDisplayName() |
org.gephi.preview.api.PreviewProperty[] |
getProperties() |
private float |
getTextHeight(com.itextpdf.text.pdf.BaseFont baseFont,
float fontSize,
String text) |
boolean |
isRendererForitem(org.gephi.preview.api.Item item,
org.gephi.preview.api.PreviewProperties properties) |
protected org.gephi.preview.api.Vector |
linearInterpolation(float x1,
float y1,
float x2,
float y2,
float c) |
boolean |
needsItemBuilder(org.gephi.preview.spi.ItemBuilder itemBuilder,
org.gephi.preview.api.PreviewProperties properties) |
void |
preProcess(org.gephi.preview.api.PreviewModel previewModel) |
void |
render(org.gephi.preview.api.Item item,
org.gephi.preview.api.RenderTarget target,
org.gephi.preview.api.PreviewProperties properties) |
void |
renderG2D(org.gephi.preview.api.G2DTarget target,
String label,
float x,
float y,
Color color,
float outlineSize,
Color outlineColor) |
void |
renderPDF(org.gephi.preview.api.PDFTarget target,
String label,
float x,
float y,
Color color,
float outlineSize,
Color outlineColor) |
void |
renderSVG(org.gephi.preview.api.SVGTarget target,
org.gephi.graph.api.Edge edge,
String label,
float x,
float y,
Color color,
float outlineSize,
Color outlineColor) |
private boolean |
showEdgeLabels(org.gephi.preview.api.PreviewProperties properties) |
public static final String EDGE_COLOR
public static final String LABEL_X
public static final String LABEL_Y
protected final boolean defaultShowLabels
protected final Font defaultFont
protected final boolean defaultShorten
protected final org.gephi.preview.types.DependantOriginalColor defaultColor
protected final int defaultMaxChar
protected final float defaultOutlineSize
protected final org.gephi.preview.types.DependantColor defaultOutlineColor
protected final float defaultOutlineOpacity
protected Font font
public void preProcess(org.gephi.preview.api.PreviewModel previewModel)
preProcess in interface org.gephi.preview.spi.Rendererpublic void render(org.gephi.preview.api.Item item,
org.gephi.preview.api.RenderTarget target,
org.gephi.preview.api.PreviewProperties properties)
render in interface org.gephi.preview.spi.Rendererpublic org.gephi.preview.api.CanvasSize getCanvasSize(org.gephi.preview.api.Item item,
org.gephi.preview.api.PreviewProperties properties)
getCanvasSize in interface org.gephi.preview.spi.Rendererpublic void renderG2D(org.gephi.preview.api.G2DTarget target,
String label,
float x,
float y,
Color color,
float outlineSize,
Color outlineColor)
public void renderSVG(org.gephi.preview.api.SVGTarget target,
org.gephi.graph.api.Edge edge,
String label,
float x,
float y,
Color color,
float outlineSize,
Color outlineColor)
public void renderPDF(org.gephi.preview.api.PDFTarget target,
String label,
float x,
float y,
Color color,
float outlineSize,
Color outlineColor)
private float getTextHeight(com.itextpdf.text.pdf.BaseFont baseFont,
float fontSize,
String text)
public org.gephi.preview.api.PreviewProperty[] getProperties()
getProperties in interface org.gephi.preview.spi.Rendererprivate boolean showEdgeLabels(org.gephi.preview.api.PreviewProperties properties)
public boolean isRendererForitem(org.gephi.preview.api.Item item,
org.gephi.preview.api.PreviewProperties properties)
isRendererForitem in interface org.gephi.preview.spi.Rendererpublic boolean needsItemBuilder(org.gephi.preview.spi.ItemBuilder itemBuilder,
org.gephi.preview.api.PreviewProperties properties)
needsItemBuilder in interface org.gephi.preview.spi.Rendererprotected org.gephi.preview.api.Vector bezierPoint(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4,
float c)
protected org.gephi.preview.api.Vector linearInterpolation(float x1,
float y1,
float x2,
float y2,
float c)
public String getDisplayName()
getDisplayName in interface org.gephi.preview.spi.RendererCopyright © 2007–2016 Gephi Consortium. All rights reserved.