Package DisplayProject.TMSchema

Examples of DisplayProject.TMSchema.Part


     * @return a <code>Color</code> or null if key is not found
     *    in the current style
     */
    synchronized Color getColor(Skin skin, Prop prop, Color fallback) {
        String key = skin.toString() + "." + prop.name();
        Part part = skin.part;
        Color color = colorMap.get(key);
        if (color == null) {
            color = ThemeReader.getColor(part.getControlName(null), part.getValue(),
                                            State.getValue(part, skin.state),
                                            prop.getValue());
            if (color != null) {
                color = new ColorUIResource(color);
                colorMap.put(key, color);
View Full Code Here


        }

        protected void paintToImage(Component c, Image image, Graphics g,
                                    int w, int h, Object[] args) {
            Skin skin = (Skin)args[0];
            Part part = skin.part;
            State state = (State)args[1];
            if (state == null) {
                state = skin.state;
            }
            if (c == null) {
                c = skin.component;
            }
            WritableRaster raster = ((BufferedImage)image).getRaster();
            DataBufferInt buffer = (DataBufferInt)raster.getDataBuffer();
            ThemeReader.paintBackground(buffer.getData(),
                                        part.getControlName(c), part.getValue(),
                                        State.getValue(part, state),
                                        0, 0, w, h, w);
        }
View Full Code Here

        this.cover = new JWindow(this.parent) {
            @Override
            public void paint(Graphics g) {
              if (style == XP) {
                Part part = null;
                switch (WindowButtonAdapter.this.type){
                case CLOSE:
                  part = Part.WP_CLOSEBUTTON;
                  break;
                case MAXIMIZE:
View Full Code Here

        this.cover = new JWindow(this.parent) {
            @Override
            public void paint(Graphics g) {
              if (style == XP) {
                Part part = null;
                switch (WindowButtonAdapter.this.type){
                case CLOSE:
                  part = Part.WP_CLOSEBUTTON;
                  break;
                case MAXIMIZE:
View Full Code Here

        }

        protected void paintToImage(Component c, Image image, Graphics g,
                                    int w, int h, Object[] args) {
            Skin skin = (Skin)args[0];
            Part part = skin.part;
            State state = (State)args[1];
            if (state == null) {
                state = skin.state;
            }
            if (c == null) {
                c = skin.component;
            }
            WritableRaster raster = ((BufferedImage)image).getRaster();
            DataBufferInt buffer = (DataBufferInt)raster.getDataBuffer();
            ThemeReader.paintBackground(buffer.getData(),
                                        part.getControlName(c), part.getValue(),
                                        State.getValue(part, state),
                                        0, 0, w, h, w);
        }
View Full Code Here

     * @return a <code>Color</code> or null if key is not found
     *    in the current style
     */
    synchronized Color getColor(Skin skin, Prop prop, Color fallback) {
        String key = skin.toString() + "." + prop.name();
        Part part = skin.part;
        Color color = colorMap.get(key);
        if (color == null) {
            color = ThemeReader.getColor(part.getControlName(null), part.getValue(),
                                            State.getValue(part, skin.state),
                                            prop.getValue());
            if (color != null) {
                color = new ColorUIResource(color);
                colorMap.put(key, color);
View Full Code Here

TOP

Related Classes of DisplayProject.TMSchema.Part

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.