Tabnine Logo
ArrowPanel.getArrow
Code IndexAdd Tabnine to your IDE (free)

How to use
getArrow
method
in
org.jfree.ui.ArrowPanel

Best Java code snippets using org.jfree.ui.ArrowPanel.getArrow (Showing top 3 results out of 315)

origin: jfree/jcommon

/**
 * Paints the arrow panel.
 *
 * @param g  the graphics device for drawing on.
 */
public void paintComponent(final Graphics g) {
  super.paintComponent(g);
  final Graphics2D g2 = (Graphics2D) g;
  // first determine the size of the drawing area...
  final Dimension size = getSize();
  final Insets insets = getInsets();
  this.available.setRect(insets.left, insets.top,
              size.getWidth() - insets.left - insets.right,
              size.getHeight() - insets.top - insets.bottom);
  g2.translate(insets.left, insets.top);
  g2.fill(getArrow(this.type));
}
origin: org.jfree/jcommon

/**
 * Paints the arrow panel.
 *
 * @param g  the graphics device for drawing on.
 */
public void paintComponent(final Graphics g) {
  super.paintComponent(g);
  final Graphics2D g2 = (Graphics2D) g;
  // first determine the size of the drawing area...
  final Dimension size = getSize();
  final Insets insets = getInsets();
  this.available.setRect(insets.left, insets.top,
              size.getWidth() - insets.left - insets.right,
              size.getHeight() - insets.top - insets.bottom);
  g2.translate(insets.left, insets.top);
  g2.fill(getArrow(this.type));
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Paints the arrow panel.
 *
 * @param g  the graphics device for drawing on.
 */
public void paintComponent(final Graphics g) {
  super.paintComponent(g);
  final Graphics2D g2 = (Graphics2D) g;
  // first determine the size of the drawing area...
  final Dimension size = getSize();
  final Insets insets = getInsets();
  this.available.setRect(insets.left, insets.top,
              size.getWidth() - insets.left - insets.right,
              size.getHeight() - insets.top - insets.bottom);
  g2.translate(insets.left, insets.top);
  g2.fill(getArrow(this.type));
}
org.jfree.uiArrowPanelgetArrow

Javadoc

Returns a shape for the arrow.

Popular methods of ArrowPanel

  • <init>
    Creates a new arrow panel.
  • addMouseListener
  • getDownArrow
    Returns a down arrow.
  • getInsets
  • getSize
  • getUpArrow
    Returns an up arrow.
  • setPreferredSize

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now