Documentation of 'org.jlab.groot.base.ColorPalette' Java class
ColorPalette
org.jlab.groot.base

Class ColorPalette



  • public class ColorPalette
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static double[] blue3D 
      static double[] green3D 
      static double[] red3D 
    • Constructor Summary

      Constructors 
      Constructor and Description
      ColorPalette() 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void ColorPalette(int mode) 
      void draw(java.awt.Graphics2D g2d, int x, int y, int width, int height, double axismin, double axismax, java.lang.Boolean logFlag) 
      static java.util.List<java.awt.Color> generateColorPalette3D() 
      int getAxisWidth(java.awt.Graphics2D g2d, int x, int y, int width, int height, double axismin, double axismax, java.lang.Boolean logFlag) 
      static java.awt.Color getColor(int color) 
      java.awt.Color getColor3D(double value, double max, boolean islog) 
      java.awt.Color getColor3D(int bin) 
      int getColor3DSize() 
      static java.awt.Color getColorPalette3D(int index) 
      static int getColorPallete3DSize() 
      java.awt.Color getRange(double fraction) 
      static java.util.TreeMap<java.lang.Integer,java.awt.Color> initColorMap() 
      void set(int mode) 
      static void setColor(int color, int red, int green, int blue) 
      static void setColor(int color, int red, int green, int blue, int alpha) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • red3D

        public static double[] red3D
      • green3D

        public static double[] green3D
      • blue3D

        public static double[] blue3D
    • Constructor Detail

      • ColorPalette

        public ColorPalette()
    • Method Detail

      • ColorPalette

        public void ColorPalette(int mode)
      • set

        public final void set(int mode)
      • getColorPallete3DSize

        public static int getColorPallete3DSize()
      • getColorPalette3D

        public static java.awt.Color getColorPalette3D(int index)
      • generateColorPalette3D

        public static java.util.List<java.awt.Color> generateColorPalette3D()
      • getColor3D

        public java.awt.Color getColor3D(int bin)
      • getColor3DSize

        public int getColor3DSize()
      • getColor3D

        public java.awt.Color getColor3D(double value,
                                         double max,
                                         boolean islog)
      • getRange

        public java.awt.Color getRange(double fraction)
      • setColor

        public static void setColor(int color,
                                    int red,
                                    int green,
                                    int blue,
                                    int alpha)
      • setColor

        public static void setColor(int color,
                                    int red,
                                    int green,
                                    int blue)
      • getColor

        public static java.awt.Color getColor(int color)
      • initColorMap

        public static java.util.TreeMap<java.lang.Integer,java.awt.Color> initColorMap()
      • getAxisWidth

        public int getAxisWidth(java.awt.Graphics2D g2d,
                                int x,
                                int y,
                                int width,
                                int height,
                                double axismin,
                                double axismax,
                                java.lang.Boolean logFlag)
      • draw

        public void draw(java.awt.Graphics2D g2d,
                         int x,
                         int y,
                         int width,
                         int height,
                         double axismin,
                         double axismax,
                         java.lang.Boolean logFlag)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.