LabelRenderer.computeTextDimensions
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using prefuse.render.LabelRenderer.computeTextDimensions (Showing top 1 results out of 315)

  • Common ways to obtain LabelRenderer
private void myMethod () {
LabelRenderer l =
  • String textField;new LabelRenderer(textField)
  • Smart code suggestions by Codota
}
origin: de.sciss/prefuse-core

m_text = computeTextDimensions(item, m_text, size);
th = m_textDim.height;
tw = m_textDim.width;   
prefuse.renderLabelRenderercomputeTextDimensions

Popular methods of LabelRenderer

  • <init>
    Create a new LabelRenderer. Draws a text label using the given text data field, and draws the image
  • setRoundedCorner
    Rounds the corners of the bounding rectangle in which the text string is rendered. This will only be
  • setHorizontalAlignment
    Set the horizontal alignment of this node with respect to its x, y coordinates.
  • setRenderType
  • setTextField
    Set the field name to use for text labels.
  • setVerticalAlignment
    Set the vertical alignment of this node with respect to its x, y coordinates.
  • drawString
  • getAlignedPoint
    Helper method, which calculates the top-left co-ordinate of an item given the item's alignment.
  • getImage
    Get the image to include in the label for the given VisualItem.
  • getImageLocation
    Returns a location string for the image to draw. Subclasses can override this class to perform custo
  • getRenderType
  • getShape
  • getRenderType,
  • getShape,
  • getStroke,
  • getText,
  • setImageField,
  • setMaxTextWidth

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JPanel (javax.swing)
  • Option (scala)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)