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

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

Best Java code snippets using org.jfree.ui.ArrowPanel.getInsets (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.uiArrowPanelgetInsets

Popular methods of ArrowPanel

  • <init>
    Creates a new arrow panel.
  • addMouseListener
  • getArrow
    Returns a shape for the arrow.
  • getDownArrow
    Returns a down arrow.
  • getSize
  • getUpArrow
    Returns an up arrow.
  • setPreferredSize

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JButton (javax.swing)
  • JFrame (javax.swing)
  • CodeWhisperer 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